In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Environment:
Server environment: Ubuntu Server 16.04lts
Server coding configuration:
First, we use shell to connect to the login server, then enter the locale command in the terminal, and the result is as follows:
LocaleLANG=LANGUAGE=C:LC_CTYPE= "POSIX" LC_NUMERIC= "POSIX" LC_TIME= "POSIX" LC_COLLATE= "POSIX" LC_MONETARY= "POSIX" LC_MESSAGES= "POSIX" LC_PAPER= "POSIX" LC_NAME= "POSIX" LC_ADDRESS= "POSIX" LC_TELEPHONE= "POSIX" LC_MEASUREMENT= "POSIX" LC_IDENTIFICATION= "POSIX" LC_ALL=
Each option has the following meaning:
Language symbols and their Classification (LC_CTYPE)
Digital (LC_NUMERIC)
Compare and sort habits (LC_COLLATE)
Time display format (LC_TIME)
Monetary unit (LC_MONETARY)
The information is mainly prompt message, error message, status message, title, label, button and menu (LC_MESSAGES).
Name Writing method (LC_NAME)
Address Writing method (LC_ADDRESS)
Telephone number Writing method (LC_TELEPHONE)
Expression of weights and measures (LC_MEASUREMENT)
Default Paper size (LC_PAPER)
An overview of the information contained in locale itself (LC_IDENTIFICATION).
What we need to fix is the problem of Chinese input, so we just need to set up LC_CTYPE.
View the encoding supported by the system:
Locale-a
Check whether the output contains zh_CN.utf-8. If not, you can install the language pack first.
Sudo apt-get-y install language-pack-zh-hans
Zh_CN.utf-8 has been included after installation
Next, modify the value of LC_CTYPE, using the export LC_CTYPE='zh_CN.UTF-8' command.
Execute export LC_CTYPE='zh_CN.UTF-8' directly then it is only valid for the current session
All users (permanent): modify / etc/profile
Current user (permanent): modify ~ / .bashrc
It is recommended that you modify the / etc/profile file directly so that all users can use it.
After the modification is completed, log out, log in again, and enter the locale command to get the following output:
LANG=LANGUAGE=C:LC_CTYPE=zh_CN.UTF-8LC_NUMERIC= "POSIX" LC_TIME= "POSIX" LC_COLLATE= "POSIX" LC_MONETARY= "POSIX" LC_MESSAGES= "LC_PAPER=" POSIX "LC_NAME=" POSIX "LC_ADDRESS=" POSIX "LC_TELEPHONE=" POSIX "LC_MEASUREMENT=" POSIX "LC_IDENTIFICATION=" POSIX "LC_ALL=
After that, you can enter Chinese:
These are the details that linux cannot enter in Chinese, please pay attention to other related articles!
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.