您现在的位置是: 首页 > 运维 Linux 安装 Tengine
Linux 安装 Tengine
2020-05-19 【运维】 1460人已围观 2558次浏览
简介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字符串处理
相关文章
- 迁移 Docker 目录
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- Debian apt 使用国内镜像
- CentOS 安装JDK
- Nginx转发阿里云OSS内网流量
- Redis 提示 MISCONF Redis is configured to save RDB snapshots, but it is currently not able to persist on disk 解决方案
- CentOS 安装Node.js
- Linux 修改默认的 ssh 22 端口
- LNMP定时备份任务教程(支持排除指定文件夹)
- docker mysql 导入 SQL 脚本
点击排行
- Error in execution; nested exception is io.lettuce.core.RedisCommandExecutionException: ERR DISABLE You can't write or read against a disable instance
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- Debian apt 使用国内镜像
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- SpringBoot @NotBlank 不生效问题
- 记一次 Mybatis-Plus 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- 防止Time Machine备份Parallels Desktop的虚拟硬盘文件
- Vue 监听回车 el-input 和 input 使用方法不同
- Debian apt 使用国内镜像
- 类 BASE64Decoder 程序包 sun.misc 找不到符号
- 查看MySQL默认读取的配置文件
- SpringBoot 2.x Security security.basic.enabled=false 失效问题解决
- Linux 常用命令 持续更新中...
- 记一次 Mybatis-Plus 自动填充无效问题解决
- CentOS 7 安装 Golang 环境
- Laravel项目出现could not be opened: failed to open stream: Permission denied