Skip to content

Instantly share code, notes, and snippets.

@baoshan
Created April 24, 2012 01:29
Show Gist options
  • Save baoshan/2475316 to your computer and use it in GitHub Desktop.
Save baoshan/2475316 to your computer and use it in GitHub Desktop.
Redis Post Installation Configuration (Mac OS X)
curl -o /Library/LaunchDaemons/org.redis.redis-server.plist https://gist.github.com/raw/2475316/45fb490829e5539e6e2476f7d5117fc88b59acf7/org.redis.redis-server.plist
sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist
sudo launchctl start org.redis.redis-server
<?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>org.redis.redis-server</string>
<key>Program</key>
<string>/usr/bin/redis-server</string>
<key>ProgramArguments</key>
<array>
<string>redis-server</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/redis/output.log</string>
<key>StandardOutPath</key>
<string>/var/log/redis/output.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment