版权声明:本文为博主原创文章,转载请指明地址。 https://blog.csdn.net/Mr_rsq/article/details/82755050
1、搭建LNMP环境,可参考上篇博文
2、下载MemAdmin,并放在站点目录下
[root@cache01 ~]# cd /application/nginx/html/blog/
[root@cache01 blog]# wget -q http://www.junopen.com/memadmin/memadmin-1.0.12.tar.gz
[root@cache01 blog]# tar -xf memadmin-1.0.12.tar.gz
[root@cache01 blog]# ls -l memadmin
总用量 36
drwxrwxrwx 2 root root 4096 6月 19 2013 apps
-rwxrwxrwx 1 root root 1214 6月 19 2013 config.php
drwxrwxrwx 2 root root 4096 6月 19 2013 images
drwxrwxrwx 6 root root 4096 6月 19 2013 include
-rwxrwxrwx 1 root root 184 6月 19 2013 index.php
drwxrwxrwx 2 root root 4096 6月 19 2013 langs
-rwxrwxrwx 1 root root 1489 6月 19 2013 LICENSE.txt
-rwxrwxrwx 1 root root 1118 6月 19 2013 README.txt
drwxrwxrwx 2 root root 4096 6月 19 2013 views
3、测试访问,初始账户和密码为admin
4、set插入数据,然后看变化
[root@cache01 ~]# cd /server/scripts/
# set写入数据
[root@cache01 scripts]# cat w.sh
for n in `seq -w 99`
do
printf "set key$n 0 0 5\r\nrsq$n\r\n"|nc 127.0.0.1 11211
done
[root@cache01 scripts]# bash w.sh
STORED
...
...
...
STORED
5、其它界面展示
读取数据,来测试命中率
# 读取数据
[root@cache01 scripts]# cat r.sh
for n in `seq -w 99`
do
printf "get key$n\r\n"|nc 127.0.0.1 11211
done
[root@cache01 scripts]# bash r.sh
VALUE key01 0 5
rsq01
END
...
...
...
VALUE key99 0 5
rsq99
END
[root@cache01 scripts]#
6、总结
MemAdmin是一款轻量级Memcached管理监控工具,不过也好久没更新过了,最新更新截止到12年,但是测试用起来还不错,也许不太适合工作环境吧。