Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save svschannak/8361492 to your computer and use it in GitHub Desktop.
Save svschannak/8361492 to your computer and use it in GitHub Desktop.
#sudo vim /Library/LaunchDaemons/io.redis.redis-server.plist
<?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>
<string>/optional/path/to/redis.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
#sudo launchctl load /Library/LaunchDaemons/io.redis.redis-server.plist
#sudo launchctl start io.redis.redis-server
#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