标签:
//ubuntu
//安装nginx
curl -LJO http://nginx.org/download/nginx-1.10.1.tar.gz
tar zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1.tar.gz
sudo apt install gcc autoconf automake build-essential
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install openssl
sudo apt-get install openss/libssl-dev
make
sudo make install
//启动nginx
sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
//查看nginx
ps -ef | grep nginx
//停止nginx
sudo kill -QUIT 主进程号(nginx master process id)
备注:一些组件和库如果没有,也要install
标签:
原文地址:http://www.cnblogs.com/ldybyz/p/5829956.html