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
相关文章
相关标签/搜索