|
|
@@ -3,9 +3,9 @@
|
|
|
|
|
|
注意:强烈建议生产环境包括压测环境使用memcache,配置方法如下:
|
|
|
========
|
|
|
-安装memcahced服务,例如 unbuntu 运行sudo apt-get install memcached
|
|
|
+安装memcahced服务,例如 ubuntu 运行sudo apt-get install memcached
|
|
|
启动memcached ,例如 ubuntu 运行 memcached -m 256 -p 22322 -u memcache -l 127.0.0.1 -d
|
|
|
-安装memcache扩展,例如 ubuntu 运行 sudo apt-get install php5-memcache
|
|
|
+安装memcache扩展,例如 ubuntu 运行 sudo apt-get install php5-memcached
|
|
|
设置 applications/XXX/Config/Store.php 中的 public static $driver = self::DRIVER_MC;public static $gateway = array('127.0.0.1:22322');
|
|
|
重启workerman
|
|
|
|