1. 更新系统内核到最新. [root@linuxfei ~]#yum -y update 系统更新后,如果yum安装时提示错误信息,请执行以下命令修复. [root@linuxfei ~]#rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY* 2. 安装Apahce, PHP, Mysql, 以及php连接mysql库组件 y[root@linuxfei ~]#um -y install httpd php mysql mysql-server php-mysql //安装mysql扩展 [root@linuxfei ~]#yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql //安装php的扩展 [root@linuxfei ~]# yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc //安装apache扩展 [root@linuxfei ~]#yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql 一次性粘贴安装: [root@linuxfei ~]# yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql (责任编辑:admin) |