3

docker 官方Centos镜像中文乱码问题(未完待续)

 3 years ago
source link: https://www.wencst.com/archives/1357
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

docker 官方Centos镜像中文乱码问题(未完待续)

作者: wencst 分类: docker,JAVA 发布时间: 2019-01-10 17:00 阅读: 3,373 次

locale

yum groupinstall chinese-support

临时修改LANG=”zh_CN.UTF-8″

永久修改cat /etc/sysconfig/i18n

LANG=”zh_CN.UTF-8″

以上参考:https://jingyan.baidu.com/article/ab69b270de8b4f2ca7189f1d.html

修改 /etc/sysconfig/i18n 里的东西
但sysconfig下没有i18n。

首先要是否有安装支持中文utf-8的插件。

查看是否有中文语言包可以在终端输入 locale命令,如有zh cn 表示已经安装了中文语言

如果没有

可以通过网上下载安装中文语言包yum groupinstall chinese-support

然后vim /etc/profile

最后面加入

export LC_ALL=”zh_CN.UTF-8″

服务器生效source /etc/profile

以上内容参考:

yum -y install kde-l10n-Chinese glibc-common
解决yum No more mirrors to try
yum clean all
yum makecache
解决办法参考:https://blog.csdn.net/llwszjj/article/details/44976037

执行后解决问题

yum -y install kde-l10n-Chinese glibc-common

LANG="zh_CN.UTF-8"
echo "export LC_ALL=zh_CN.UTF-8"  >>  /etc/profile
参考:https://www.cnblogs.com/tugeler/p/7762143.html

如果文章对您有用,扫一下支付宝的红包,不胜感激!

欢迎加入QQ群进行技术交流:656897351(各种技术、招聘、兼职、培训欢迎加入)

Leave a Reply Cancel reply

You must be logged in to post a comment.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK