随笔分类 -  Nginx

摘要:CentOS7源码安装Nginx1.22 下载源码包: [root@localhost ~]# wget http://nginx.org/download/nginx-1.22.1.tar.gz 安装依赖: [root@localhost ~]# yum -y install gcc make p 阅读全文
posted @ 2022-11-26 17:52 Noleaf 阅读(578) 评论(0) 推荐(0)
摘要:nginx编译新模块 1.查看当前nginx编译模块 [root@iZ2zehdwq9kcuuz64a2m22Z ~]# nginx -V nginx version: nginx/1.16.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) 阅读全文
posted @ 2021-11-02 11:09 Noleaf 阅读(287) 评论(0) 推荐(0)
摘要:nginx平滑升级及回滚 1.查看当前nginx版本 [root@iZ2zehdwq9kcuuz64a2m21Z ~]# /usr/local/nginx/sbin/nginx -V nginx version: nginx/1.16.1 built by gcc 4.8.5 20150623 (R 阅读全文
posted @ 2021-11-02 10:45 Noleaf
摘要:nginx编译参数详解 -–prefix=PATH #指向安装目录 -–sbin-path=PATH #指向(执行)程序文件(nginx) -–conf-path=PATH #指向配置文件(nginx.conf) -–error-log-path=PATH #指向错误日志目录 -–pid-path= 阅读全文
posted @ 2021-10-15 13:55 Noleaf 阅读(177) 评论(0) 推荐(0)
摘要:编写Nginx主配置文件 # vim /usr/local/nginx/conf/nginx.conf user dywww dywww; worker_processes auto; error_log /dydata/wwwlogs/error_nginx.log crit; pid /var/ 阅读全文
posted @ 2020-08-13 15:13 Noleaf 阅读(296) 评论(0) 推荐(0)
摘要:CentOS7源码安装Nginx 1.准备工作: wget http://nginx.org/download/nginx-1.8.0.tar.gz 2.安装依赖 #yum install -y make cmake gcc gcc-c++ autoconf automake libpng-deve 阅读全文
posted @ 2020-08-12 15:40 Noleaf 阅读(125) 评论(0) 推荐(0)