您的位置:首页 > 运维架构 > Linux

CentOS中LAMP安装过程错误以及解决

2011-11-06 11:37 627 查看
问题一:

yum 安装php的时候,用命令yum -y install php*遇到提示php53-common conflicts with php-common这个错误信息,这时候可以看到
Error: php53-common conflicts with php-common
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
这样的错误提示。
这样在重新安装的时候 用命令 yum -y install php*
--skip-broken 就可以解决问题了

心得:多看命令行的提示可以解决问题

问题二:

bash: chkconfig: command not found

[root@xuniji ~]# chkconfig
bash: chkconfig: command not found
[root@xuniji ~]# rpm -aq |grep chkconfig
chkconfig-1.3.30.1-2
[root@xuniji ~]# export PATH=/sbin:$PATH
[root@xuniji ~]# chkconfig
chkconfig version 1.3.30.1 - Copyright (C) 1997-2000 Red Hat, Inc.
This may be freely redistributed under the terms of the GNU Public License.

usage: chkconfig --list [name]
chkconfig --add <name>
chkconfig --del <name>
chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>

[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin
[root@xuniji ~]# PATH="$PATH":/sbin
[root@xuniji ~]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin:/sbin

大功告成!!!

心得:基础命令不明确
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: