摘要: 官方源码包下载地址:https://nginx.org/en/download.html[root@centos8-1 ~]$yum -y install gcc pcre-devel openssl-devel zlib-devel make ##下载编译时需要用到的包[root@centos8- 阅读全文
posted @ 2020-09-25 12:11 练习生天泽 阅读(1284) 评论(0) 推荐(0)
摘要: 修改server字段如果想自定义响应报文的nginx版本信息,需要修改源码文件,重新编译如果nginx配置文件中的字段设定为server_tokens on,请修改 src/core/nginx.h 修改13-14行,如下示例[root@centos8-1 nginx-1.18.0]$pwd/usr 阅读全文
posted @ 2020-09-25 11:55 练习生天泽 阅读(1374) 评论(0) 推荐(0)