centos8配置lamp
命令
yum update
#安装apache
yum install -y httpd
systemctl start httpd
systemctl enable httpd
#安装mariadb
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
#设置密码
mysql -uroot -p
set password=password('xxxx');
exit
#安装php
yum -y install php
yum -y install php-mysqlnd
yum -y install php-common php-cli php-gd php-pdo php-develf php-xml php-json php-bcmath php-curl php-json php-posix
service httpd restart