VPS侦探论坛

 找回密码
 注册
查看: 3610|回复: 7

lamp在centOS8安装失败

[复制链接]
发表于 2020-8-11 17:05:13 | 显示全部楼层 |阅读模式

Hi,

我的系统为CentOS Linux release 8.0.1905 (Core),尝试安装LNMP1.7_full,都失败了:
Add mysql service at system startup...
include/end.sh: line 96: /etc/init.d/mysql: No such file or directory
Error: Apache 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.

请帮忙看看怎么解决!
谢谢


本帖子中包含更多资源

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

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


CentOS-8.0 - AppStream                          3.5 kB/s | 7.6 kB     00:02   
CentOS-8.0 - Base                               6.0 kB/s | 7.6 kB     00:01   
CentOS-8.0 - Extras                              81  B/s |  38  B     00:00   
Extra Packages for Enterprise Linux Modular 8.0  47 kB/s |  63 kB     00:01   
Extra Packages for Enterprise Linux 8.0 - x86_6  63 kB/s |  63 kB     00:00   
Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'epel-modular', ignoring this repo.
Failed to synchronize cache for repo 'epel', ignoring this repo.
Last metadata expiration check: 0:00:14 ago on Tue 11 Aug 2020 04:28:12 PM CST.
No match for argument: cmake
Error: Unable to find a match
。。。。。
CentOS-8.0 - AppStream                           28 kB/s | 7.6 kB     00:00   
CentOS-8.0 - Base                                29 kB/s | 7.6 kB     00:00   
CentOS-8.0 - Extras                              75  B/s |  38  B     00:00   
Extra Packages for Enterprise Linux Modular 8.0  58 kB/s |  63 kB     00:01   
Extra Packages for Enterprise Linux 8.0 - x86_6  61 kB/s |  63 kB     00:01   
Failed to synchronize cache for repo 'AppStream', ignoring this repo.
Failed to synchronize cache for repo 'BaseOS', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'epel-modular', ignoring this repo.
Failed to synchronize cache for repo 'epel', ignoring this repo.
Last metadata expiration check: 0:02:01 ago on Tue 11 Aug 2020 04:28:12 PM CST.
No match for argument: libxml2-devel
Error: Unable to find a match

你系统源设置有问题吧,最基本的cmake包都找不到
还有其他很多依赖包也都是同样的报错
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-8-12 08:15:25 | 显示全部楼层

谢谢你的解答。我想再问一下:是不是安装好这些依赖包后,重新运行“install.sh lamp”就可以了?需不需要先卸载掉上次没有安装成功的?还有怎么卸载掉上次安装失败的?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2020-8-12 10:49:07 | 显示全部楼层



nwpu_confidant 发表于 2020-8-12 08:15
谢谢你的解答。我想再问一下:是不是安装好这些依赖包后,重新运行“install.sh lamp”就可以了?需不需要 ...

直接lnmp源码包目录下 ./install.sh lamp 就行,不需要卸载会自动覆盖
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2020-8-12 14:46:26 | 显示全部楼层

非常谢谢,安装成功了,绝大部分都可以成功运行了,但是我发现一个问题:
我需要调用ldap_connect连接我们公司的ldap server,我已经打开了php.ini中的extension=ldap并重启了apache,但是依然连不上。请问你知道是什么原因造成的吗?

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2020-8-12 16:34:46 | 显示全部楼层

licess 发表于 2020-8-12 10:49
直接lnmp源码包目录下 ./install.sh lamp 就行,不需要卸载会自动覆盖

我运行命令“php -m”,发现没有ldap模块,应该是没有安装ldap模块,请问知道怎么在lnmp模式下安装这个模块?还有我想找到soap.so,但是没有找到lnmp给安装到哪个目录了,你知道吗?
发表于 2020-8-12 19:31:59 | 显示全部楼层

nwpu_confidant 发表于 2020-8-12 14:46
非常谢谢,安装成功了,绝大部分都可以成功运行了,但是我发现一个问题:
我需要调用ldap_connect连接我们 ...

php扩展有php扩展的安装方法不是改一下配置文件就行了,常见问题中有教程链接
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2020-8-13 09:39:01 | 显示全部楼层

licess 发表于 2020-8-12 19:31
php扩展有php扩展的安装方法不是改一下配置文件就行了,常见问题中有教程链接 ...

谢谢,解决了。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-21 13:30 , Processed in 0.029086 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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