How we configure memcached on fedora with machine restart

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

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.