(附加)如何檢視memcache伺服器端版本: ./memcached -h
memcache的執行狀態可以方便的用stats命令顯示。
首先用telnet 127.0.0.1 11211這樣的命令連線上memcache,然後直接輸入stats就可以得到當前memcache的狀態。
這些狀態的說明如下:
pidmemcache伺服器的程序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
當前執行緒數
linux下怎麼退出telnet
在運維過程中,常常會telnet某個ip埠,如果 能telnet通,怎麼退出呢 ?1、telnet 63.172.25.18 6463 回車
trying 63.172.25.18...
connected to 63.172.25.18 (63.172.25.18).
escape character is '^]'.
2、ctrl + ] 回車
telnet>
3、quit 回車
connection closed.
Linux 命令列檢視CPU資訊
幾個cpu more proc cpuinfo grep physical id uniq wc l 每個cpu是幾核 假設cpu配置相同 more proc cpuinfo grep physical id grep 0 wc l cat proc cpuinfo grep processor 1...
Linux 下檢視命令列歷史
linux中,bash輸入的歷史記錄,會存在.bash history 或者說root bash history 通過history檢視。可以看到,不僅可以輸出正確的命令,還可以輸入錯誤的 如abc 而且輸出的是history之前所有的命令 including history bash histor...
Linux 下檢視命令列歷史
2018年03月26日 09 55 00 v0wsec linux中,bash 輸入的歷史記錄,會存在.bash history 或者說root bash history 通過history檢視。可以看到,不僅可以輸出正確的命令,還可以輸入錯誤的 如abc 而且輸出的是history之前所有的命令 ...