CentOS 安装中文
磨砺技术、结交朋友
回到上一级页面: PostgreSQL杂记页 回到顶级页面:PostgreSQL索引页
CentOS安装时选择了英文,事后想安装中文支持。
这里需要用到yum。如果yum运行时总是收到:Existing lock /var/run/yum.pid...的信息,
需要执行rm -f /var/run/yum.pid
如果还是出:
Another application is holding the yum lock....The other application is yum-updatesd-he...
那么需要 ps -ef|grep yum-updatesd-he
kill -9 {yum-updatesd-he的进程ID}
安装中文支持需要以下几个步骤:
yum group install chinese
或
yum search fonts-chinese
yum search fonts-ISO8859-2
找到 相应的组件名称,我用的是CentOS5.7 32位版本,所以执行如下的安装。
yum install fonts-chinese-noarch
yum install fonts-ISO8859-2.noarch
yum install fonts-ISO8859-2-100dpi.noarch
yum install fonts-ISO8859-2-75dpi.noarch
然后,编辑 /etc/sysconfig/i18n文件:
设定:
LANG=zh_CN.GB18030
此后,还有一个非常关键的步骤!
fc-cache -fv
如果没有这个步骤,系统重新启动也没有用。
回到上一级页面: PostgreSQL杂记页 回到顶级页面:PostgreSQL索引页
磨砺技术、结交朋友