LAMP环境搭建(CentOS7.6)

准备工作

以下安装均为CentOS7.6环境中

  1. 安装httpd(apache)
  2. 安装php74版本
  3. 安装高版本mariadb(10.3.36)

安装httpd

直接安装

yum -y install httpd

开机自启动

systemctl enable httpd --now

安装php74

下载repo包

yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

下载php7.4的各种模块

yum -y install php74-php php74-php-gd php74-php-pdo php74-php-mbstring php74-php-cli php74-php-fpm php74-php-mysqlnd  php74-php-pecl-zip php74-php-xml

安装mariadb

配置mariadb的repo包

vim /etc/yum.repos.d/Mariadb.repo
#复制粘贴一下内容
[mariadb]
name = MariaDB
baseurl = https://mirrors.aliyun.com/mariadb/yum/10.3/centos7-amd64
gpgkey=https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

下载安装新版本的Mariadb

yum install MariaDB-server MariaDB-client -y

开机自启并安全设置向导

systemctl enable mariadb --now
mysql_secure_installation
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值