In the last post we learnt how to install Memcached server on Mac OS. If you want to run Memcache when system boots for Mac OS, then you have to put the PList configuration file in /Library/LaunchDaemons/ directory and set the owner to root user.

Create a file in the /Library/LaunchDaemons/ directory with name memcached.plist with below content.

Once the file is created change the owner to root with below command:

memcached as daemon process on mac os x

Now when you will boot your Mac OS, the Memcached server will get started automatically as a daemon process on port 11211, and allocated memory is 64 MB.

Use ps -eaf | grep memcached or telnet command to verify it.

NOTE: I tried this on macOS Sierra (10.12.x) but this doesn’t seem to work. It seems we have to load the plist file using below command.

But I am getting below error message in console.

I tried many different options but it doesn’t seem to work. If you have faced something like this and able to get it working, please comment and let me know.

By admin

Leave a Reply