1、当服务器上编写或显示中文文件名称出现乱码时。需要配置 /etc/profile
永久修改:
echo "export LANG=“zh_CN.UTF-8” >> /etc/proflile
echo "export LC_CTYPE=“zh_CN.UTF-8” >> /etc/proflile
source /etc/profile
2、字符集相关
locale 查看
1、当服务器上编写或显示中文文件名称出现乱码时。需要配置 /etc/profile
永久修改:
echo "export LANG=“zh_CN.UTF-8” >> /etc/proflile
echo "export LC_CTYPE=“zh_CN.UTF-8” >> /etc/proflile
source /etc/profile
2、字符集相关
locale 查看