首页 > 其他 > 详细

在虚拟机下折腾lnmp(2)--安装ngxin

时间:2015-03-23 00:10:10      阅读:279      评论:0      收藏:0      [点我收藏+]

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

在虚拟机下折腾lnmp(2)--安装ngxin

原文:http://www.cnblogs.com/soulcage/p/4358327.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!