VPS侦探论坛

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

安装lamp的问题

[复制链接]
发表于 2019-12-6 10:53:18 | 显示全部楼层 |阅读模式



============================Install PHPMyAdmin=================================
============================phpMyAdmin install completed=======================
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* elrepo-kernel: repos.lax-noc.com
* epel: d2lzkl7pfhq30w.cloudfront.net
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Package iptables-services-1.4.21-33.el7.x86_64 already installed and latest version
Nothing to do
iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
Redirecting to /bin/systemctl reload  iptables.service
Add iptables service at system startup...
error reading information on service iptables: No such file or directory
Note: Forwarding request to 'systemctl enable iptables.service'.
Add Startup and Starting LAMP...
Add httpd service at system startup...
start apache... /etc/init.d/httpd: line 87: /usr/local/apache/bin/httpd: No such file or directory
failed
Add mysql service at system startup...
/etc/init.d/mysql: line 244: my_print_defaults: command not found
Starting MySQL ERROR! Couldn't find MySQL server (/usr/local/mysql/bin/mysqld_safe)






补充内容 (2019-12-6 11:05):
vps是搬瓦工,系统Centos 7 x86_64 bbr  
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-12-6 11:08:29 | 显示全部楼层


这是日志文件

本帖子中包含更多资源

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

x
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2019-12-6 13:20:42 | 显示全部楼层



checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

你系统上的cpp可能有问题,执行
rpm -qa | grep cpp
ls -l /lib/cpp /usr/bin/cpp
cpp --version
发一下返回结果
可以尝试 yum reinstall glibc-headers gcc-c++ 重新安装一下,再重新安装lnmp试试
美国VPS推荐: 遨游主机LinodeLOCVPSKVMLAVPS2EZ搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2019-12-7 13:55:14 | 显示全部楼层



licess 发表于 2019-12-6 13:20
你系统上的cpp可能有问题,执行
rpm -qa | grep cpp
ls -l /lib/cpp /usr/bin/cpp


[root@www ~]# rpm -qa | grep cpp
cpp-4.8.5-39.el7.x86_64
[root@www ~]# ls -l /lib/cpp /usr/bin/cpp
lrwxrwxrwx 1 root root     10 Sep 24 20:19 /lib/cpp -> ../bin/cpp
-rwxr-xr-x 1 root root 772720 Aug  7 00:52 /usr/bin/cpp
[root@www ~]# cpp --version
cpp (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


返回结果是这样的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2019-12-7 14:06:55 | 显示全部楼层

还是失败啊

本帖子中包含更多资源

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

x

美国VPS、VPN、域名代购:http://shop63846532.taobao.com/

发表于 2019-12-7 16:44:45 | 显示全部楼层


你这系统还是各种问题,直接换系统吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2020-4-7 05:12 , Processed in 0.053863 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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