1. CentOS7.0 telnet-server 啓動的問題。linux
解決方法:服務器
①、先檢查CentOS7.0是否已經安裝如下兩個安裝包:telnet-server、xinetd。命令以下:socket
rpm -qa telnet-servermemcached
rpm -qa xinetdspa
若是沒有安裝,則先安裝。安裝命令:.net
[root@master ~]# yum list |grep telnet線程
telnet-server.x86_64 1:0.17-59.el7 @base unix
telnet.x86_64 1:0.17-59.el7 base指針
[root@master ~]# yum install telnet-server.x86_64server
[root@master ~]# yum install telnet.x86_64
[root@master ~]# yum list |grep xinetd
xinetd.x86_64 2:2.3.15-12.el7 @base
[root@master ~]# yum install xinetd.x86_64
安裝完成後,將xinetd服務加入開機自啓動:
systemctl enable xinetd.service
將telnet服務加入開機自啓動:
systemctl enable telnet.socket
最後,啓動以上兩個服務便可:
systemctl start telnet.socket
systemctl start xinetd(或service xinetd start)
linux memcached狀態查詢
如何查看memcache服務器端版本: ./memcached -h
memcache的運行狀態能夠方便的用 stats 命令顯示。
首先用telnet 127.0.0.1 11211這樣的命令鏈接上memcache,而後直接輸入stats就能夠獲得當前memcache的狀態。
這些狀態的說明以下:
pid memcache服務器的進程ID
uptime 服務器已經運行的秒數
time 服務器當前的unix時間戳
version memcache版本
pointer_size 當前操做系統的指針大小(32位系統通常是32bit)
rusage_user 進程的累計用戶時間
rusage_system 進程的累計系統時間
curr_items 服務器當前存儲的items數量
total_items 從服務器啓動之後存儲的items總數量
bytes 當前服務器存儲items佔用的字節數
curr_connections 當前打開着的鏈接數
total_connections 從服務器啓動之後曾經打開過的鏈接數
connection_structures 服務器分配的鏈接構造數
cmd_get get命令(獲取)總請求次數
cmd_set set命令(保存)總請求次數
get_hits 總命中次數
get_misses 總未命中次數
evictions 爲獲取空閒內存而刪除的items數(分配給memcache的空間用滿後須要刪除舊的items來獲得空間分配給新的items)
bytes_read 總讀取字節數(請求字節數)
bytes_written 總髮送字節數(結果字節數)
limit_maxbytes 分配給memcache的內存大小(字節)
threads 當前線程數