您现在的位置是: 首页 > 运维 Linux 安装 Tengine
Linux 安装 Tengine
2020-05-19 【运维】 2982人已围观 5825次浏览
简介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字符串处理
相关文章
- Linux 常用命令 持续更新中...
- CentOS 安装JDK
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- Windows CMD 常用命令
- Linux 修改默认的 ssh 22 端口
- mybatis中大于等于小于等于的写法
- CentOS 7 安装 Golang 环境
- 自建Ngrok服务端
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- 【Docker】unauthorized: incorrect username or password
点击排行
- 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 项目完整部署方案
站长推荐
猜你喜欢
- Oracle ORA-12541:TNS:no listener错误解决方法
- sentinel directive while not in sentinel mode 问题解决
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- CentOS 安装Python3
- Mac 设置允许任何来源
- linux下各文件夹的结构说明及用途介绍
- start.spring.io访问太慢,构建SpringBoot项目失败
- Debian apt 使用国内镜像
- Vue 路由跳转错误 NavigationDuplicated: Avoided redundant navigation to current location
- 删除Git仓库所有历史提交记录,成为一个干净的仓库