主机环境:
[root@test01 ~]# uname -a
Linux test01 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[root@test01 ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
IP地址:192.168.139.139
安装扩展插件:
[root@test01 ~]# yum install php-pecl-memcache php-pear -y php
安装/启动memcached:
[root@test01 ~]# yum install -y memcached
[root@test01 ~]# systemctl start memcached
编译安装参考:https://www.tracymc.cn/archives/248
查看php已经安装的模块:
[root@test01 ~]# php -m //查看是否有memcache,yum安装php的话默认自带memcache模块,没有的话需单独安装,参考https://www.tracymc.cn/archives/574
安装Apache服务:
[root@test01 ~]# yum install -y httpd
安装memadmin:
[root@test01 ~]# wget https://github.com/junstor/memadmin/archive/master.zip
[root@test01 ~]# cp master.zip /var/www/html/
[root@test01 ~]# cd /var/www/html/
[root@test01 html]# unzip master.zip
[root@test01 www]# systemctl start httpd
浏览器打开192.168.139.139/memadmin-master是否正常,正常情况下会出现如下界面:
默认账号密码都为admin,可以通过修改/var/www/html/memadmin-master/config.php(user/passwd字段)修改登录用户名和密码.
新增连接,如下图(memcache默认端口为11211):
初始页面如下:
具体功能可自己安装测试.
Be First to Comment