1.liunx服务器之间相互传输文件,两台服务器都安装openssh-clients
1 yum install openssh-clients -y 2 scp /usr/share/doc/zabbix-server-mysql-2.2.18/create/*.sql root@192.168.112.131:/tmp
2.mysql数据库创建数据库,并赋予权限
create database zabbix grant all on zabbix.* to 'zabbixuser'@'%' identified by 'zabbix';(授权) flush privileges;
3.导入sql脚本实例
mysql -uroot -proot zabbix < /tmp/schema.sql mysql -uroot -proot zabbix < /tmp/images.sql mysql -uroot -proot zabbix < /tmp/data.s
1 mysql -uzabbixuser -pzabbix -h192.168.112.131
4.远程测试数据库用户是不是可以连上实例
1 mysql -uzabbixuser -pzabbix -h192.168.112.131
5.开放某个端口实例(3306)
1 iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
6.zabbix安装过程中,时区出现错误
1 vi /ect/php.ini 2 data.timezone=Asia/Shanghai 3 service httpd resta