1,打开gzip压缩
http://www.jzxue.com/wangzhankaifa/php/201104/14-7108.html
php.ini
zlib.output_compression = On
zlib.output_compression_level = 6
ps.debian默认已将zlib打开,设置后效果一样
2,停止apache信息
http://www.ha97.com/2505.html
httpd.conf
ServerTokens OS 修改为 ServerTokens ProductOnly
ServerSignature On 修改为 ServerSignature Off
3,停止php信息
http://www.ha97.com/2058.html
expose_php = Off
4,加大脚本运行时间
http://www.cnblogs.com/xiaochaohuashengmi/archive/2010/06/18/1760466.html
修改php.ini里的max_execution_time = 30了。这个默认是30秒,
mysql的设置
------------------------------------------------------
http://bbs.linuxtone.org/thread-20601-1-1.html
添加nginx反向代理
-------------------------------------------------------------