源码安装Nginx

来源:互联网 发布:音乐的发展历程知乎 编辑:程序博客网 时间:2024/05/22 14:04

1.下载好源码:http://nginx.org/en/download.html

2.安装相应的编译环境:gcc, openssl-devl, pcre-devel和zlib-devel

3.配置:./configure --prefix=/opt/nginx1.2 --with-http_stub_status_module 

3.make

4.sudo make install


具体的选项可以查看一个README文件及./configure --help,自己根据需要编译。

原创粉丝点击