码迷,mamicode.com
首页 > 其他好文 > 详细

nginx源码编译安装

时间:2016-10-07 13:32:11      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:

 

 安装编译所需的包:

[root@xaiofan ~]# yum install -y gcc gcc-c++ autoconf automake

安装nginx使用某些功能需要的包:

[root@xaiofan ~]# yum install -y zlib zlib-devel openssl openssl-devel pcre-devel

创建用户:

[root@xaiofan ~]# useradd -u 8000 -s /sbin/nologin nginx

安装:

[root@xaiofan ~]# cd /soft/
[root@xaiofan soft]# ls
nginx-1.8.0.tar.gz
[root@xaiofan soft]# tar xf nginx-1.8.0.tar.gz
[root@xaiofan soft]# cd nginx-1.8.0
[root@xaiofan nginx-1.8.0]# ./configure --prefix=/usr/local/nginx --with-http_dav_module --with-http_stub_status_module --with-http_addition_module --with-http_sub_module --with-http_flv_module --with-http_mp4_module --with-http_ssl_module

[root@xaiofan nginx-1.8.0]# make&&make install

 

启动nginx:

技术分享

技术分享

 

nginx源码编译安装

标签:

原文地址:http://www.cnblogs.com/fanxuanhui/p/5935729.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!