Commit 04821a00 authored by yumaojun's avatar yumaojun

fix (install.py):  compatable centos7

1. use systemctl  stop firewalld
2. add  dependence:  readline-devel and lrzsz
3. use mariadb as mysql server
parent ad3178fe
...@@ -128,6 +128,11 @@ class PreSetup(object): ...@@ -128,6 +128,11 @@ class PreSetup(object):
color_print('开始安装设置mysql (请手动设置mysql安全)', 'green') color_print('开始安装设置mysql (请手动设置mysql安全)', 'green')
color_print('默认用户名: %s 默认密码: %s' % (self.db_user, self.db_pass), 'green') color_print('默认用户名: %s 默认密码: %s' % (self.db_user, self.db_pass), 'green')
if self._is_redhat: if self._is_redhat:
if self._is_centos7:
bash('yum -y install mariadb-server mariadb-devel')
bash('systemctl enable mariadb.service')
bash('systemctl start mariadb.service')
else:
bash('yum -y install mysql-server') bash('yum -y install mysql-server')
bash('service mysqld start') bash('service mysqld start')
bash('chkconfig mysqld on') bash('chkconfig mysqld on')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment