Fedora 25如何安装LAMP

1.安装Apache

切换到root用户:su

dnf install httpd -y

启动httpd服务,以在每次系统启动服务:

systemctl enable httpd

使用以下命令来启动httpd服务:

systemctl start httpd

2.安装 MariaDB

dnf install mariadb mariadb-server -y

随系统自动启动命令:

systemctl enable mariadb

启动数据库服务器:

systemctl start mariadb

3.安装php

dnf install php -y

重启 Http 服务:

systemctl restart httpd

4.安装php模块

搜索模块:

dnf search php

安装模块:

dnf install 【模块名】 -y

评论

暂无评论