The following instructions are used to setup Memcachd on your FreeBSD OS.
- Install from ports (1 of 3) if you plan on using PHP with caching:
cd /usr/ports/databases/pecl-memcache
make install clean
- Install from ports (2 of 3):
cd /usr/ports/databases/memcached
make install clean
- Install from ports (3 of 3) the library which we can use in our webapps (Python Django):
cd /usr/ports/databases/libmemcached
make install clean
- Edit /etc/rc.conf and add the following.
memcached_enable="YES"
- Start MemCached with
/usr/local/bin/memcached -d -u nobody
- Confirming MemCached is running by run the following call and confirm that a process is listening on TCP 11211
netstat -an
- (OPTIONAL) It may also be useful to run:
/usr/local/bin/php -i | grep -i 'memcache'
-
Install brew.
-
Run the following command:
brew install memcached
brew install libmemcached
brew install zlib
brew install libsas12
- To startup the cache, run the following.
/usr/local/bin/memcached -d -u nobody