`

CentOS中文乱码

阅读更多
执行命令“yum -y install fonts-chinese”即可,但要确保能连接外网!,如下:


[root@localhost bin]# yum -y install fonts-chinese
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 4646.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:35 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:37 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:39 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:41 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:43 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:45 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:47 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:49 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:51 ago
    State  : Sleeping, pid: 4646
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pup
    Memory :  40 M RSS ( 95 MB VSZ)
    Started: Mon Mar 26 00:00:32 2012 - 11:53 ago
    State  : Sleeping, pid: 4646
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package fonts-chinese.noarch 0:3.02-12.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package               Arch           Version                Repository    Size
================================================================================
Installing:
fonts-chinese         noarch         3.02-12.el5            base          24 M

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 24 M
Downloading Packages:
fonts-chinese-3.02-12.el5.noarch.rpm                                                                                                                                                    |  24 MB     02:16    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : fonts-chinese [###########################################################################                                                     Installing     : fonts-chinese [############################################################################                                                    Installing     : fonts-chinese [##############################################################################                                                  Installing     : fonts-chinese [################################################################################                                                Installing     : fonts-chinese [#################################################################################                                               Installing     : fonts-chinese [###################################################################################                                             Installing     : fonts-chinese [#####################################################################################                                           Installing     : fonts-chinese [######################################################################################                                          Installing     : fonts-chinese [########################################################################################                                        Installing     : fonts-chinese [##########################################################################################                                      Installing     : fonts-chinese [###########################################################################################                                     Installing     : fonts-chinese [#############################################################################################                                   Installing     : fonts-chinese [###############################################################################################                                 Installing     : fonts-chinese [################################################################################################                                Installing     : fonts-chinese [##################################################################################################                              Installing     : fonts-chinese [####################################################################################################                            Installing     : fonts-chinese [#####################################################################################################                           Installing     : fonts-chinese [#######################################################################################################                         Installing     : fonts-chinese [#########################################################################################################                       Installing     : fonts-chinese [##########################################################################################################                      Installing     : fonts-chinese [############################################################################################################                    Installing     : fonts-chinese [##############################################################################################################                  Installing     : fonts-chinese [###############################################################################################################                 Installing     : fonts-chinese [#################################################################################################################               Installing     : fonts-chinese [###################################################################################################################             Installing     : fonts-chinese [####################################################################################################################            Installing     : fonts-chinese [######################################################################################################################          Installing     : fonts-chinese [########################################################################################################################        Installing     : fonts-chinese [#########################################################################################################################       Installing     : fonts-chinese [###########################################################################################################################     Installing     : fonts-chinese [#############################################################################################################################   Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese [##############################################################################################################################  Installing     : fonts-chinese                                                                                                                                                                           1/1

Installed:
  fonts-chinese.noarch 0:3.02-12.el5                                           

Complete!
[root@localhost bin]#

重启后若发现还是显示乱码,则再执行如下命令:
yum install fonts-ISO8859-2
或参阅
http://www.cnblogs.com/CgenJ/archive/2011/07/28/2119447.html

http://hi.baidu.com/brucexuyg/item/438f5742255cbd92823ae15b
后重启!
分享到:
评论

相关推荐

    CentOS中文乱码问题

    CentOS 中文乱码问题解决方案 CentOS 系统中存在一个常见的问题...通过安装中文支持包、配置系统语言环境、解决 ssh 和 telnet 终端中文显示乱码问题、使用中文输入法等方法,可以解决 CentOS 系统中的中文乱码问题。

    解决centos 中文乱码

    1. **安装中文支持包**:确保系统已经安装了中文字体和语言包。 2. **配置语言环境**:修改系统的语言环境设置,确保系统能够识别并正确显示中文。 3. **清理字体缓存**:更新字体缓存,使新的字体配置生效。 4. **...

    CentOS中文支持 CentOS中文乱码

    2. **安装中文语言包**:在CentOS中,我们可以使用`yum`或`dnf`(根据版本不同)来安装中文语言包。执行`sudo yum install langpacks-zh_CN`(或`sudo dnf install langpacks-zh_CN`)来安装。 3. **配置终端模拟器...

    CentOS 5.8中文乱码(方框字)解决.docx

    这个问题的出现是因为在安装 CentOS 时选择了英文语言环境,而没有安装中文支持包,从而导致了中文字符显示为乱码(小方框)。这种问题可以通过安装中文支持包和配置字体来解决。 安装中文支持包 要解决中文乱码...

    解决Linux/Centos安装Oracle时中文乱码的字体

    新建一个目录,上传字体包zysong.ttf到新建的目录,命令如下: #mkdir –p /usr/share/fonts/zh_CN/TrueType #cd /usr/share/fonts/zh_CN/TrueType #chmod –R 75 zysong.ttf

    CentOS中的中文乱码问题的解决.

    这个文档很好的解决了CentOS中的中文乱码问题,希望对大家有用。

    centos7下Oracle12中文乱码的问题

    替换oracle解压之后的database文件中的filegroup2文件 路径 :database/stage/Components/oracle.jdk/1.6.0.75.0/1/DataFiles

    CentOS 5.7中文乱码问题解决方案.docx

    CentOS 5.7 中文乱码问题解决方案 CentOS 5.7 中文乱码问题解决方案是指在 CentOS 5.7 操作系统中...该解决方案通过安装中文支持、安装中文字体、修改配置文件、配置 font 文件等步骤来解决 CentOS 5.7 中文乱码问题。

    centos安装中文字体,解决中文乱码

    本文将详细介绍如何在CentOS中安装中文字体,解决中文乱码问题。 首先,我们需要准备中文字体文件。在提供的压缩包中,有一个名为`simsun.ttc`的文件,这是宋体的TrueType Collection字体,适用于Windows和Mac系统...

    CentOS显示中文乱码.pdf

    CentOS系统中经常出现中文乱码的问题,主要是由于系统默认安装时未安装中文支持包所致。在本文中,我们将介绍解决CentOS中文乱码问题的方法。 一、安装中文支持包 在CentOS系统中,安装中文支持包是解决中文乱码...

    CentOS显示中文乱码.rar

    然而,在使用CentOS时,可能会遇到一个问题:系统无法正确显示中文字符,导致中文乱码。这个问题在处理中文文档、浏览中文网页或与中文用户交互时尤为困扰。本文将深入探讨这个问题的原因以及解决方法。 首先,我们...

    CentOS中文乱码设置以及安装中文输入法.docx

    以下将详细讲解如何在CentOS系统中解决中文乱码问题并安装中文输入法。 首先,解决中文乱码问题的关键在于设置系统的语言环境。在CentOS中,可以通过修改 `/etc/sysconfig/i18n` 文件来实现。在该文件中,你需要...

    centos下安装openoffice及解决菜单中文乱码

    在CentOS 6.4环境下安装OpenOffice及解决中文乱码问题是一项常见但又复杂的任务,涉及到了软件的安装、字体管理以及环境配置等多个方面。本文将基于提供的标题、描述、标签以及部分内容,深入探讨这一过程中的关键...

    解决CentOS SSH连接时中文乱码

    在安装CentOS系统时,如果选择中文作为默认语言,通常情况下,在本地图形界面中可以正常显示中文。但在通过SSH远程连接时,中文字符可能会变成乱码。这主要是因为SSH客户端与服务器端的语言编码设置不一致导致的。 ...

    CentOS 下中文文件名显示乱码问题

    在Linux系统中,特别是使用CentOS时,经常遇到的一个问题是在Windows上通过FTP上传带有中文名称的文件后,这些文件在Linux中显示为乱码。这主要是由于编码不兼容导致的。Windows系统默认使用GBK编码来存储文件名,而...

    CentOS安装smplayer界面菜单乱码解决方案

    1. **安装中文语言包**: 在CentOS中,首先要确保系统支持中文语言。打开终端,使用`sudo yum install langpacks-zh_CN`命令安装中文语言包。这将增加对简体中文的支持。 2. **更新系统字体**: CentOS可能默认...

    linux oracle11g中文乱码解决字体

    linux oracle11g中文乱码解决字体. centos6 下测试: mkdir -p /usr/share/fonts/zh_CN/TrueType cp zysong.ttf /usr/share/fonts/zh_CN/TrueType/ 这就可以了。 有时候有字体查看工具,用那个打开也可以安装,可以...

    中文乱码CentOS Linux

    总结起来,解决“中文乱码CentOS Linux”问题涉及了字符编码理解、locale设置、字体安装、终端和应用配置等多个方面,需要综合考虑并逐个排查。通过上述步骤,一般可以成功解决大部分的中文显示问题。

    解决centos55中文乱码方法总结linux操作系统电脑资料.doc

    1. **安装中文字体**: 使用`yum`命令安装必要的中文字体包。在命令行中输入: ``` # yum install fonts-chinese.noarch # yum install fonts-ISO8859-2.noarch ``` 2. **修改系统语言设置**: 打开配置文件`...

Global site tag (gtag.js) - Google Analytics