Centos7源码编译安装tengine1.5.1
2024-08-30 15:16:11
- 安装依赖包
yum install pcre pcre-devel openssl openssl-devel gcc make zlib-devel wget -y
- 下载和创建用户
mkdir /tools
cd /tools/
wget http://tengine.taobao.org/download/tengine-1.5.1.tar.gz
useradd nginx -s /sbin/nologin
- 编译安装
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 --with-http_gzip_static_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
- 开机启动
nginx
cd /usr/local/nginx/conf
egrep -v "#|^$" nginx.conf.default >nginx.conf
- 命令整理
yum install pcre pcre-devel openssl openssl-devel gcc make zlib-devel -y
mkdir /tools
cd /tools/
wget http://tengine.taobao.org/download/tengine-1.5.1.tar.gz
useradd nginx -s /sbin/nologin
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 --with-http_gzip_static_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
最新文章
- CSS3自适配手机屏幕
- 智能指针(一):STL auto_ptr实现原理
- 基础组件_Window(窗口)
- could not read data from '/Users/xxxx/myapp-Info.plist'
- Git CMD - config: Get and set repository or global options
- WPF动画之线性插值动画(1)
- java中获得IP地址
- 使用linux操作系统的公司服务器有哪些品牌
- Eight
- springmvc中@PathVariable传Double精度丢失
- xtrabackup备份mysql数据库方法
- 剑指Offer_编程题_8
- SQL Server 触发器demo
- Linux QtCreator 编译报错:No rule to make target '.../***' needed by '***.o'.stop
- oracle完全恢复数据库
- JavaScript中如何将html字符串转化为Jquery对象或者Dom对象
- 基于Promise规范的fetch API的使用
- MySQL 如何更新某个字段的值为原来的值加1
- .Net内存溢出 System.OutOfMemoryException
- SchuledExecutorService 使用controller控制线程关闭