centos 5、6 快速部署生产环境(php+apache+mysql)

升级全部组件:

yum -y update   (如果是最小化安装,建议进行,如果安装桌面环境,请不要执行)

一键安装环境组件:

yum -y install httpd vsftpd 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 gcc-c++ patch


设置自动启动:

chkconfig httpd on

chkconfig mysqld on

service httpd start

service mysqld start


修改MYSQL的超级密码:

mysqladmin -u root password 'pbqn.com.mysql'


下面是无说明,直接一键复制进去:


yum -y update
yum -y install httpd vsftpd 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 gcc-c++ patch
chkconfig httpd on
chkconfig mysqld on
service httpd restart
service mysqld restart
mysqladmin -u root password 'pbqn.com.mysql'







| 0个评论