1.安裝Apachephp
切換到root用戶:su數據庫
dnf install httpd -y啓動httpd服務,以在每次系統啓動服務:bash
systemctl enable httpd使用如下命令來啓動httpd服務:服務器
systemctl start httpd
2.安裝 MariaDBspa
dnf install mariadb mariadb-server -y隨系統自動啓動命令:rest
systemctl enable mariadb啓動數據庫服務器:code
systemctl start mariadb
3.安裝phpserver
dnf install php -y
重啓 Http 服務:mariadb
systemctl restart httpd
4.安裝php模塊class
搜索模塊:
dnf search php安裝模塊:
dnf install 【模塊名】 -y