memcache monitoring and management

Visually monitor our memcache with memadmin

 

  I believe that there are still many projects using memcache, some people may say that it is a bit out, but what? ? ? Things on the project are not something you can change if you want. . . Everyone wants more than less

For one thing, the unknown risks you face after large-scale replacement may be unbearable. However, memcache is a server process. By default, there is no visual monitoring, and it cannot be moved.

View and modify the data in the memcache in a state, which will cause us to feel extremely insecure like a little girl in the process of using the memcache.

 

One: memadmin monitoring system

     The world of open source is vast, so in millions of open source projects, there will naturally be solutions for such needs, such as memadmin here, and then I encyclopedias, as shown below:

ok, from the above picture, you should probably see the range that memadmin can monitor. stats, settings, items, slabs. . . Wait, let's take this environment

Install it and see if it hangs.

 

Two: installation of memadmin

1. Install memcache

    This is very simple. You can either install the windows version of memcache or mess around with centos. Here I choose centos.

    memcache official website: http://memcached.org/

  

   You should also be able to see the installation steps on the official website: but note that libevent must be installed before installing memcache.

Then, we can start by following this step.

 

2. Install the operating environment of php

   Since memadmin is a php program, the apache server must be installed. For convenience, I will install the wamp integrated environment here. The selected version is: 2.5

After installation, we went to apache's httpd.conf and changed the default port from 80 => 8080, so that we can open our website without occupying port 80.

 

Three: Download the memadmin executable program

     完整成功启动,接下来我们可以下载memadmin程序。网址:http://www.junopen.com/memadmin/ ,下载完成之后我们将其放到wamp的

www目录下。

四:安装memcache.dll 扩展

     这个算是最坑爹的一步,memcache的版本要和php的版本都有对应关系的,也就是,不是随便找一个memcache.dll就能安装成功的,从 

http://pecl.php.net/package/memcache 网站上也没有找到合适的。。。最后花擦了整个搜索,终于让我给找到了。。。既然找到了,下一步我们

就需要将 memcache.dll放到 ext文件夹下,最后在apache目录下的php.ini文件中加一下引用即可,如下图:

 

提醒大家的是一定要看清楚文件所在的目录哦,,, ok,经过上面种种步骤,我们的安装基本上算是完成了,最后就是修改下memadmin网站的登

录名和密码,在这里呢,我都改成了默认的admin/admin。

 

之后我们就可以打开网站了,是不是有点超级兴奋的感觉。。。最后再附加一些网站的截图,如果大家懂memcache,这些截图应该很熟悉的哦~~

 

好了,大概就这样了,是不是很吊的样子。。。当然,更多细节,待你挖掘~~~

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326078348&siteId=291194637