此为centos7纯净系统
yum install httpd mariadb-server
php扩展很多,使用 php-* 通配, --exclude 表示除外(度娘根本查不到资料)
yum install php-* --exclude php-mysql,php-devel
systemctl enable httpd
systemctl enable mariadb
systemctl start httpd
systemctl start mariadb
mysql_secure_installation
回车 输入两次密码 一路回车
防火墙:
firewall-cmd --permanent --add-service=http
firewall-cmd --permanent --add-service=https
firewall-cmd --reload
all done.