实验环境
ubuntu 14.04
nginx 1.10.2
安装步骤
安装相关依赖库
sudo apt-get update && sudo apt-get install -y make openssl libssl-dev zlib1g-dev libpcre3 libpcre3-dev
下载
sudo wget http://nginx.org/download/nginx-1.10.2.tar.gz
解压
tar -zxvf nginx-1.10.2.tar.gz
安装
cd nginx-1.10.2 && sudo ./configure && sudo make && sudo make install && cd ../
启动
sudo /usr/local/nginx/sbin/nginx
查看进程
ps -ef|grep nginx
检查配置
sudo /usr/local/nginx/sbin/nginx -t
重新导入配置
sudo /usr/local/nginx/sbin/nginx -s reload