LoginSignup
2
2

More than 5 years have passed since last update.

OS XでMemcachedインストール

Posted at
% brew install libevent
% brew install memcached

サービスの登録のために /Library/LaunchDaemons/homebrew.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>memcached</string>
        <key>ProgramArguments</key>
        <array>
                <string>/usr/local/bin/memcached</string>
                <string>-d</string>
        <string>-u</string>
                <string>takaaki</string>
                <string>-m</string>
                <string>64</string>
       </array>
</dict>
</plist>

サービスの登録と起動

% sudo launchctl load /Library/LaunchDaemons/homebrew.memcached.plist
% sudo launchctl start memcached
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2