安装lamp的问题
============================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:
Redirecting to /bin/systemctl reloadiptables.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 这是日志文件 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试试 licess 发表于 2019-12-6 13:20
你系统上的cpp可能有问题,执行
rpm -qa | grep cpp
ls -l /lib/cpp /usr/bin/cpp
# rpm -qa | grep cpp
cpp-4.8.5-39.el7.x86_64
# 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 Aug7 00:52 /usr/bin/cpp
# 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.
返回结果是这样的 还是失败啊 lucixe 发表于 2019-12-7 14:06
还是失败啊
你这系统还是各种问题,直接换系统吧
页:
[1]