Shell百例

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

2019-12-07  本文已影响0人  pengwg
#!/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
上一篇 下一篇

猜你喜欢

热点阅读