xinghe0 发表于 2015-9-2 10:20:25

asp.net 下的memcached使用一


  memcached 的安装非常简单这里以1.2.4 版本示例。
  下载地址:http://www.splinedancer.com/memcached-win32/
  现在的版本是 1.2.4 Beta 版
  
  1.下载完毕后,将文件解压。
  2.进入命令提示符形式
  3.从命令提示符形式进入到memcached的文件夹中。
  4.输入memcached -h 可以看到memcached 的帮助信息,如下所示:
  
  -p <num>      TCP port number to listen on (default: 11211)
-U <num>      UDP port number to listen on (default: 0, off)
-s <file>   unix socket path to listen on (disables network support)
-a <mask>   access mask for unix socket, in octal (default 0700)
-l <ip_addr>interface to listen on, default is INDRR_ANY
-d start          tell memcached to start
-d restart      tell running memcached to do a graceful restart
-d stop|shutdowntell running memcached to shutdown
-d install      install memcached service
-d uninstall      uninstall memcached service
-r            maximize core file limit
-u <username> assume identity of <username> (only when run as root)
-m <num>      max memory to use for items in megabytes, default is 64 MB
-M            return error on memory exhausted (rather than removing items)
-c <num>      max simultaneous connections, default is 1024
-k            lock down all paged memory
-v            verbose (print errors/warnings while in event loop)
-vv         very verbose (also print client commands/reponses)
-h            print this help and exit
-i            print memcached and libevent license
-b            run a managed instanced (mnemonic: buckets)
-P <file>   save PID in <file>, only used with -d option
-f <factor>   chunk size growth factor, default 1.25
-n <bytes>    minimum space allocated for key value flags, default 48
  
  5.安装memcached,在命令提示符中输入 memcached -d install
  6.启动memcached, 在命令提示符中输入 memcached -d start
  到此memcached 安装完成。
页: [1]
查看完整版本: asp.net 下的memcached使用一