VPS侦探论坛

 找回密码
 注册
查看: 3305|回复: 5

求救! lnmp1.6 mysql PHP安装失败

[复制链接]
发表于 2019-11-20 16:01:32 | 显示全部楼层 |阅读模式

本帖最后由 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.




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-11-20 16:02:37 | 显示全部楼层


Linode VPS

系统环境: CentOS release 6.7 (Final)
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-20 16:03:15 | 显示全部楼层

选择安装的是MySQL 5.6 / PHP 7.1
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2019-11-20 20:25:40 | 显示全部楼层



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快速部署
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-11-21 10:41:11 | 显示全部楼层

感谢军哥,我已经安装成功了。

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


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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-8 09:15 , Processed in 0.028107 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表