赞
踩
下方的步骤针对于新装的Linux系统,基本上是通过yum命令安装的
yum install -y gcc gcc-c++
yum -y install wget
cd /usr/local/
wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz
tar -zxvf pcre-8.33.tar.gz
cd pcre-8.33
./configure
make && make install
cd /usr/local
wget https://www.cpan.org/src/5.0/perl-5.28.0.tar.gz 下载压缩包
cd perl-5.28.0
./Configure -des -Dprefix=$HOME/localperl
make && make install
cd /usr/local/
wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz
tar -zxvf openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
./config
make && make install
cd /usr/local/
wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install
cd /usr/local/
wget http://nginx.org/download/nginx-1.9.10.tar.gz
tar -zxvf nginx-1.9.10.tar.gz
cd nginx-1.9.10
./configure
make && make install
查询是否启动:ps -ef | grep nginx
启动Nginx::/usr/local/nginx/sbin/nginx (指Nginx的安装位置中的启动程序,安装位置也在这个路径/usr/local/nginx)
停止Nginx:./nginx -s stop 或 kill -QUIT [进程号] 然后再次查询是否停止了Nginx:ps -ef | grep nginx
快速停止:kill -TERM [进程号]
强制停止:kill -9 [进程号]
重启:/usr/local/nginx/sbin/nginx -s reload
Nginx的详细启动,关闭,重启请连接至:https://www.cnblogs.com/yeshaoxiang/p/8659708.html
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。