在虚拟机下折腾lnmp(2)--安装ngxin
1、下载 zilib-1.2.7,提供压缩函数库2、下载pcre-8.32,rewrite功能的依赖,需要安装
3、下载openssl-1.0.2a,可以访问https
4、下载nginx-1.6.2
1 ./configure --prefix=/home/yx/server/nginx \
2--error-log-path=/home/yx/log/nginx/error.log \
3--http-log-path=/home/yx/log/nginx/access.log \
4--with-http_ssl_module \
5--with-pcre \
6--with-zlib=/home/yx/src/zlib-1.2.7 \
7--with-openssl=/home/yx/src/openssl-1.0.2a
8 make && make install
如果出现libxxx.so错误,运行ldconfig更新共享库缓存即可。
5、使用非root用户启动nginx,usermod -G root yx将yx用户加入root组
6、chown yx nginx
7、chmod 750 nginx
8、chmod u+s nginx
页:
[1]