官網 http://tengine.taobao.org/ 安裝詳解 http://blog.csdn.net/wjc19911118/article/details/51063588 yum install -y pcre-devel gd-devel lua-devel openssl-devel geoip-devel libxslt-devel libxml2-devel useradd -r tengine cd /usr/local/src wget http://tengine.taobao.org/download/tengine-2.1.2.tar.gz tar -xzvf tengine-2.1.2.tar.gz cd tengine-2.1.2 ./configure \ --prefix=/usr/local/timevale/tengine \ --sbin-path=/usr/bin/tengine \ --conf-path=/etc/tengine/tengine.conf \ --error-log-path=/var/log/tengine/error.log \ --http-log-path=/var/log/tengine/access.log \ --pid-path=/var/run/tengine/tengine.pid \ --lock-path=/var/lock/tengine.lock \ --user=tengine \ --group=tengine \ --with-http_ssl_module \ --enable-mods-shared=all \ --dso-path=/usr/local/timevale/tengine/dso make && make install mkdir /usr/local/timevale/html echo "ok" > /usr/local/timevale/html/health-check chmod -R 755 /usr/local/timevale/html rsync -arvz /etc/tengine 192.168.12.14:/etc