zoukankan      html  css  js  c++  java
  • lepus安装报错处理


    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'

    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
    添加后,问题即可解决。


    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库


    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文件缺少:

    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.6

    xampp 安装

    下载 xmapp for linux 文件
    xampp-linux-x64-7.1.10-0-installer.run

    [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 start

    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.
    解决办法:

    [root@localhost lampp]# setsebool -P allow_execstack on
    [root@localhost lampp]# ./lampp start

    设置密码
    [root@zz2 var]# /opt/lampp/lampp security
    XAMPP: Quick security check...
    XAMPP: MySQL is accessable via network.
    XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes] yes
    XAMPP: 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^H
    XAMPP: Do you want to set a password? [yes] yes
    XAMPP: 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] yes
    XAMPP: 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] yes
    XAMPP: Password:
    XAMPP: Password (again):
    XAMPP: Reload ProFTPD...ok.
    XAMPP: Done.

  • 相关阅读:
    linux zip命令 tar命令 【压缩、解压缩】参数列表:
    理解 uptime 的:“平均负载”? 如何模拟测试
    mark_Linux_wc
    我应该怎么学习SAP?
    SAP 销售订单交货对成本中心记账
    从华为“鸿蒙”备胎看IT项目建设
    什么样的系统算是坑
    写在Logg SAP项目上线之际
    SAP系统邮件功能配置
    警惕SAP项目被“中间商赚差价”
  • 原文地址:https://www.cnblogs.com/zhanzhan/p/9360984.html
Copyright © 2011-2022 走看看