美文网首页
一键安装Tengine

一键安装Tengine

作者: wfwf1990 | 来源:发表于2017-12-28 20:08 被阅读0次

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

相关文章

网友评论

      本文标题:一键安装Tengine

      本文链接:https://www.haomeiwen.com/subject/bfovgxtx.html