memcache.php在memcahce-2.2.7包内
memcahce-2.2.7下载地址:
http://pecl.php.net/get/memcache-2.2.7.tgz
将memcahce-2.2.7包内的memcache.php放在apache的htdocs目录下:
[root@node1 memcache-2.2.7]# cp memcache.php /home/webserver/httpd/htdocs/
修改memcache.php内容:
[root@node1 htdocs]# vim memcache.php
<?php
....
define('ADMIN_USERNAME','admin'); // Admin Username
define('ADMIN_PASSWORD','zrer90'); // Admin Password
define('DATE_FORMAT','Y/m/d H:i:s');
define('GRAPH_SIZE',200);
define('MAX_ITEM_DUMP',50);
$MEMCACHE_SERVERS[] = '127.0.0.1:11211'; // add more as an array --指定监控的服务器
/* $MEMCACHE_SERVERS[] = 'mymemcache-server2:11211'; // add more as an array */
...
?>
访问memcache.php查看: