Skip to content

Instantly share code, notes, and snippets.

@theIV
Created May 29, 2009 17:47
Show Gist options
  • Save theIV/120091 to your computer and use it in GitHub Desktop.
Save theIV/120091 to your computer and use it in GitHub Desktop.
cd source
wget http://monkey.org/~provos/libevent-1.4.11-stable.tar.gz
tar -zxvvf libevent-1.4.11-stable.tar.gz
cd libevent-1.4.11-stable
./configure
make
sudo make install
cd ..
wget http://www.danga.com/memcached/dist/memcached-1.2.8.tar.gz
tar -zxvvf memcached-1.2.8.tar.gz
cd memcached-1.2.8
./configure
make
sudo make install
cd ..
touch com.danga.memcached.plist
sudo mv com.danga.memcached.plist /Library/LaunchDaemons/
sudo chown root /Library/LaunchDaemons/com.danga.memcached.plist
sudo chgrp wheel /Library/LaunchDaemons/com.danga.memcached.plist
sudo launchctl load /Library/LaunchDaemons/com.danga.memcached.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>com.danga.memcached</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/memcached</string>
<string>-d</string>
<string>-u</string>
<string>root</string>
<string>-p</string>
<string>11211</string>
<string>-m</string>
<string>64</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment