### 1. 查看系统是否支持中文 locale -a ### 2. 如不支持需安装中文包 apt-get install language-pack-zh-hans -y ### 3. 添加中文支持 locale-gen zh_CN.UTF-8 locale ### 4. 修改配置 cat >>/etc/bash.bashrc <<‘EOF‘ export LC_ALL=‘zh_CN.UTF-8‘ export LANG=Zh_CN.UTF-8 EOF . /etc/bash.bashrc
2022-09-16 22:35:36
### 1. 查看系统是否支持中文 locale -a ### 2. 如不支持需安装中文包 apt-get install language-pack-zh-hans -y ### 3. 添加中文支持 locale-gen zh_CN.UTF-8 locale ### 4. 修改配置 cat >>/etc/bash.bashrc <<‘EOF‘ export LC_ALL=‘zh_CN.UTF-8‘ export LANG=Zh_CN.UTF-8 EOF . /etc/bash.bashrc