tengine下载安装 centos7

下载地址

http://tengine.taobao.org/download/tengine-2.2.1.tar.gz

安装

./configure: error: the HTTP rewrite module requires the PCRE library

安装pcre-devel

yum install pecre-devel

./configure: error: SSL modules require the OpenSSL library.

rpm -qa openssl

openssl-1.0.2k-8.el7.x86_64

openssl-1.0.1e-60.el7.x86_64

安装openssl-devel

yum install openssl-devel
./configure
make
sudo make install

将tengine设置为service服务

服务建立参考文章:
http://blog.csdn.net/zhangxtn/article/details/50462008

tengine.service文件

cd /usr/lib/systemd/system
vim nginx.service
[Unit]
Description=nginx performance web server
Documentation=http://tengine.taobao.org/documentation_cn.html
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStartPre=/usr/local/nginx/sbin/nginx -t
ExecStart=/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target
chmod 745 nginx.service
systemctl enable nginx.service
systemctl start nginx.service
#查看日志
journalctl -f -u nginx.service

你可能感兴趣的:(tengine下载安装 centos7)