-p 監聽的端口
-l 連接配接的ip位址, 預設是本機
-d start 啟動memcached服務
-d restart 重起memcached服務
-d stop|shutdown 關閉正在運作的memcached服務
-d install 安裝memcached服務
-d uninstall 解除安裝memcached服務
-u 以的身份運作 (僅在以root運作的時候有效)
-m 最大記憶體使用,機關mb。預設64mb
-m 記憶體耗盡時傳回錯誤,而不是删除項
-c 最大同時連接配接數,預設是1024
-f 塊大小增長因子,預設是1.25
-n 最小配置設定空間,key+value+flags預設是48
-h 顯示幫助
memcached的基本指令(當memcached 啟動後 用于對memcached管理的資料和本身運作狀态相關的指令):
command
description
example
get
reads a value
get mykey
set
set a key unconditionally
set mykey 0 60 5
add
add a new key
add newkey 0 60 5
replace
overwrite existing key
replace key 0 60 5
append
append data to existing key
append key 0 60 15
prepend
prepend data to existing key
prepend key 0 60 15
incr
increments numerical key value by given number
incr mykey 2
decr
decrements numerical key value by given number
decr mykey 5
delete
deletes an existing key
delete mykey
flush_all
invalidate specific items immediately
invalidate all items in n seconds
flush_all 900
stats
prints general statistics
prints memory statistics
stats slabs
stats malloc
print higher level allocation statistics
stats items
stats detail
stats sizes
resets statistics
stats reset
version
prints server version.
verbosity
increases log level
quit
terminate telnet session
對檢視的資訊的關鍵字中英文對照表
pid
memcache伺服器的程序id
uptime
伺服器已經運作的秒數
time
伺服器目前的unix時間戳
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
目前線程數
http://www.php100.com/html/webkaifa/php/phpyingyong/2013/0314/12204.html