rpm -Uvh https://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh https://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum -y update
yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel
yum --enablerepo=remi -y install mysql mysql-server mysql-devel httpd httpd-devel
chkconfig httpd on
chkconfig mysqld on
service mysqld start
mysql_secure_installation
mysql -u root -p
# 建立應用資料庫...

引入 EPEL/Remi 倉庫即可用 yum 一鍵部署生產級 LAMP,配合 mysql_secure_installation 強化資料庫安全。