在工作中和一些同事常常抱怨自己的英文不是很好,阅读一些错误信息和配置文档往往不是随心随手,现在我就将把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.最后再次注销,登录即可CentOS 6.4系统重启网络服务故障处理CentOS 6.X下Trac的部署相关资讯 Linux系统
- 是否将Linux作为第二系统的七个理 (今 09:15)
- 四套专为儿童设计的 Linux 系统 (01/23/2015 08:59:43)
- 开发者移情别恋 Linux系统为何遭到 (05/21/2014 06:28:16)
| - Linux 系统是否适合于您? (09/21/2015 13:09:51)
- 为什么应该将Linux系统“一分为二 (09/15/2014 17:01:29)
- Linux内核管理--之定制一个属于自 (03/07/2014 17:08:19)
|
本文评论 查看全部评论 (0)