一键安装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

相关内容

    暂无相关文章