Skip to content

Instantly share code, notes, and snippets.

@duduribeiro
Forked from gentilfp/gist:e723cc48696095406298
Last active August 29, 2015 14:09
Show Gist options
  • Save duduribeiro/c7ae50ac4e71e876b611 to your computer and use it in GitHub Desktop.
Save duduribeiro/c7ae50ac4e71e876b611 to your computer and use it in GitHub Desktop.
# Install redis with homebrew :)
$ brew install redis
# Create a deamon
$ sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist
# Paste the following content
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.redis.redis-server</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/redis-server</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
# Load the deamon
$ sudo launchctl load /Library/LaunchDaemons/io.redis.redis-server.plist
# Start manually
$ sudo launchctl start io.redis.redis-server
# Stop manually
$ sudo launchctl stop io.redis.redis-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment