Fedora 25如何安装LAMP

本文详细介绍如何在Linux系统上安装配置LAMP(Linux, Apache, MariaDB, PHP)环境,包括安装Apache Web服务器、MariaDB数据库管理系统及PHP解析器等关键步骤。

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

 

 

 

 

 

 

转载于:https://my.oschina.net/u/3264690/blog/846310

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值