Memcached的啟動和停止

admin 建站教程評論9151字數(shù) 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 命令停止進程:文章源自網(wǎng)吧系統(tǒng)維護-http://hvig.cn/7156.html

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

可以看到 memcached 服務已經(jīng)消失。
我們可以使用以下命令來啟動:文章源自網(wǎng)吧系統(tǒng)維護-http://hvig.cn/7156.html

  1. # /usr/bin/memcached  -d -m 1024 -u root -l 127.0.0.1 -p 11211 -c 1024 -P /tmp/memcached.pid  
文章源自網(wǎng)吧系統(tǒng)維護-http://hvig.cn/7156.html文章源自網(wǎng)吧系統(tǒng)維護-http://hvig.cn/7156.html
版權聲明:文章圖片資源來源于網(wǎng)絡,如有侵權,請留言刪除!!!
廣告也精彩
admin
  • 本文由 發(fā)表于 2021年2月4日 11:04:00
  • 轉載請務必保留本文鏈接:http://hvig.cn/7156.html
匿名

發(fā)表評論

匿名網(wǎng)友 填寫信息

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