您现在的位置是: 首页 > 运维 Linux 安装 Tengine
Linux 安装 Tengine
2020-05-19 【运维】 2594人已围观 5201次浏览
简介Linux 安装 Tengine
首先下载Tengine
可以直接在服务器上使用wget方式,比如
wget http://tengine.taobao.org/download/tengine-2.3.0.tar.gz
解压
tar -zxvf tengine-2.3.0.tar.gz
在进入解压目录前,先要确认以下依赖是否已经安装,或者直接输入下面命令进行安装
yum -y install gcc
yum -y install pcre pcre-devel
yum -y install openssl openssl-devel
进入解压之后的目录,进行配置检查
./configure
检查无误,进行安装
make && make install
或者使用
–prefix
选项来指定根目录
安装成功之后,默认的目录是在
/usr/local/nginx
进入sbin目录进行nginx启动
cd /usr/local/nginx/sbin
./nginx -s start
如果在默认80端口没有被占用的情况下,会正常启动成功
下面是一些常用的Nginx命令
关闭
/usr/local/nginx/sbin/nginx -s stop
重启
/usr/local/nginx/sbin/nginx -s restart
显示所有加载的模块
nginx -m
显示所有可以使用的指令
nginx -l
检查nginx的配置文件是否正确
nginx -t
很赞哦! (0)
上一篇:CentOS 安装JDK
下一篇:SqlServer字符串处理
相关文章
- CentOS 安装JDK
- Linux 修改默认的 ssh 22 端口
- CentOS 安装Node.js
- ElasticSearch安装踩坑指南
- Linux 查看磁盘、磁盘分区、挂载磁盘、卸载磁盘操作
- mybatis中大于等于小于等于的写法
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- Nginx转发阿里云OSS内网流量
- linux下各文件夹的结构说明及用途介绍
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- Debian apt 使用国内镜像
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
- nuxt 项目完整部署方案