Memached搭建

獨立搭一臺建memached

[root@nginx2 ~]# ls /software/

libevent-2.0.20-stable.tar.gz               memcached-1.4.24.tar.gz

[root@nginx2 ~]# cd /software/

[root@nginx2 software]# tar zxf libevent-2.0.20-stable.tar.gz 

[root@nginx2 software]# cd libevent-2.0.20-stable

[root@nginx2 libevent-2.0.20-stable]# ./configure

[root@nginx2 libevent-2.0.20-stable]# make && make install

[root@nginx2 libevent-2.0.20-stable]# echo "/usr/local/lib" > /etc/ld.so.conf.d/libevent.conf

[root@nginx2 libevent-2.0.20-stable]# ldconfig

[root@nginx2 libevent-2.0.20-stable]# ldconfig -v | grep  --color libevent

[root@nginx2 libevent-2.0.20-stable]# cd /software

[root@nginx2 software]# tar zxf memcached-1.4.24.tar.gz

[root@nginx2 software]# cd memcached-1.4.24

[root@nginx2 memcached-1.4.24]# ./configure 

[root@nginx2 memcached-1.4.24]# make && make install

[root@nginx2 memcached-1.4.24]# cd /usr/local/bin

[root@nginx2 bin]# ./memcached -l 192.168.1.1 -u root -c 200 -m 500M -n 10 -f 2 -d

[root@nginx2 bin]# netstat -tulnp | grep 11211


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章