Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Redis via Homebrew
#!/bin/bash
brew install redis # Install Redis using Homebrew
ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents # Enable Redis autostart
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist # Start Redis server via launchctl
# homebrew.mxcl.redis.plist contains reference to redis.conf file location: /usr/local/etc/redis.conf
redis-server /usr/local/etc/redis.conf # Start Redis server using configuration file, Ctrl+C to stop
redis-cli ping # Check if the Redis server is running
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.redis.plist # Disable Redis autostart
@GesleyElois

This comment has been minimized.

Copy link

commented Oct 25, 2018

Thanks!

@samlandfried

This comment has been minimized.

Copy link

commented Nov 4, 2018

🙌

@xofred

This comment has been minimized.

Copy link

commented Dec 6, 2018

Thanks man! Finally find the redis.conf on mac LOL

@fexx

This comment has been minimized.

Copy link

commented Dec 14, 2018

Thanks.

@ntung

This comment has been minimized.

Copy link

commented Mar 9, 2019

Thanks for sharing your solution. This has helped me a lot!

@smallCC

This comment has been minimized.

Copy link

commented Apr 6, 2019

Thanks!

@gathm5

This comment has been minimized.

Copy link

commented Jun 3, 2019

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.