问轩博客

展开菜单

nginx与apache的相关插件安装

nginx与apache的相关插件安装
查看版本/application/apache/bin/apachectl -V/application/nginx/sbin/nginx -v/application/php/bin/php -vmysql直接登陆就可以看到查看编译的参数/application/nginx/sbin/nginx -V  #用大V/application/apache/build/config.nicegrep CONFIGURE_LINE /application/mysql/b...

nginx参数优化以及编译扩展模块

nginx参数优化以及编译扩展模块
nginx相关优化参数1.隐藏nginx版本号在nginx.conf配置文件中,http,server,location段添加server_tokens off;2.想要彻底修改nginx错误返回页面在编译安装之前修改nginx.h文件sed -n '13,17p' src/core/nginx.h#define NGINX_VERSION      "1.6.2"      #将...