1、下班最新版本,下载地址 nginx: download
上次服务器后执行一下步骤:
[root@centos]# tar -zxvf nginx-1.22.1.tar.gz
[root@centos]# ps -ef|grep nginx
[root@centos]# cd nginx-1.22.1/
[root@centos]# ./configure --with-http_stub_status_module --with-http_ssl_module
[root@centos]# make
[root@centos]# make install
[root@centos]# cd /usr/local/nginx/sbin/
[root@centos]# ./nginx -v
[root@centos]# ./nginx -t
[root@centos]# ./nginx -s reload
[root@centos]# ps -ef|grep nginx