At work, some colleagues often complain that their English is not very good. reading some error messages and configuration documents is not easy. now I will set some major English documents to Chinese, we hope to help you in this process. 1. the system is in English, and now the English is changed to Chinese [root @ node1 ~] # Locale-a | grep-izh_cn.utf8 -- check whether the Chinese environment is installed in the system [root @ node1 ~] # Yumgroupl
At work, some colleagues often complain that their English is not very good. reading some error messages and configuration documents is not easy. now I will set some major English documents to Chinese, we hope to help you in this process.
1. the system is in English and now the English is changed to Chinese
|
[Root @ node1 ~] # Locale-a | grep-I zh_cn.utf8 -- check whether the Chinese environment is installed in the system [root @ node1 ~] # Yum grouplist | grep-I chinese -- check whether the warehouse has a chinese package [root @ node1 ~] # Yum groupinstall Chinese-support -- Install the Chinese language pack |
2. change the system language environment
|
[Root @ node1 ~] # Echo $ LANG -- view the current language environment [root @ node1 ~] #/Etc/init. d/httpd restart -- restart any service. now the Stopping httpd: [OK] Starting httpd: cocould not reliably determine the server's fully qualified domain name, using 2.2.2.27 forServerName [OK] [root @ node1 ~] # LANG = zh_CN.utf8 -- set the Chinese environment (temporary) [root @ node1 ~] # Echo $ LANG -- check the language environment zh_CN.utf8 [root @ node1 ~] #/Etc/init. d/httpd restart -- restart any service and change to Chinese. stop httpd: [OK] starting httpd: cocould not reliably determine the server's fully qualified domain name, using 2.2.2.27 forServerName [OK] [root @ node1 ~] # Vim/etc/sysconfig/i18n -- permanently effective (modify the configuration file) LANG = "zh_CN.utf8" -- modify the configuration file |
3. download the Chinese help software and install the test
|
[Root @ node1 cheng] # wget http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gz--2014-01-16 16:27:39 -- http://manpages-zh.googlecode.com/files/manpages-zh-1.5.1.tar.gzResolving Manpages-zh.googlecode.com... 173.194.72.82, 2404: 6800: 4008: c01: 52 ING to manpages-zh.googlecode.com | 173.194.72.82 |: 80... connected. HTTP request sent, awaiting response... 200 OKLength: 1965336 (1.9 M) [application/x-gzip] Saving: export manpages-zh-1.5.1.tar.gz "100% [====================================== ===========================================>] 1,965,336 400 K/sin4.8s2014-01-16 16:27:44 (400 KB/s)- Unzip manpages-zh-1.5.1.tar.gz "saved [1965336/1965336] [root @ node1 cheng] # tar xvf manpages-zh-1.5.1.tar.gz -- unbind package [root @ node1 cheng] # cd manpages-zh-1.5.1 [root @ node1 manpages-zh-1.5.1] #. /configure -- prefix =/usr/local/zhman -- disable-zhtw [root @ node1 manpages-zh-1.5.1] # make & make install -- install software [root @ node1 manpages-zh-1.5.1] # vim ~ /. Bash_profilealiascman = 'man-M/usr/local/zhman/share/man/zh_CN '-- add this line [root @ node1 manpages-zh-1.5.1] # source ~ /. Bash_profile -- make the configuration file take effect [root @ node1 manpages-zh-1.5.1] # cman iptables -- you can see the help of Chinese |
4. install the Chinese input method in the system
|
1. log on to 2.yum install "@ Chinese Support" 3 as the root user. exit4. go back to the desktop, system-> preferences-> input method5. if not, log out first. 6. follow the prompts to add the input method 7. log out again. log on. |