1.yum 安裝
yum clean all
yum -y update
yum -y install memcached
2.memcached 執行
memcached -h //
檢視考號修改配置
vim /etc/sysconfig/memcached
內容如下:
port=」11211″
user=」memcached」
maxconn=」1024″
cachesize=」64″
options=」"
可以修改埠,使用者和最大記憶體,快取大小 //
重啟,啟動,開機啟動,狀態,關閉
systemctl restart memcached
systemctl start memcached
systemctl enable memcached
systemctl status memcached
systemctl stop memcached
memcached-tool 127.0.0.1:11211 stats
#127.0.0.1:11211 field value
accepting_conns 1
auth_cmds 0
auth_errors 0
bytes 0
bytes_read 7
bytes_written 0
cas_badval 0
cas_hits 0
cas_misses 0
cmd_flush 0
cmd_get 0
cmd_set 0
cmd_touch 0
conn_yields 0
connection_structures 11
curr_connections 10
curr_items 0
decr_hits 0
decr_misses 0
delete_hits 0
delete_misses 0
evicted_unfetched 0
evictions 0
expired_unfetched 0
get_hits 0
get_misses 0
hash_bytes 524288
hash_is_expanding 0
hash_power_level 16
incr_hits 0
incr_misses 0
libevent 2.0.21-stable
limit_maxbytes 67108864
listen_disabled_num 0
pid 27929
pointer_size 64
reclaimed 0
reserved_fds 20
rusage_system 0.055134
rusage_user 0.091092
threads 4
time 1429863174
total_connections 11
total_items 0
touch_hits 0
touch_misses 0
uptime 910
version 1.4.15
3.擴充套件一下,安裝php-memcache擴充套件,防火牆放開11211埠
yum -y install php-pecl-memcache
如果是php56版本的應該執行
yum -y install php56w-pecl-memcache
防火牆放開11211
firewall-cmd --permanent --zone=public --add-port=11211/tcp
檢查埠是否開放
echo stats | nc memcache_host_name_or_ip 11211
centos7 安裝centos桌面
一 輸入命令 yum groupinstall gnome desktop graphical administration tools 二 設定系統啟動等級。systemctl get default 獲取當前系統執行形式,會顯示multi user.target 命令列終端 或者 graphic...
centos7安裝nginx(yum安裝)
感興趣的可以檢視用壓縮包安裝的過程 1 通過檢視當前linux核心以及版本號進行獲取nginx的rpm安裝源適配。uname a2 獲取nginx相關的rpm源 防止版本號不對應產生的各種問題 rpm uvh3 yum安裝nginx yum install nginx等待安裝完成。1 安裝完成後,n...
CentOS7安裝docker(yum安裝)
1.中文文件 2.檢視linux版本 cat etc redhat release3.是否聯網 這裡yun安裝,不聯網gg 4.解除安裝舊版本 sudo yum remove docker docker client docker client latest docker common docker...