记录windows系统上nginx版本从1.22.1直接升级到1.25.3,全程一步到位!
nginx官网: https://nginx.org/
C:\Windows\system32>cd C:\nginx# 查看当前nginx版本C:\nginx>nginx -v
nginx version: nginx/1.22.1# 停止nginx服务C:\nginx>net stop nginx
The Nginx service is stopping.
The Nginx service was stopped successfully.# 替换nginx.exe文件将解压后的nginx.exe替换掉旧版本的nginx.exe (建议通过重命名来备份原来的文件)# 启动nginx服务C:\nginx>net start nginx
The Nginx service is starting...
The Nginx service was started successfully.# 查看nginx版本C:\nginx>nginx -v
nginx version: nginx/1.25.3
本文中nginx windows服务是通过WinSW程序实现的。