查看: 37|回复: 0

deepin(linux)系统安装tengine 依赖 openssl-devel

[复制链接]

1

主题

0

回帖

0

积分

积极分子

金币
0
阅读权限
220
精华
0
威望
0
贡献
0
在线时间
0 小时
注册时间
2010-2-5
发表于 2020-6-30 17:10:00 | 显示全部楼层 |阅读模式

 

deepin 系统安装 tengine(阿里版nginx)
1.官网下载
http://tengine.taobao.org/download.html
如:http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
cd 到自己想把文件放置到的文件夹目录里面

sudo wget http://tengine.taobao.org/download/tengine‐2.3.2.tar.gz

 

解压缩:

sudo tar ‐xvzf tengine‐2.3.2.tar.gz

 

2.检查配置、编译和安装

cd 到解压后的目录里面执行命令

 

./configure

经过检查,如果最后提示需 OpenSSL library 如下
/configure: error: SSL modules require the OpenSSL library.
You can either do not enable the modules, or install the OpenSSL library
into the system, or build the OpenSSL library statically from the source
with nginx by using --with-openssl=<path> option.

 可以通过:sudo apt‐get install libssl‐dev
 安装成功后,再次
 sudo ./configure

执行编译:

make

执行安装:

make install

为启动命令添加软引用(命令)

1 为启动命令添加软引用
2 ln ‐s /usr/local/nginx/sbin/nginx /usr/local/bin/

安装成功。

Nginx的运行命令

nginx 启动
nginx -s reload 重新启动
nginx -s stop 停止
ps -ef | grep nginx :查看nginx进程是否运行
netstat -unltp | grep nginx :查看nginx端口监听情况
备注:-s signal : send signal to a master process: stop, quit, reopen, reload

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

相关侵权、举报、投诉及建议等,请发 E-mail:qiongdian@foxmail.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部