VPS侦探论坛

标题: 求救! lnmp1.6 mysql PHP安装失败 [打印本页]

作者: nicole0169    时间: 2019-11-20 16:01
标题: 求救! lnmp1.6 mysql PHP安装失败
本帖最后由 nicole0169 于 2019-11-20 16:04 编辑

Checking ...
Nginx: OK
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.





作者: nicole0169    时间: 2019-11-20 16:02
Linode VPS

系统环境: CentOS release 6.7 (Final)
作者: nicole0169    时间: 2019-11-20 16:03
选择安装的是MySQL 5.6 / PHP 7.1
作者: licess    时间: 2019-11-20 20:25
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.or ... l-6&arch=x86_64 error was
14: problem making ssl connection
* base: mirror.keystealth.org
* epel: sjc.edge.kernel.org
* extras: sjc.edge.kernel.org
* updates: mirror.sjc02.svwh.net
Package(s) php* available, but not installed.
No Packages marked for removal
Loaded plugins: fastestmirror
Cleaning repos: base docker-ce-stable epel extras updates
Cleaning up Everything
Cleaning up list of fastest mirrors
[+] Yum installing dependent packages...
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

你系统上的yum不正常导致的
linode系统上默认的源地址都是mirrors.linode.com你,你可能自己修改过
linode可以直接使用stackscripts里搜索 licess ,使用stackscripts快速部署
作者: nicole0169    时间: 2019-11-20 21:43
谢谢军哥!
作者: nicole0169    时间: 2019-11-21 10:41
感谢军哥,我已经安装成功了。

解决的方法如下,贴出来也供大家参考:


yum安装时出现:Cannot retrieve metalink for repository: epel. Please verify its path and try again

在CentOS 6.3 x86_64下安装php-mcrypt的时候出现了问题:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,需要安装epel源。

解决方法: 一句话:把/etc/yum.repos.d/epel.repo,文件第3行注释去掉,把第四行注释掉。具体如下:

打开/etc/yum.repos.d/epel.repo,将

    [epel]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    #baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
    mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

修改为

    [epel]
    name=Extra Packages for Enterprise Linux 6 - $basearch
    baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
    #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch





欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4