nginx源码安装
yum -y install pcre-devel zlib-devel openssl openssl-devel
wget https://nginx.org/download/nginx-1.24.0.tar.gz
wget https://codeload.github.com/yaoweibin/nginx_upstream_check_module/zip/master
./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=/root/nginx_upstream_check_module-master
启动:
/usr/local/nginx/sbin/nginx
重启
/usr/local/nginx/sbin/nginx -s reload
停止
#查询nginx主进程号
ps -ef | grep nginx
pkill -9 nginx
测试
#测试端口
netstat –na|grep 80
#浏览器中测试
http://ip:80