本文主要是介绍libmemcached的安装,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow
也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!
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.
给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow
这篇关于libmemcached的安装的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!