一键安装Tengine

yum install pcre pcre-devel openssl openssl-devel -y

mkdir /tools

cd /tools/

wget http://tengine.taobao.org/download/tengine-1.5.1.tar.gz

useradd nginx -s /sbin/nologin -M

tar xf tengine-1.5.1.tar.gz

cd tengine-1.5.1

./configure --user=nginx --group=nginx --prefix=/usr/local/nginx1.5.1 --with-http_stub_status_module --with-http_ssl_module --with-http_upstream_check_module

make && make install

ln -sv /usr/local/nginx1.5.1/ /usr/local/nginx

echo "export PATH=/usr/local/nginx/sbin:$PATH" >>/etc/profile

source /etc/profile

echo "/usr/local/nginx/sbin/nginx"  >>/etc/rc.local

nginx

cd /usr/local/nginx/conf

egrep -v "#|^$" nginx.conf.default >nginx.conf

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容