kidys 发表于 2015-8-20 11:34:46

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

  问题一:
  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
  
  # chkconfig
bash: chkconfig: command not found
# rpm -aq |grep chkconfig
chkconfig-1.3.30.1-2
# export PATH=/sbin:$PATH
# 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
         chkconfig --add <name>
         chkconfig --del <name>
         chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
  # echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin
# PATH="$PATH":/sbin
# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gtl/bin:/sbin
  大功告成!!!
  心得:基础命令不明确
页: [1]
查看完整版本: CentOS中LAMP安装过程错误以及解决