http://www.mitusky.com/forum.php?mod=viewthread&tid=3135
|
本帖最后由 民审-M 于 2016-10-12 20:41 编辑
微擎开启性能优化里面的性能优化memcache内存优化及数据库读写分离
环境支持需要安装:pecl_memcache , memcached
配置文件路径:/data/config.php
修改两处:
第53行位置如图所示:
<ignore_js_op>
第35行位置如图所示:将默认 mysql 改成 memcache
<ignore_js_op>
设置好后保存,查看系统优化——内存优化是否开启,如图所示:<ignore_js_op>
读写分离的配置: 第6~24行位置如图所示: <ignore_js_op>
更多:
© 声明: 本文仅代表作者观点,不代表草根吧立场,与草根吧无关。本文系作者授权草根吧发表,未经许可,不得转载。
|
|
|
|
|
|
|
|
本帖最后由 ——過厾のCD 于 2016-10-17 16:21 编辑
从数据库是和主数据库一样新建独立数据库吗?然后导入相同的数据? 楼主能详细说明下吗?
|
|
|
|
|
|
|
|
本帖最后由 小农一枚 于 2016-10-22 00:09 编辑
我想问哈小草,主数据库是和源码放在一个服务器上,从数据库放另一台服务器上,是这样吗? |
|