mysql>create database zabbix character set utf8 collate utf8_bin;
mysql>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
mysql> flush privileges;
cd /usr/share/doc/zabbix-server-mysql
zcat create.sql.gz | mysql -u root -p zabbix
sudo cp -r /usr/share/zabbix /var/www/html/zabbix
service zabbix-server restart
1.3修改服务端配置信息 1.3.1配置PHP
sudo vim /etc/php5/apache2/php.ini修改项:
3、zabbix中文乱码 http://www.ttlsa.com/zabbix/zabbix-chinese-garbled-ttlsa/
1.dpkg-reconfigure locales #选择系统语言包
#必须选择的en_US.UTF-8/zh_CN.UTF-8
2.在选择系统环境语言时,必须有必要选en_US.UTF-8
#check zabbix配置
vim /usr/share/zabbix/include/locales.inc.php
找到getLocales()函数检查zh_CN是否为True
Debian就可以这样解决
4. zabbix切换中文
You are not able to choose some of the languages, because locales for them are not installed on the web server.
解决方法:安装中文语音包
apt-get install -y language-pack-kde-zh-hans
sudo service apache2 restart