您现在的位置是: 首页 > 运维 Linux 安装 Tengine
Linux 安装 Tengine
2020-05-19 【运维】 1848人已围观 3746次浏览
简介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字符串处理
相关文章
- Debian/Ubuntu无netstat命令解决方案
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- LNMP 手动更新 SSL 证书
- Windows CMD 常用命令
- 解决443端口被VMWare Workstation占用
- 使用 OpenSSL 将 pfx 格式证书转为 pem 格式
- CentOS 安装Python3
- Linux 常用命令 持续更新中...
- 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 自动填充无效问题解决
- nuxt 项目完整部署方案
- SpringBoot 2.x 文件上传出现 The field file exceeds its maximum permitted size of 1048576 bytes
站长推荐
猜你喜欢
- Windows CMD 常用命令
- 获取阿里云CDN真实IP
- SpringBoot 启动提示 Requested bean is currently in creation: Is there an unresolvable circular reference?
- nginx 出现 the "ssl" directive is deprecated, use the "listen ... ssl" directive instead in 错误解决方案
- 解决Lost connection to MySQL server at 'reading initial communication packet' 的方法
- win10 cmd下运行python命令弹出windows应用商店问题
- win10 cmder Debian 安装配置 oh-my-zsh
- SqlServer 刷新所有视图
- LNMP定时备份任务教程(支持排除指定文件夹)
- Linux 常用命令 持续更新中...