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.

About this Entry

This page contains a single entry by Pank published on March 31, 2020 10:14 AM.

Winbox 3.20 Download was the previous entry in this blog.

MySQL store login info is the next entry in this blog.

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

Monthly Archives