您现在的位置是: 首页 > 运维 Linux 安装 Tengine
Linux 安装 Tengine
2020-05-19 【运维】 2408人已围观 4950次浏览
简介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字符串处理
相关文章
- Oracle ORA-12541:TNS:no listener错误解决方法
- 自建Ngrok服务端
- 【Docker】unauthorized: incorrect username or password
- CentOS 7 安装 Golang 环境
- Debian apt 使用国内镜像
- 查看MySQL默认读取的配置文件
- Zookeeper 找不到或无法加载主类 org.apache.zookeeper.server.quorum.QuorumPeerMain
- sentinel directive while not in sentinel mode 问题解决
- CentOS 安装JDK
- 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 项目完整部署方案
站长推荐
猜你喜欢
- win10 cmder Debian 安装配置 oh-my-zsh
- mysql 索引过长1071-max key length is 767 byte
- SpringBoot 集成 Elasticsearch 7.8.1 出现错误 Factory method 'elasticsearchRestHighLevelClient' threw exception; nested exception is java.lang.NoSuchFieldError: IGNORE_DEPRECATIONS
- Debian apt 使用国内镜像
- 【代码片段】MySQL新建表添加基础字段
- RocketMQ 出现 sendDefaultImpl call timeout 问题
- python scrapy 出现 DEBUG: Filtered offsite request to 错误
- Windows CMD 常用命令
- Vue 路由跳转后不在顶部
- Docker 批量操作命令