51Testing软件测试论坛

标题: Linux搭建环境 [打印本页]

作者: changxiaofang    时间: 2011-8-15 19:52
标题: Linux搭建环境
今天练习在Linux下搭建环境,在装mysql服务器的时候总是出现问题,使用以下命令分别安装mysql的client,devel,server
    rpm  -ivh  MySQL-client-community-5.0.37-0.rhel4.i386.rpm
      rpm  -ivh  MySQL-devel-community-5.0.37-0.rhel4.i386.rpm
      rpm  -ivh  MySQL-server-community-5.0.37-0.rhel4.i386.rpm
      结果最后一个命令总是出现问题,如下所示:

******************************************************************************
   警告:MySQL-server-community-5.0.37-0.rhel4.i386.rpm: V3 DSA 簽章:NOKEY, key ID 5072e1f5
    准备中...                ########################################### [100%]
   1:MySQL-server-community ########################################### [100%]
    PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
    To do so, start the server, then issue the following commands:
    /usr/bin/mysqladmin -u root password 'new-password'
    /usr/bin/mysqladmin -u root -h cxf password 'new-password'
    See the manual for more instructions.

   Please report any problems with the /usr/bin/mysqlbug script!

   The latest information about MySQL is available on the web at
   http://www.mysql.com
    Support MySQL by buying support/licenses at http://shop.mysql.com
    Starting MySQL../etc/init.d/mysql: line 151: kill: (25571) - 没有那个进程
   [FAILED]
***************************************************************

    我试过好多次,还重新安装过虚拟机,但是问题还是没能解决,在安装mysql之前已经检测过没有mysql进程,不知道到底怎么回事
还请高手指点一下,谢谢诶
作者: changxiaofang    时间: 2011-8-16 07:39
嘿嘿,知道怎么回事了。。。。
    是因为SELinux没有禁用掉,SELinux(Security-Enhanced Linux) 是美国国家安全局(NSA)对于强制访问控制的实现,SELinux系统比起通常的Linux系统来,安全性能要高的多,它通过对于用户,进程权限的最小化,即使受到攻击,进程或者用户权限被夺去,也不会对整个系统造成重大影响。
    把它禁用掉就可以成功的启动mysql服务器了,可以使用如下步骤将其禁用:

************************************************   
    运行vi /etc/sysconfig/selinux

     把SELINUX=enforcing修改位

   SELINUX=enforcing --> SELINUX=disabled

     然后重启你的Linux系统就行了。

**************************************************
作者: msnshow    时间: 2011-8-16 23:01
解决了就好,mysql其实用编绎后的版本比较好




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2