码迷,mamicode.com
首页 > 数据库 > 详细

一键yum安装mysql

时间:2018-03-20 20:45:29      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:云计算自动化

#!/bin/bash
yum -y install wget
wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum -y install mysql57-community-release-el7-11.noarch.rpm
yum makecache
yum -y install mysql-community-server.x86_64

systemctl restart mysqld
systemctl enable mysqld
sed -ri ‘/^SELINUX=/cSELINUX=disabled‘ /etc/selinux/config
systemctl stop firewalld
grep password /var/log/mysqld.log

一键yum安装mysql

标签:云计算自动化

原文地址:http://blog.51cto.com/13578799/2089135

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!