In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Often install the Linux system for the most simplified installation, will default to use the English character set, will not install the Chinese character set and other characters. However, Chinese support is required in some cases. This article will demonstrate how to install Chinese character sets in Oracle Linux7.
1. First use the locale command to look at the character set used by the current system. You can see that it is in English.
[root@cs2 ~] # locale
LANG=en_US.UTF-8
LC_CTYPE= "en_US.UTF-8"
LC_NUMERIC= "en_US.UTF-8"
LC_TIME= "en_US.UTF-8"
LC_COLLATE= "en_US.UTF-8"
LC_MONETARY= "en_US.UTF-8"
LC_MESSAGES= "en_US.UTF-8"
LC_PAPER= "en_US.UTF-8"
LC_NAME= "en_US.UTF-8"
LC_ADDRESS= "en_US.UTF-8"
LC_TELEPHONE= "en_US.UTF-8"
LC_MEASUREMENT= "en_US.UTF-8"
LC_IDENTIFICATION= "en_US.UTF-8"
LC_ALL=
2. Check whether the system has the support to install Chinese character set.
[root@cs2 ~] # locale-a | grep CN
Bo_CN
Bo_CN.utf8
Ug_CN
Ug_CN.utf8
Zh_CN
Zh_CN.gb18030
Zh_CN.gb2312
Zh_CN.gbk
Zh_CN.utf8
3. If not, use yum to install the Chinese character set
Yum install ibus-table-chinese-1.4.6-3.el7.noarch
4. Modify the configuration file and restart the system test as follows
Cat / etc/locale.conf
# LANG= "en_US.UTF-8"
LANG= "zh_CN.gb2312"
5. Re-check the character set and modify it successfully. You can also use the echo command to output Chinese, which can be displayed normally.
[root@cs2 ~] # locale
LANG=zh_CN.gb2312
LC_CTYPE= "zh_CN.gb2312"
LC_NUMERIC= "zh_CN.gb2312"
LC_TIME= "zh_CN.gb2312"
LC_COLLATE= "zh_CN.gb2312"
LC_MONETARY= "zh_CN.gb2312"
LC_MESSAGES= "zh_CN.gb2312"
LC_PAPER= "zh_CN.gb2312"
LC_NAME= "zh_CN.gb2312"
LC_ADDRESS= "zh_CN.gb2312"
LC_TELEPHONE= "zh_CN.gb2312"
LC_MEASUREMENT= "zh_CN.gb2312"
LC_IDENTIFICATION= "zh_CN.gb2312"
LC_ALL=
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.