1 出錯打印信息:
[root@aaa /]# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.3-3...
XAMPP: Starting Apache...fail.
XAMPP: Another web server is already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":
aaa proftpd[48908]: warning: unable to determine IP address of 'aaa'
aaa proftpd[48908]: error: no valid servers configured
aaa proftpd[48908]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'php
aaa就是你啓動的linux主機名字
問題的緣由:lampp啓動時,查找主機aaa時,沒法解析aaa的地址致使的。在/etc/hosts 文件中增長主機aaa的解析就能夠了。
/etc/hosts配置文件是系統域名解析使用的,舉個栗子,個人剛打開是這樣的:
[root@aaa /]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
每行表示一個解析項,主要有三部分:
第一部分爲網絡IP地址:127.0.0.1 和::1就是兩個解析項的IP地址;
第二部分爲主機名或域名:個人是新裝的,因此只有localhost這一個主機名,配置的多了,也可能有這樣的「1773.com」這樣的IP;
第三部分爲主機別名:別名和主機名,都是解析IP用的。
出錯提示就是表示aaa沒法解析,這個好辦,在別名中增長該項便可。
[root@aaa /]# vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 aaa
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 aaa
添加後,問題便可解決。linux
CentOS6.5手動安裝glibc-2.14
1. glibc下載
從http://www.gnu.org/software/libc/ 下載源代碼。我下載的版本是2.14,連接地址是http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gz。
2. 安裝
具體步驟以下:
[root@localhost ~]# tar zxvf glibc-2.14.tar.gz -C /home/software/
[root@localhost ~]# cd /home/software/glibc-2.14
[root@localhost glibc-2.14]# mkdir /opt/build
[root@localhost glibc-2.14]# cd build
[root@localhost build]# ../configure --prefix=/opt/glibc-2.14
注意:配置glibc並設置當前glibc-2.14安裝目錄
$ make && make install // 編譯安裝glibc-2.14庫web
2 我在CentOS6.5升級glibc-2.14 make install出現錯誤:Can't open configuration file /opt/glibc-2.14/etc/ld.so.conf: No such file or directory。
ld.so.conf文件缺乏:vim
cp -r /etc/ld.so.c* /opt/glibc-2.14/etc/
ln -sf /opt/glibc-2.14/lib/libc-2.14.so /lib64/libc.so.6bash
xampp 安裝網絡
下載 xmapp for linux 文件
xampp-linux-x64-7.1.10-0-installer.runapp
[root@zz2 var]# /opt/lampp/lampp start
Starting XAMPP for Linux 7.2.7-0...
XAMPP: Starting Apache.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令
/opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令
ok.
XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令
ok.
XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令
fail.
Contents of "/opt/lampp/var/proftpd/start.err":
zz2 proftpd[10624]: warning: unable to determine IP address of 'zz2'
zz2 proftpd[10624]: error: no valid servers configured
zz2 proftpd[10624]: Fatal: error processing configuration file '/opt/lampp/etc/proftpd.conf'
主機名字錯誤
[root@zz2 var]# vim /etc/hosts
-bash: vim: 未找到命令
[root@zz2 var]# vi /etc/hosts
[root@zz2 var]#
[root@zz2 var]# /opt/lampp/lampp startdom
Starting XAMPP for Linux 7.2.7-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令
ok.
[root@zz2 var]#
[root@zz2 var]# setsebool -P allow_execstack on
[root@zz2 var]# /opt/lampp/lampp start
Starting XAMPP for Linux 7.2.7-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.
解決辦法:ui
[root@localhost lampp]# setsebool -P allow_execstack on
[root@localhost lampp]# ./lampp startorm
設置密碼[root@zz2 var]# /opt/lampp/lampp securityXAMPP: Quick security check...XAMPP: MySQL is accessable via network. XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yesXAMPP: Turned off.XAMPP: Stopping MySQL...ok.XAMPP: Starting MySQL.../opt/lampp/share/xampp/xampplib:行22: netstat: 未找到命令ok.XAMPP: The MySQL/phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [yes] yse^HXAMPP: Do you want to set a password? [yes] yesXAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL pma password.XAMPP: Setting phpMyAdmin's pma password to the new one.XAMPP: MySQL has no root passwort set!!! XAMPP: Do you want to set a password? [yes] yesXAMPP: Write the password somewhere down to make sure you won't forget it!!! XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL root password.XAMPP: Change phpMyAdmin's authentication method.XAMPP: The FTP password for user 'daemon' is still set to 'xampp'. XAMPP: Do you want to change the password? [yes] yesXAMPP: Password: XAMPP: Password (again): XAMPP: Reload ProFTPD...ok.XAMPP: Done.