Linux: March 2020 Archives

CentOS 7/8 set locale

user-pic
Vote 0 Votes

列出可用的 locale 清單
locale -a 或 localectl list-locales

在 CentOS 8 若安裝時沒有選中文,會看不到 zh_TW.utf8
它把語言包拆分了,要另外安裝
yum -y install glibc-langpack-zh langpacks-zh_TW

設定
localectl set-locale zh_TW.utf8
CentOS 7 需使用 localectl set-locale LANG=zh_TW.utf8
不然會出現錯誤訊息 Failed to issue method call: Invalid Locale data.

Recent Entries

About this Archive

This page is an archive of entries in the Linux category from March 2020.

Linux: February 2020 is the previous archive.

Linux: May 2020 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Linux: Monthly Archives

Monthly Archives