今天阿里云服务器上只是升级了下内存,结果lampp却启动不了,升级之前也没有安全的停止服务:
重启lampp服务报如下错误:
[root@hadoop-slave2 lib64]# /opt/lampp/xampp startmysql
rh9
egrep: error while loading shared libraries: libc.so.6: cannot open shared object f ile: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/bash: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
id: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/lampp/share/xampp/xampplib: line 11: test: -ne: unary operator expected
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
XAMPP: hostname: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
egrep: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
netstat: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/opt/lampp/bin/gettext: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory
/bin/sh: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
网上找了下解决该问题的办法:
vim /opt/lampp/xampp
替换以下内容为;
if egrep "9 " /etc/redhat-release > /dev/null
if egrep "Red" /etc/redhat-release > /dev/null
重启服务:
/opt/lampp/xampp start
网友评论