Commit c4fc2523 authored by ibuler's avatar ibuler

[Update] 添加一些FAQ

parent 74bb7480
......@@ -34,3 +34,27 @@ FAQ
$ rm keys/.access_key # coco
$ rm /opt/guacamole/key/* # guacamole, 如果你是按文档安装的,key应该在这里
4. Ansible报错汇总
::
(1). 资产是centos5.x Python版本 2.4,
$ yum -y install python26
$ mv /usr/bin/python /usr/bin/python.bak
$ ln -s /usr/bin/python2.6 /usr/bin/python
# 修改 /bin/yum 使用原来的python
$ sed -i 's@/usr/bin/python$@/usr/bin/python2.4@g' /bin/yum
5. input/output error, 通常jumpserver所在服务器字符集问题(一下修改方法仅限 centos7)
::
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n
......@@ -15,6 +15,11 @@
$ systemctl stop iptables.service
$ systemctl stop firewalld.service
# 修改字符集,否则可能报 input/output error的问题,因为日志里打印了中文
$ localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8
$ export LC_ALL=zh_CN.UTF-8
$ echo 'LANG=zh_CN.UTF-8' > /etc/sysconfig/i18n
# CentOS6
$ setenforce 0
$ service iptables stop
......
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