美文网首页Shell百例
04-一键部署 LNMP(RPM 包版本)

04-一键部署 LNMP(RPM 包版本)

作者: pengwg | 来源:发表于2019-12-07 14:30 被阅读0次
#!/bin/bash
# 一键部署 LNMP(RPM 包版本)
# 使用 yum 安装部署 LNMP,需要提前配置好 yum 源,否则该脚本会失败
# 阿里云yum源配置地址:wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
# 本脚本使用于 centos7.6 
yum ‐y install httpd
yum ‐y install mariadb mariadb‐devel mariadb‐server
yum ‐y install php  php‐mysql
 
systemctl start httpd mariadb
systemctl enable httpd mariadb

相关文章

网友评论

    本文标题:04-一键部署 LNMP(RPM 包版本)

    本文链接:https://www.haomeiwen.com/subject/fidugctx.html