您的位置:首页 > Web前端

Fedora 25如何安装LAMP

2017-02-25 00:00 253 查看
摘要: LAMP 是开源系统上 Web 服务器的梦幻组合。 LAMP 是 Linux、 Apache HTTP 服务、MySQL/MariaDB 数据库和 PHP、 Perl 或 Python 的简称。
下面教你如何在fedora25上安装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


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  PHP