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
标签:sbin,nginx,安装,make,nignx,usr,&&,Linux,local 来源: https://www.cnblogs.com/finnlee/p/15195727.html