大猫丸 发表于 2020-11-20 01:59:15

lnmp1.5-full 和 1.7安装失败 新人求助 辛苦看一下日志

我是腾讯云环境 用的putty连接主机22端口
wget -c http://soft.vpser.net/lnmp/lnmp1.3.tar.gz && tar zxf lnmp1.3.tar.gz && cd lnmp1.3 && ./install.sh lnmp
安装lnmp1.3失败 显示
Checking ...
Error: Nginx install failed.
Error: MySQL install failed.
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum.

我又网上搜教程 安装了1.5 也是失败 同样的报错
至此 来到了本论坛
看了目前可用的国内LNMP full安装包下载地址一文    转存了百度云的lnmp 并下载了1.5-full
修改了lnmp.conf 里的节点并保存 再上传到服务器
这样 Download_Mirror='https://soft1.vpser.net'
这样 Download_Mirror='https://soft3.vpser.net'
但是 安装后还是包一样的错

我又在另一个帖子看到了希望 试了一下1.7 命令如下
wget http://soft.vpser.net/lnmp/lnmp1.7-full.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7-full && ./install.sh lnmp
这次比前面好多次要用的时间长 但最终还是失败了 报一样的错
我的linux和英文都不太好 只能看懂几个单词unexpected    no more mirror to try ....555
我尽力了 lnmp一键安装是我最好的选择希望能得到帮助 谢谢 鞠躬
log已上传

licess 发表于 2020-11-20 08:22:50

Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
http://mirrors.tencentyun.com/epel/7/x86_64/repodata/repomd.xml: curl#6 - "Could not resolve host: mirrors.tencentyun.com; Unknown error"
Trying other mirror.


One of the configured repositories failed (EPEL for redhat/centos 7 - x86_64),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

   1. Contact the upstream for the repository and get them to fix the problem.

   2. Reconfigure the baseurl/etc. for the repository, to point to a working
      upstream. This is most often useful if you are using a newer
      distribution release than is supported by the repository (and the
      packages for the previous distribution release still work).

   3. Run the command with the repository temporarily disabled
            yum --disablerepo=epel ...

   4. Disable the repository permanently, so yum won't use it by default. Yum
      will then just ignore the repository until you permanently enable it
      again or use --enablerepo for temporary usage:

            yum-config-manager --disable epel
      or
            subscription-manager repos --disable=epel

   5. Configure the failing repository to be skipped, if it is unavailable.
      Note that yum will try to contact the repo. when it runs most commands,
      so will have to try and fail each time (and thus. yum will be be much
      slower). If it is a very temporary problem though, this is often a nice
      compromise:

            yum-config-manager --save --setopt=epel.skip_if_unavailable=true

failure: repodata/repomd.xml from epel: No more mirrors to try.
http://mirrors.tencentyun.com/epel/7/x86_64/repodata/repomd.xml: curl#6 - "Could not resolve host: mirrors.tencentyun.com; Unknown error"
你折系统源设置有问题,什么环境也装不了
可以论坛搜索:centos更换源
查看更换源的方法,腾讯云、阿里云、163的都有

大猫丸 发表于 2020-11-21 02:08:02

谢谢管理员:loveliness:

大猫丸 发表于 2020-11-21 03:18:19

问题已解决 谢谢大佬指点

留下我的处理方法给后人
我在这个博客里找到了答案
https://www.cnblogs.com/300js/p/11016244.html

cat /etc/redhat-release
uname -a
cat /proc/version
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
执行命令更新源
yum clean all
yum makecache    //将服务器上的软件包信息缓存到本地,以提高搜索安装软件的速度
执行到此处就遇到以下错误
failure: repodata/repomd.xml from epel: No more mirrors to try.

解决以上问题

大猫丸 发表于 2020-11-21 05:29:49

本帖最后由 大猫丸 于 2020-11-21 05:33 编辑

cd /etc/yum.repos.d

vim CentOS-Epel.repo
#以下为内容, 换tencentyun更换成aliyun

name=EPEL for redhat/centos $releasever - $basearch
failovermethod=priority
gpgcheck=1
gpgkey=http://mirrors.tencentyun.com/RPM-GPG-KEY-EPEL-7
enabled=1
baseurl=http://mirrors.tencentyun.com/epel/$releasever/$basearch/

更换后的CentOS-Epel.repo

name=EPEL for redhat/centos $releasever - $basearch
failovermethod=priority
gpgcheck=1
gpgkey=http://mirrors.aliyun.com/RPM-GPG-KEY-EPEL-7
enabled=1
baseurl=http://mirrors.aliyun.com/epel/$releasever/$basearch/

执行以下命令,更新
yum clean all
yum makecache
yum -y update


接下来我就看到屏幕开始跳动
之后
执行了安装命令
wget http://soft.vpser.net/lnmp/lnmp1.7-full.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7-full && ./install.sh lnmp
又是一阵跳动
这次不报错了 很激动
顺享丝滑
完成了一次非常困难的任务
后来安装成功了 访问了我的首页显示

恭喜您,LNMP一键安装包安装成功!

ok 搞定谢谢大佬指点
页: [1]
查看完整版本: lnmp1.5-full 和 1.7安装失败 新人求助 辛苦看一下日志