nginx 1.25.0 升级过程

上传nginx-1.25.0 到服务器上。
[root@host- local]# tar -zxvf nginx-1.25.0.tar.gz
进入到原nginx文件目录下,复制nginx文件。
[root@host- sbin]# cp nginx nginx20230605.old
进入到新上传后解压的nginx-1.25.0目录下
[root@host- local]# cd nginx-1.25.0/
[root@host- nginx-1.25.0]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  man  README  src
安装nginx
[root@host- nginx-1.25.0]# ./configure --prefix=/usr/local/nginx
[root@host- nginx-1.25.0]# make
中间系统操作过程省略
[root@host- nginx-1.25.0]# ls
auto  CHANGES  CHANGES.ru  conf  configure  contrib  html  LICENSE  Makefile  man  objs  README  src
[root@host- nginx-1.25.0]# cd objs
[root@host- objs]# ls
autoconf.err  nginx    ngx_auto_config.h   ngx_modules.c  src
Makefile      nginx.8  ngx_auto_headers.h  ngx_modules.o
[root@host- nginx-1.25.0]# cp -f objs/nginx  /usr/local/nginx/sbin/nginx
cp:是否覆盖"/usr/local/nginx/sbin/nginx"? y
[root@host- nginx-1.25.0]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@host- nginx-1.25.0]# /usr/local/nginx/sbin/nginx -s reload
[root@host- nginx-1.25.0]# /usr/local/nginx/sbin/nginx -V
nginx version: nginx/1.25.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC)
configure arguments: --prefix=/usr/local/nginx
[root@host- nginx-1.25.0]# ps -ef | grep nginx
root      8740 19970  0 15:38 ?        00:00:00 nginx: worker process
root      8759  8664  0 15:40 pts/0    00:00:00 grep --color=auto nginx
root     19970     1  0 3月27 ?       00:00:00 nginx: master process ./nginx

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值