全球主机交流论坛

标题: 宝塔的Nginx无法安装,怎么修复? [打印本页]

作者: jasonyu    时间: 2019-6-24 20:43
标题: 宝塔的Nginx无法安装,怎么修复?
install_soft.sh: line 8: /www/server/panel/install/public.sh: No such file or directory
/install/1/nginx.sh: Scheme missing.
--2019-06-24 20:36:49--  http://download.bt.cn/install/public.sh
Resolving download.bt.cn (download.bt.cn)... failed: Name or service not known.
wget: unable to resolve host address ‘download.bt.cn’
--2019-06-24 20:36:52--  http://download.bt.cn/install/public.sh
Resolving download.bt.cn (download.bt.cn)... failed: Name or service not known.
wget: unable to resolve host address ‘download.bt.cn’


宝塔面板安装的Nginx突然出错,网站都打不开,我删掉后重新安装,但是一直都是上面这样的错误,宝塔面板已经更新到最新的6.9.5。这种情况怎么安装Nginx?
作者: 路易的路    时间: 2019-6-24 20:45
服务器连接不上bt.检查DNS
作者: jasonyu    时间: 2019-6-24 21:01
路易的路 发表于 2019-6-24 20:45
服务器连接不上bt.检查DNS

多谢,之前一直正常使用没有设置过,修改了DNS后已经可以下载了
作者: 周润发    时间: 2019-6-24 21:04
宝塔很多装不上基本上都是网络问题
作者: jasonyu    时间: 2019-6-24 22:16
弄了半天,原来是其中一个网站的SSL证书丢失了,导致Nginx无法启动,怎么这么容易奔溃。。把SSL证书加回去就恢复正常了。
作者: iqi    时间: 2019-6-24 22:26

E: Unable to locate package curl
install.sh: line 70: curl: command not found
install.sh: line 71: [: =: unary operator expected
install.sh: line 70: curl: command not found
install.sh: line 71: [: =: unary operator expected
install.sh: line 70: curl: command not found
install.sh: line 71: [: =: unary operator expected
install.sh: line 70: curl: command not found
install.sh: line 71: [: =: unary operator expected


出现这个问题是啥原因?  装了几次了  
Nginx能启动  PHP就没法安装, 先安装php,Nginx就没法启动
作者: jasonyu    时间: 2019-6-24 23:04
iqi 发表于 2019-6-24 22:26
E: Unable to locate package curl
install.sh: line 70: curl: command not found
install.sh: line 71:  ...

不懂,我是宝塔小白。
作者: mclover    时间: 2019-6-25 02:16
iqi 发表于 2019-6-24 22:26
E: Unable to locate package curl
install.sh: line 70: curl: command not found
install.sh: line 71:  ...

缺少curl,安装个curl就好了 centos命令  yum install curl
作者: iqi    时间: 2019-6-25 13:14
mclover 发表于 2019-6-25 02:16
缺少curl,安装个curl就好了 centos命令  yum install curl

多谢大佬  
作者: mclover    时间: 2019-6-25 14:37
iqi 发表于 2019-6-25 13:14
多谢大佬

为人民服务,有空点点我的签名站就好
作者: songkqx1c    时间: 2019-6-25 14:39
SSL证书丢失会导致Nginx无法启动?
作者: reidme    时间: 2019-6-25 19:01
dns有问题?
作者: jasonyu    时间: 2019-6-25 19:05
songkqx1c 发表于 2019-6-25 14:39
SSL证书丢失会导致Nginx无法启动?

是的,Nginx自动停止运行了,然后手动去启动就提示错误,从错误里发现是找不到其中一个网站的证书,把证书重新设置后就能正常启动Nginx了。




欢迎光临 全球主机交流论坛 (https://loc.888543.xyz/) Powered by Discuz! X3.4