Ubuntu/Debian/CentOS更改系统语言方法

Kevin 教程 2,025 次浏览 39条评论

开始接触使用VPS预装系统大多是Linux发行版,新手用户直观感受除了全靠命令操作没有视图外,默认语言用的也是英文,有些人可能会不习惯。主流Linux系统提供了多语言支持,虽然使用过程中不能指望完全翻译,但简单常规性的提示信息还是有的。要更改系统默认语言只需简单命令,具体如下。

CentOS 更改系统语言

使用localectl list-locales查看已有语言环境。例如切换简中只需运行下面命令,重启系统生效。

localectl set-locale LANG=zh_CN.UTF-8

也可以手动修改语言配置文件/etc/locale.conf设置,效果是一样的。

某些场景可能只要临时切换语言,仅对当前会话生效,这时可用LANG=zh_CN.UTF-8命令设置。

Ubuntu 更改系统语言

先用locale -a查看系统语言环境。按下面命令格式更改语言,注销重新登录生效。

update-locale LANG=zh_CN.UTF-8

如果系统没有所需语言,先使用下面命令添加,以添加简中语言为例。

locale-gen zh_CN.UTF-8 && update-locale

Debian 更改系统语言

用要添加语言的国家地区代码,相应修改如下命令运行,以简中为例。

export LANG=zh_CN.UTF-8

再执行dpkg-reconfigure locales命令重新配置语言,用空格键选择,之后重启系统生效。

评论列表

  1. #1

    buy hydroxychloroquine uk https://hydroxychloroquine.webbfenix.com/

  2. #2

    wellbutrin and naltrexone https://naltrexoneonline.confrancisyalgomas.com/

  3. #3

    generic dapoxetine cheap took dapoxetine https://dapoxetine.confrancisyalgomas.com/

  4. #4

    female dapoxetine for women https://salemeds24.wixsite.com/dapoxetine

  5. #5

    safe alternative to clomiphene https://salemeds24.wixsite.com/clomid

  6. #6

    sildenafil 25 mg coupon http://droga5.net/

  7. #7

    ivermectin coronavirus in humans https://ivermectin.webbfenix.com/

  8. #8

    ordering cialis online http://www.lm360.us/

  9. #9

    doctors who recommend hydroxychloroquine https://hydroxychloroquine.mlsmalta.com/

  10. #10

    tricks for best use of suhagra https://suhagra.buszcentrum.com/

  11. #11

    dose of ivermectin for corona https://ivermectin.mlsmalta.com/

  12. #12

    cost of vidalista https://vidalista.mlsmalta.com/

  13. #13

    low dose tamoxifen side effects https://tamoxifen.mrdgeography.com/

  14. #14

    buy generic dapoxetine dapoxetine https://dapoxetine.bee-rich.com/

  15. #15

    ivermectin dosage for humans scabies https://ivermectin1st.com/

  16. #16

    aurogra tabs 100mg https://aurogra.buszcentrum.com/

  17. #17

    vidalista viagra levitra trial pack https://vidalista40mg.mlsmalta.com/

  18. #18

    cialis and grapefruit juice reaction https://wisig.org/

  19. #19

    albuterol without dr prescription https://amstyles.com/

  20. #20

    hydroxychloroquine sulfate online https://hydroxychloroquinee.com/

  21. #21

    dapoxetine tablets price in india https://ddapoxetine.com/

  22. #22

    doxycycline injectable for dogs http://doxycycline.zolftgenwell.org/

  23. #23

    free online doctor canada https://buymeds.mlsmalta.com/

  24. #24

    tadalafil pills https://tadfil.online/

  25. #25

    cialis alternatives natural https://cialis.adicbc.com/

  26. #26

    cialis alternatives natural https://cialis.studiowestinc.com/

  27. #27

    Great website. Lots of useful info here. I’m sending it to some friends ans also sharing in delicious. And certainly, thanks for your effort!

    http://www.vreyrolinomit.com/

  28. #28

    vidalista 20

  29. #29

    viagra without priscription

  30. #30

    farmacia cavaleri http://www.essinreceta.com/ comprar cialis sin receta

  31. #31

    buy hydroxychloroquine online https://hydroxychloroquinex.com/

  32. #32

    when will viagra be generic buy generic 100mg viagra online
    order viagra online

  33. #33

    Apr. 27, 2012: kamagra is it safe kamagra buy

  34. #34

    vacuum therapy for ed ed pills online
    online prescription for ed meds

  35. #35

    order ed pills buy ed drugs
    generic viagra without a doctor prescription

  36. #36

    buy ed pills from canada erectile dysfunction medicines
    cheap ed pills from india

  37. #37

    health care reform act 2016
    is ivermectin a prescription drug

  38. #38

    fast cash advance payday loan

  39. #39

    Very good info. Lucky me I found your website by chance
    (stumbleupon). I have book marked it for later! https://cialis.grassfed.us/tadalafil

发表评论

电邮地址用于 Gravatar 头像显示,不会被公开可见。