今天阿里云服務器上只是升級了下內存,結果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