linux中不显示中文即没有安装相应的字体,我们安装字体即可: 在centos中执行:yum install bitmap-fonts bitmap-fonts-cjk 在ubuntu中执行:sudo apt-get install xfonts-wqy 执行上述命令即ok