Created
May 17, 2012 14:37
-
-
Save kapkaev/2719334 to your computer and use it in GitHub Desktop.
redis macos autostart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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