如果没有mysql_config,需要安装yum install mysql-devel
配置web站点
[root@Zabbix_Server zabbix-3.0.4]# rm -rf /app/nginx/html/*
[root@Zabbix_Server zabbix-3.0.4]# cp -r /usr/local/Tools/zabbix-3.0.4/frontends/php/* /app/nginx/html/
[root@Zabbix_Server zabbix-3.0.4]# chown -R /app/nginx/html/
[root@Zabbix_Server zabbix-3.0.4]# service zabbix_agentd start
[root@Zabbix_Server zabbix-3.0.4]# service zabbix_agentd start
[root@Zabbix_Server zabbix-3.0.4]# tail /app/zabbix/logs/zabbix_server.log
21858:20160906:072015.723 Ez Texting notifications: YES
21858:20160906:072015.724 ODBC: YES
21858:20160906:072015.724 SSH2 support: YES
21858:20160906:072015.724 IPv6 support: YES
21858:20160906:072015.724 TLS support: YES
21858:20160906:072015.724 ******************************
21858:20160906:072015.724 using configuration file: /app/zabbix/etc/zabbix_server.conf
21858:20160906:072015.730 current database version (mandatory/optional): 03000000/03000000
21858:20160906:072015.730 required mandatory version: 03000000
21858:20160906:072015.735 listener failed: cannot resolve address [[localhost]:10051]: [-2] Name or service not known
[root@Zabbix_Server zabbix-3.0.4]# vim /app/zabbix/etc/zabbix_server.conf
#ListenIP=localhost
ListenIP=127.0.0.1
[root@Zabbix_Server logs]# service zabbix_server start
[root@Zabbix_Server logs]# netstat -ntlp |grep zabbix
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 22490/zabbix_agentd
tcp 0 0 127.0.0.1:10051 0.0.0.0:* LISTEN 22419/zabbix_server
tcp 0 0 :::10050 :::* LISTEN 22490/zabbix_agentd
[root@Zabbix_Server logs]#
CentOS下Zabbix 3.0.4安装部署(2)
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/89df2c2f373380a1292880a37cffc503.html