libmemcached的安装 小咪咪 2022-08-12 18:30 145阅读 0赞 libmemcached的安装 访问其官方站: http://download.tangent.org/ 下载rpm包后安装,注意其最新的版本对glibc要求较高,如果不适用,建议用旧一点的版本 比如: centos5.2可以使用较低的libmemcached-0.25-1.x86\_64.rpm 安装完成后,memstat等命令可以用了 下面的内容引用自: http://www.oschina.net/p/libmemcached libmemcached是C客户端到memcached服务器的接口库。具有低内存占用率、线程安全、并提供对memcached功能的全面支持。它还 采用 多种命令行工具: memcat , memflush , memrm , memstat ,并memslap (负载代) 。程序库一直在设计,让不同的散列方法对密钥,分割的钥匙,并使用统一的散列分配。 memsat的例子: memstat --server 127.0.0.1 stats内容的一个说明: **以下是引用片段:** pid = process id uptime = number of seconds since the process was started time = current time version = memcached version rusage\_user = seconds the cpu has devoted to the process as the user rusage\_system = seconds the cpu has devoted to the process as the system curr\_items = total number of items currently in memcache total\_items = total number of items that have passed through the cache bytes = total number of bytes currently in use by curr\_items curr\_connections = total number of open connections to memcached connection\_structures = ??? cmd\_get = total GET commands issued to the server cmd\_set = total SET commands issued to the server get\_hits = total number of times a GET command was able to retrieve and return data get\_misses = total number of times a GET command was unable to retrieve and return data bytes\_read = total number of bytes input into the server bytes\_written = total number of bytes written by the server limit\_maxbytes = total storage bytes available to the server.
还没有评论,来说两句吧...