您的位置:首页 > 数据库 > Memcache

memcached的启动和停止

2016-03-12 10:26 639 查看
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 未授权访问漏洞
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: