Commit 0924484b authored by ibuler's avatar ibuler

Update install.py

parent 2f54c369
...@@ -110,6 +110,7 @@ class PreSetup(object): ...@@ -110,6 +110,7 @@ class PreSetup(object):
@staticmethod @staticmethod
def _set_env(): def _set_env():
color_print('开始关闭防火墙和selinux', 'green') color_print('开始关闭防火墙和selinux', 'green')
os.system("export LANG='en_US.UTF-8' && sed -i 's/LANG=.*/LANG=en_US.UTF-8/g' /etc/sysconfig/i18n")
bash('service iptables stop && chkconfig iptables off && setenforce 0') bash('service iptables stop && chkconfig iptables off && setenforce 0')
def _test_db_conn(self): def _test_db_conn(self):
......
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