Linux安装nignx
一、安装编译工具及库文件
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
二、下载Nginx
wget http://nginx.org/download/nginx-1.20.1.tar.gz
三、检查并安装
cd nginx-1.20.1 && ./configure --prefix=/usr/local/nginx make && make install
四、命令
/usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx -s restart /usr/local/nginx/sbin/nginx -s start netstat -ano|grep 80