三三世界-百宝箱

文章 分类 标签
130 9 247

公告

暂无站点公告

centos7修改系统语言为简体中文(安装中文语言包)

三三 2022-07-19 2414 0条评论 Linux使用 CentOS7中文语言包

首页 / 正文

自己装系统时一般都可以自定义选择系统语言。可是购买的服务器,一般机房给安装的镜像都是默认系统语言为英文,对于初学者可能还会有搞不懂的计算机词汇。这里简单说一下centos7怎么修改系统语言为中文。

修改centos7系统语言

1、查看系当前语言包

locale

查看系统拥有语言包

locale -a

(zh_CN.UTF-8是简体中文,如果没有zh_CN.UTF-8,就安装语言包,如果存在可以直接设置)

2、安装简体中文语言包

yum install kde-l10n-Chinese

3、设置为中文

如果临时修改,重启服务器之后就会还原之前的设置

LANG="zh_CN.UTF-8"  #临时修改为中文
LANG="en_US.UTF-8"  #临时修改为英文

4、永久修改就要把配置写入文件里面

方法(一)

vi /etc/locale.conf

##加下面内容到第一行,设置中文

LANG=zh_CN.UTF8

方法(二)

localectl set-locale LANG=zh_CN.UTF8

评论(0)

当前没有评论,还不快来留下第一个脚印吧


Copyright 2021 三三世界-百宝箱. All Rights Reserved.

最新评论

  • 三三

    @Doug Shume it's ok for me , you can post here.

  • refugiaguenther

    Saved as a favorite, I like your website!

  • josefa

    If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.

  • Penzu

    Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!

  • Yupoo Fendi

    Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.

  • Doug Shume

    Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.

  • SuperWind

    zh.us.to 有效
    kms.03k.org 有效
    kms.chinancce.com
    kms.shuax.com 有效
    kms.dwhd.org 有效
    kms.luody.info 有效
    kms.digiboy.ir 有效
    kms.lotro.cc 有效
    www.zgbs.cc 有效
    cy2617.jios.org 有效

  • 三三

    @         权限问题,试试sudo 再加命令。

  •         

    你好提示Permission denied 怎么办啊

日历

2024年07月

 123456
78910111213
14151617181920
21222324252627
28293031   

文章目录

上一张 下一张