memcached安装和启动

1:memcached安装
[root@nosql1 ~]# yum install memcached

2:memcahed脚本启动和停止
[root@nosql1 ~]# /etc/rc.d/init.d/memcached start
Starting memcached: [  OK  ]
[root@nosql1 ~]# ps aux |grep memcached 
496       2053  0.0  0.0 331872  1900 ?        Ssl  16:50   0:00 memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /var/run/memcached/memcached.pid
[root@nosql1 ~]# /etc/rc.d/init.d/memcached stop
Stopping memcached: [  OK  ]

3:命令行启动
[root@nosql1 ~]# memcached -d -p 11211 -u nobody -c 1024 -m 64
[root@nosql1 ~]# ps aux |grep memcached                       
nobody    2239  0.1  0.0 330848   816 ?        Ssl  17:28   0:00 memcached -d -p 11211 -u nobody -c 1024 -m 64
root      2247  0.0  0.0 103244   836 pts/0    S+   17:28   0:00 grep memcached
[root@nosql1 ~]# killall memcached

4:iptables设置


你可能感兴趣的:(memcached安装和启动)