memcache 的安装和使用


memcache 的安装和使用


yum安装memcache
yum -y install memcached
开启memcache
systemctl start memcached
设置开机自启memcache
systemctl enable memcached
查看memcache 的端口
ss -ntl | grep 11211

#(可以用telnet登录使用memcached
yum -y install telnet
telnet 127.0.0.1 11211
在这里插入图片描述

用apache页面使用memcached 查看
yum -y install httpd php php-pecl-memcache.x86_64(扩展包)
开启apache
systemctl start httpd
上传解压安装包
cd /var/www/html
mv /root/memadmin-1.0.12.tar.gz .
tar zxf memadmin-1.0.12.tar.gz
重启apache
systemctl restart httpd
用本机IP登录
192.168.136.15/memadmin
默认登录用户和密码:admin

猜你喜欢

转载自blog.csdn.net/youchaoXu/article/details/111632196