安装Apache:
1 | yum -y install httpd |
安装Mysql:
1 2 | yum -y install mysql-server /etc/init .d /mysqld start |
设置Mysql密码
1 | /usr/bin/mysqladmin -u root password 'newpassowrd' |
安装PHP:
1 2 | yum -y install php php-mysql /etc/init .d /httpd start |
设置开机启动
1 2 | chkconfig httpd on chkconfig mysqld on |