I'm running php 5.3. I have installed the pecl memcache extension. Once upon a time there was the memcache.php (which I'm aware is still around and usable) for viewing useful memcached stats and other info. At some point this page was committed into the pecl memcached extension (can't get the link to the commit atm).
My question is once the extension is installed how do I view this pa开发者_开发百科ge?
To view the result of the memcache.php
file, you'll have to :
- download it (download the
.tgz
archive from PECL, it should be included) - Eventually, configure the
memcache.php
file, to indicate which servers should be monitored- You'll have to configure the
$MEMCACHE_SERVERS
array
- You'll have to configure the
- Put that
memcache.php
file somewhere on your server- Making sure it's somewhere that's not publicly accessible.
- Access the file from your browser ;-)
Installing the PECL memcache extension will allow you to use communicate with a memcached server from PHP -- but it'll not install the memcache.php
file on your webserver.
Apparently, this file has been added in PECL for these two versions of the extension :
- 3.0.2
- and 2.2.4
You can use Telnet to connect to the memcached IP address and port and use certain commands to get stats. Here's an article that might help.
The file you needed is here: http://svn.php.net/viewvc/pecl/memcache/trunk/memcache.php?view=markup
精彩评论