In this tutorial we will show you how configure memcached on fedora with machine restart, First install the memcached on server- linux box.
What is Memcahced?
Memcached is free and open-source software, licensed under the Revised BSD license.[2] Memcached runs on Unix-like operating systems (at least Linux and OS X) and on Microsoft Windows. It depends on the libevent library.
configure memcached on fedora
# yum install php-pdo php-mcrypt squirrelmail php-pecl-apc php-xml php-gd php-devel php php-imap php-pgsql php-pear php-soap php-mbstring php-ldap php-mysql php-cli php-pecl-memcache
Using this file you can change the cache and memory size.
[root@kapilk-pc kapil]# vim /etc/rc.d/init.d/memcached
Aslo change the following file also. Do same setting in this file
# /etc/sysconfig/memcached [root@kapilk-pc kapil]# /etc/init.d/memcached restart Stopping memcached: [ OK ] Starting memcached: [ OK ]
Following command will set command as wheneven machine reboots, memcached server will restart.
[root@kapilk-pc kapil]# /sbin/chkconfig memcached on