Linux: March 2020 Archives

CentOS 7/8 set locale

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