一键部署 LNMP(RPM 包版本)

一键部署 LNMP(RPM 包版本)

#!/bin/bash
#使用 yum 安装部署 LNMP,需要提前配置好 yum 源,否则该脚本会失败
#本脚本使用于 centos7.2 或 RHEL7.2
yum -y install httpd
yum -y install mariadb mariadb-devel mariadb-server
yum -y install php php-mysql
systemctl start httpd
systemctl start mariadb
systemctl enable httpd
systemctl enable mariadb
发布了138 篇原创文章 · 获赞 149 · 访问量 8429

猜你喜欢

转载自blog.csdn.net/weixin_44799645/article/details/105111518