Linux 字符集

此方法自 CentOS 6.9止:向下兼容

1 [root@1611mode ~]# cat /etc/redhat-release ;uname -r
2 CentOS Linux release 7.3.1611 (Core) 
3 3.10.0-514.el7.x86_64
4 
5 
6 [root@moban ~]# cat /etc/sysconfig/i18n 
7 LANG="en_US.UTF-8"
8 SYSFONT="latarcyrheb-sun16"
示例:CentOS 6.9

此方法自CentOS 7.0启:向上兼容

1 [root@1611mode ~]# cat /etc/redhat-release ; uname -r
2 CentOS Linux release 7.3.1611 (Core) 
3 3.10.0-514.el7.x86_64
4 [root@1611mode ~]# cat /etc/locale.conf
5 LANG="zh_CN.UTF-8"
示例:CentOS 1611

 

这里应该不需要太多解释,6到7有很大的变革,习惯了就好

posted @ 2018-04-19 16:20  小白一生  阅读(621)  评论(0)    收藏  举报