淘宝tengine安装

环境:centos7.4

jdk:1.8


 

下载地址:

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


 链接: https://pan.baidu.com/s/1XUcWvFDQm5EurRbs4pVvgw

提取码: egx2


 

编译安装:

yum -y install openssl openssl-devel  pcre pcre-devel gcc gcc-c++ autoconf automake

yum -y install gcc gcc-c++ autoconf automake make  

 yum install -y gcc pcre pcre-devel openssl openssl-devel gd gd-devel

 

tar -zxvf  tengine-2.2.2.tar.gz

cd /usr/local/src/tengine-2.2.2

 ./configure

make install

 


 链接: https://pan.baidu.com/s/1XUcWvFDQm5EurRbs4pVvgw 提取码: egx2

设置开机启动

chmod 745 nginx.service

vim /lib/systemd/system/nginx.service 创建文件

[Unit]
Description=The nginx HTTP and reverse proxy server
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/usr/local/nginx/logs/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


 

重启加载

systemctl daemon-reload
systemctl stop nginx.service
systemctl start nginx.service

 systemctl enable nginx.service

 

posted @ 2019-03-06 17:39  zhouyuqiang  阅读(134)  评论(0编辑  收藏  举报