TengineTengine是由淘宝网发起的Web服务器项目。它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性。它的目的是打造一个高效、安全的Web平台。
使用root用户安装
# yum update
yum -y install gcc gcc-c++
yum -y install pcre pcre-devel
yum -y install zlib zlib-devel
yum -y install openssl openssl-devel
yum -y install jemalloc
yum -y install autoconf automake
mkdir /usr/local/tengine
去官网http://tengine.taobao.org/download.html下载压缩包tengine-2.2.1.tar.gz,解压tengine-2.2.1.tar.gz至usr/local/src下,
cd usr/local/src/tengine-2.2.1
./configure --prefix=/usr/local/tengine \
make && make install
至此,安装完成;
检查nginx配置文件nginx.conf是否正确
usr/local/tengine/sbin/nginx -t
启动nginx
usr/local/tengine/sbin/nginx -c usr/local/tengine/conf/nginx.conf
重启nginx
usr/local/tengine/sbin/nginx -s reload
关闭nginx
usr/local/tengine/sbin/nginx -s stop
或者kill -9 pid
时间: 2024-10-10 15:04:29