centos 单独安装nginx
安装包下载网址:
http://nginx.org/en/download.html
进入Linux文件夹执行
wget http://nginx.org/download/nginx-1.8.0.tar.gz
安装nginx依赖模块
yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel
进入解压的文件夹
./configure --with-http_ssl_module
支持https 也可以自己继续添加别的参数
make
make install
设置开机启动
echo "/usr/local/nginx/sbin/nginx" >> /etc/rc.d/rc.local