虚拟机:VirtualBox
操作系统:CentOS7
Nginx版本:nginx-1.6.3
http://nginx.org/en/download.html
yum -y install gcc gcc-c++ autoconf automake make yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel
1 cd /usr/local/ 2 mkdir software
将nginx-1.6.3.tar.gz上传到/usr/local/software/目录下
1 tar zxvf nginx-1.6.3.tar.gz
1 mkdir -p /usr/local/nginx
1 make && make install
1 cd /usr/local/nginx/sbin
1 ./nginx
1 ./nginx -s stop
1 ./nginx -s reload
转载于:https://www.cnblogs.com/Matchman/p/9023094.html