2015-06-01
安裝
yum -y install memcached
設定 /etc/sysconfig/memcached, 設定記憶體使用量 (預設 64)
CACHESIZE="1024"
設定開機啟用 memcached 服務
[root@localhost ~]# systemctl enable memcached.service
ln -s '/usr/lib/systemd/system/memcached.service' '/etc/systemd/system/multi-user.target.wants/memcached.service'
[root@localhost ~]#
systemctl start memcached.service
測試 memcached 是否成功啟用
[root@localhost ~]# netstat -ntulp | grep 11211
tcp 0 0 0.0.0.0:11211 0.0.0.0:* LISTEN 15409/memcached
tcp6 0 0 :::11211 :::* LISTEN 15409/memcached
udp 0 0 0.0.0.0:11211 0.0.0.0:* 15409/memcached
udp6 0 0 :::11211 :::* 15409/memcached
[root@localhost ~]#
(完)
沒有留言:
張貼留言