Skip to content

Instantly share code, notes, and snippets.

@jhunken
Created March 19, 2017 18:29
Show Gist options
  • Save jhunken/b6a36c6fff936e9571ec9aa869f43f64 to your computer and use it in GitHub Desktop.
Save jhunken/b6a36c6fff936e9571ec9aa869f43f64 to your computer and use it in GitHub Desktop.
brew install redis logs
➜ ~ brew install redis
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
jenkins-lts magic-wormhole
==> Updated Formulae
abcde git-quick-stats gspell kobalt pwntools sjk vim zinc
acpica gitlab-ci-multi-runner gtksourceview3 numpy screenfetch sysdig xapian
django-completion goenv jsonschema2pojo omega shairport-sync terraform youtube-dl
==> Renamed Formulae
hdf4 -> hdf@4 jpeg6b -> jpeg@6 kibana44 -> kibana@4.4 percona-server56 -> percona-server@5.6 phantomjs198 -> phantomjs@1.98
influxdb08 -> influxdb@0.8 jpeg9 -> jpeg@9 kubernetes-cli13 -> kubernetes-cli@1.3 perl514 -> perl@5.14 play14 -> play@1.4
jboss-as5 -> jboss-as@5 kafka080 -> kafka@0.80 open-mpi16 -> open-mpi@1.6 perl518 -> perl@5.18
jetty8 -> jetty@8 kibana41 -> kibana@4.1 percona-server55 -> percona-server@5.5 phantomjs192 -> phantomjs@1.92
==> Downloading https://homebrew.bintray.com/bottles/redis-3.2.8.sierra.bottle.1.tar.gz
Already downloaded: /Users/jhunken/Library/Caches/Homebrew/redis-3.2.8.sierra.bottle.1.tar.gz
==> Pouring redis-3.2.8.sierra.bottle.1.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
==> Summary
🍺 /usr/local/Cellar/redis/3.2.8: 11 files, 1.7MB
➜ ~ brew services start redis
==> Successfully started `redis` (label: homebrew.mxcl.redis)
➜ ~ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
➜ ~ ls -lha /usr/local/etc /usr/local/var/db /usr/local/var/run
ls: /usr/local/var/db: No such file or directory
/usr/local/etc:
total 144
drwxr-xr-x 11 jhunken admin 374B Mar 18 13:35 .
drwxr-xr-x 15 jhunken wheel 510B Feb 21 19:02 ..
drwxr-xr-x 8 jhunken admin 272B Feb 3 15:06 bash_completion.d
-rw-r--r-- 1 jhunken admin 161B Nov 9 2015 mongod.conf
drwxr-xr-x 6 jhunken admin 204B Oct 16 2015 mosquitto
drwxr-xr-x 19 jhunken admin 646B Dec 28 2015 nginx
drwxr-xr-x 7 jhunken admin 238B Jan 8 22:21 openssl
lrwxr-xr-x 1 jhunken admin 38B Jan 8 22:24 quilt.quiltrc -> ../Cellar/quilt/0.64/etc/quilt.quiltrc
-rw-r--r-- 1 jhunken admin 7.4K Mar 19 11:20 redis-sentinel.conf
-rw-r--r-- 1 jhunken admin 46K Mar 19 11:20 redis.conf.default
-rw-r--r-- 1 jhunken admin 4.8K Jan 8 22:23 wgetrc
/usr/local/var/run:
total 0
drwxr-xr-x 3 jhunken admin 102B Jan 4 2016 .
drwxr-xr-x 11 jhunken admin 374B Feb 3 15:05 ..
drwxr-xr-x 7 jhunken admin 238B Dec 28 2015 nginx
➜ ~ brew reinstall redis
==> Reinstalling redis
==> Downloading https://homebrew.bintray.com/bottles/redis-3.2.8.sierra.bottle.1.tar.gz
Already downloaded: /Users/jhunken/Library/Caches/Homebrew/redis-3.2.8.sierra.bottle.1.tar.gz
==> Pouring redis-3.2.8.sierra.bottle.1.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
==> Summary
🍺 /usr/local/Cellar/redis/3.2.8: 11 files, 1.7MB
➜ ~ ls -lha /usr/local/etc /usr/local/var/db /usr/local/var/run
ls: /usr/local/var/db: No such file or directory
/usr/local/etc:
total 144
drwxr-xr-x 11 jhunken admin 374B Mar 18 13:35 .
drwxr-xr-x 15 jhunken wheel 510B Feb 21 19:02 ..
drwxr-xr-x 8 jhunken admin 272B Feb 3 15:06 bash_completion.d
-rw-r--r-- 1 jhunken admin 161B Nov 9 2015 mongod.conf
drwxr-xr-x 6 jhunken admin 204B Oct 16 2015 mosquitto
drwxr-xr-x 19 jhunken admin 646B Dec 28 2015 nginx
drwxr-xr-x 7 jhunken admin 238B Jan 8 22:21 openssl
lrwxr-xr-x 1 jhunken admin 38B Jan 8 22:24 quilt.quiltrc -> ../Cellar/quilt/0.64/etc/quilt.quiltrc
-rw-r--r-- 1 jhunken admin 7.4K Mar 19 11:22 redis-sentinel.conf
-rw-r--r-- 1 jhunken admin 46K Mar 19 11:22 redis.conf.default
-rw-r--r-- 1 jhunken admin 4.8K Jan 8 22:23 wgetrc
/usr/local/var/run:
total 0
drwxr-xr-x 3 jhunken admin 102B Jan 4 2016 .
drwxr-xr-x 11 jhunken admin 374B Feb 3 15:05 ..
drwxr-xr-x 7 jhunken admin 238B Dec 28 2015 nginx
➜ ~ brew services restart redis
Stopping `redis`... (might take a while)
==> Successfully stopped `redis` (label: homebrew.mxcl.redis)
==> Successfully started `redis` (label: homebrew.mxcl.redis)
➜ ~ redis-cli ping
Could not connect to Redis at 127.0.0.1:6379: Connection refused
➜ ~ mkdir /usr/local/var/db/redis
mkdir: /usr/local/var/db: No such file or directory
➜ ~ mkdir /usr/local/var/db/
➜ ~ mkdir /usr/local/var/db/redis
➜ ~ brew services restart redis
Stopping `redis`... (might take a while)
==> Successfully stopped `redis` (label: homebrew.mxcl.redis)
==> Successfully started `redis` (label: homebrew.mxcl.redis)
➜ ~ redis-cli ping
PONG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment