1.为mysql新建组和用户
useradd -M -s /sbin/nologin www
2.安装需要的库
yum install pcre pcre-devel openssl openssl-devel -y
3.解压
tar zxvf nginx-1.10.3.tar.gz
cd nginx-1.10.3
4.编译安装
./configure
--user=www
--group=www
--prefix=/usr/local/nginx
--with-http_stub_status_module
--with-http_ssl_module
--with-http_gzip_static_module
make
make install
5.设置开机自启动
/usr/local/nginx/sbin/nginx
echo ‘/usr/local/nginx/sbin/nginx‘ >> /etc/rc.local
原文:http://younger008.blog.51cto.com/690865/1899270
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!