memcached的启动和停止

memcached的启动和停止

[root@hotapply ~]# ps -ef|grep memcached
root      9662     1  0 10:13 ?        00:00:00 /usr/bin/memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid
root     10155  8703  0 10:14 pts/0    00:00:00 grep memcached
[root@hotapply ~]# kill 9662
[root@hotapply ~]# ps -ef|grep memcached
root     10298  8703  0 10:14 pts/0    00:00:00 grep memcached
[root@hotapply ~]# ps -ef|grep memcached
root     10412  8703  0 10:14 pts/0    00:00:00 grep memcached
[root@hotapply ~]# /usr/bin/memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid

注意启动的时候,我指定了只能本服务器调用,防止被人攻击。可参考阿里云的文档
memcache 未授权访问漏洞

你可能感兴趣的:(memcached的启动和停止)