起因
因为要重启服务器,关闭memcached后不知道该重启了。奔溃,查了半天重要找到了,而且顺利重启。写一下做备忘。
关闭
我是直接查询线程,杀死线程就好了。
ps -ef|grep memcached
kill -9 xxxx
重启
重启命令为:
./memcached -p 11211 -m 64m -u root -d -P /tmp/memcached.pid
>[root@localhost /]# find / -name memcached
/etc/sysconfig/memcached
/etc/selinux/targeted/active/modules/100/memcached
/usr/bin/memcached
>[root@localhost /]# cd usr/bin
>./memcached -p 11211 -m 64m -u root -d -P /tmp/memcached.pid