1.mysql中文乱码
vi /etc/my.cnf
在mysqld下添加
[mysqld]
character-set-server=utf8
2.tomcat中文乱码
找到tomcat/conf/sever.xml
在下面的标签中插入URIEncoding=”UTF-8”
<Connector port="9999" URIEncoding="UTF-8" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
3.Linux无中文语言包
查看当前语言
locale
安装简体中文
yum install kde-l10n-Chinese
修改配置文件etc/locale.conf
LANG="zh_CN.UTF-8"