Memcached的启动和停止

admin 建站教程评论7321字数 504阅读模式

查找允许 memcached 的进程 id:

  1. # ps -ef|grep memcached  
  2. 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  
  3. root     10155  8703  0 10:14 pts/0    00:00:00 grep memcached  

第一行的第二个就是进程 id,使用 kill 命令停止进程:

  1. # kill 9662  
  2. # ps -ef|grep memcached  
  3. root     10298  8703  0 10:14 pts/0    00:00:00 grep memcached  

可以看到 memcached 服务已经消失。
我们可以使用以下命令来启动:

  1. # /usr/bin/memcached  -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid  

版权声明:文章图片资源来源于网络,如有侵权,请留言删除!!!
admin
  • 本文由 发表于 2021年2月4日 11:04:00
  • 转载请务必保留本文链接:https://www.58pxe.com/7156.html
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: