Install Redis on Mac OS via Homebrew

Install Redis on Mac OS via Homebrew

  • Install redis package
    $ brew install redis
    Updating Homebrew...
    ==> Auto-updated Homebrew!
    
  • After installation, you’d see the following message:
     ==> Downloading https://homebrew.bintray.com/bottles/redis-5.0.4.mojave.bottle.tar.gz
     ############################################################# 100.0%
    ==> Pouring redis-5.0.4.mojave.bottle.tar.gz
    ==> Caveats
    To have launchd start redis now and restart at login:
      brew services start redis
    Or, if you don't want/need a background service you can just run:
    redis-server /usr/local/etc/redis.conf
    
  • Run redis as following:
    $ redis-server /usr/local/etc/redis.conf
    oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
    

Connect to Redis with redis-cli

redis-cli 5.0.4

Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]]
  -h <hostname>      Server hostname (default: 127.0.0.1).
  -p <port>          Server port (default: 6379).
    -n <db>            Database number.
$ redis-cli -h <host> -p <port> -n <db>
Advertisements

Mac OS iTerm2 validateTextureDimensions: failed assertion

I was playing with font sizes on iTerm2 on Mac OS (Mojave) and suddenly iTerm2 started to crash uncontrollably. In spite of uninstall/new install, the crash persisted.
The panic string was:

validateTextureDimensions:1081: failed assertion
`MTLTextureDescriptor has width (78728) greater
than the maximum allowed size of 16384.'

However, trying to start iTerm2 would open an empty terminal and its menu bar. I thought of checking the iTerm2 settings and found font size value of 5000.

The value might have changed while I was trying to update font size. iTerm could never recover after seeing such a huge value as rendering them would need more memory that could fit in its buffers.

Fix

  • Just make sure you have a reasonable font size (< 20 ?) value. That is all.

What iTerm versions are affected?

  • Build 3.3.20190430-nightly

Written with StackEdit.