源码编译安装
感谢云计算磊哥的开源 以下是编译安装和笔记整理
腾讯nginx编译安装
1. yum -y install gcc make zlib-devel pcre pcre-devel openssl-devel
2. wget http://tengine.taobao.org/download/tengine-2.3.3.tar.gz
3.解压软件并进入目录
4.创建用户www
5.在解压的目录下输入编译命令
./configure --user=www --group=www --prefix=/usr/local/nginx
6.翻译 make
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
< man/nginx.8 > objs/nginx.8
7.安装 make install
8.启动验证 /usr/local/nginx/sbin/nginx
9.关闭httpd 启动程序,甚至可以卸载
10.在浏览器输入本机地址
Welcome to tengine!
If you see this page, the tengine web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to tengine.taobao.org.
Thank you for using tengine.
|