Fedora 25如何安裝LAMP

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
相關文章
相關標籤/搜索