linux配置中文环境,Linux系统安装中文环境,中文帮助,中文输入法的实现

在工作中和一些同事常常抱怨自己的英文不是很好,阅读一些错误信息和配置文档往往不是随心随手,现在我就将把Linux系统一些主要的英文文档设置成中文,希望在此过程中对大家有帮助。

1.系统是英文的,现在将英文变为中文

[root@node1 ~]# locale -a | grep -i zh_cn.utf8    –查看系统是否安装中文环境

[root@node1 ~]# yum grouplist |grep -i chinese    –查看仓库是否有中文包

[root@node1 ~]# yum groupinstall Chinese-support  –安装中文语言包

2.更改系统语言环境

[root@node1 ~]# echo $LANG    –查看当前的语言环境

[root@node1 ~]# /etc/init.d/httpd restart    –重启任意服务,现在是英文

Stopping httpd:                                            [  OK  ]

Starting httpd: httpd: Could not reliably determine the server’s fully qualified domain name, using 2.2.2.27 for ServerName

[  OK  ]

[root@node1 ~]# LANG=zh_CN.utf8    –设置中文环境(临时的)

[root@node1 ~]# echo $LANG    –检查语言环境

zh_CN.utf8

[root@node1 ~]# /etc/init.d/httpd restart    –重启任意服务,变成中文了

停止 httpd:                                              [确定]

正在启动 httpd:httpd: Could not reliably determine the server’s fully qualified domain name, using 2.2.2.27 for ServerName

[确定]

[root@node1 ~]# vim /etc/sysconfig/i18n    –永久生效(修改配置文件)

LANG=”zh_CN.utf8″            –修改配置文件

3.下载中文帮助软件并安装测试

[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.gz

Resolving manpages-zh.googlecode.com… 173.194.72.82, 2404:6800:4008:c01::52

Connecting to manpages-zh.googlecode.com|173.194.72.82|:80… connected.

HTTP request sent, awaiting response… 200 OK

Length: 1965336 (1.9M) [application/x-gzip]

Saving to: “manpages-zh-1.5.1.tar.gz”

100%[=========================================================================>] 1,965,336    400K/s  in 4.8s

2014-01-16 16:27:44 (400 KB/s) – “manpages-zh-1.5.1.tar.gz” saved [1965336/1965336]

[root@node1 cheng]# tar xvf manpages-zh-1.5.1.tar.gz    –解开软件包

[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  –安装软件

[root@node1 manpages-zh-1.5.1]# vim ~/.bash_profile

alias cman=’man -M /usr/local/zhman/share/man/zh_CN’      –添加这一行

[root@node1 manpages-zh-1.5.1]# source  ~/.bash_profile  –使配置文件生效

[root@node1 manpages-zh-1.5.1]# cman iptables  –可以看到中文帮助了

4.在系统中安装中文输入法

1.用root用户登陆

2.yum install “@Chinese Support”

3.exit

4.回到桌面,system->preferences->input method

5.如果没有,先注销一下

6.按照提示添加输入法

7.最后再次注销,登录即可

0b1331709591d260c1c78e86d0c51c18.png

文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门在线安装软件24904 人正在系统学习中 相关资源:世新砸蛋抽奖软件V2.3.10官方安装版-其它代码类资源-CSDN文库

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2021年4月2日
下一篇 2021年4月2日

相关推荐