[root@node7 ~]
# vim /etc/zabbix/zabbix_server.conf
##日志文件
LogFile=
/var/log/zabbix/zabbix_server
.log
##定义日志文件大小,到达上限即开始滚动
LogFileSize=0
##Pid文件
PidFile=
/var/run/zabbix/zabbix_server
.pid
##数据库地址
DBHost=192.168.10.105
##数据库名
DBName=zabbix
##zabbix登录数据库所用用户名
DBUser=zabbix
##登录数据库的密码
DBPassword=zabbix
##mysql.sock文件路径
# DBSocket=/tmp/mysql.sock 此处路径为编译安装时路径
DBSocket=
/var/lib/mysql/mysql
.sock
##数据库监听的端口
# DBPort=3306