zabbix3.0之server端部署详解

发布时间:2020-07-30 20:55:44 作者:凛冬一壶酒
来源:网络 阅读:4041
yum 配置

注意:所有的localhost建议换成IP,否则有时候会报错

建议命令改,也可以手动改
直接命令改,简单,高效
[root@localhost conf]# vim /etc/httpd/conf.d/zabbix.conf [root@localhost conf]# sed -i 's@# php_value date.timezone Europe/Riga@php_value date.timezone Asia/Shanghai@g' /etc/httpd/conf.d/zabbix.conf[root@localhost conf]#

数据库配置

在Centos7上如果通过yum安装的话,已经找不到了MySQL已经变成了mariadb。所以启动方式有略有不同

启动数据库
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all on zabbix.* to zabbix@'localhost' identified by '123456';Query OK, 0 rows affected (0.00 sec)
[root@localhost conf]# cd /usr/share/doc/zabbix-server-mysql-3.0.9/[root@localhost zabbix-server-mysql-3.0.9]# zcat create.sql.gz |mysql -uzabbix -p123456 zabbix[root@localhost zabbix-server-mysql-3.0.9]#

启动zabbix服务

浏览器查看界面

zabbix3.0之server端部署详解

界面配置信息

Welcome Check of pre-requisites Configure DB connection Zabbix server details Pre-installation summary Install Pre-installation summary

Please check configuration parameters. If all is correct, press "Next step" button, or "Back" button to change configuration parameters.

Database type MySQL Database server 172.16.1.200 Database port default Database name zabbix Database user zabbix Database password ******

Zabbix server localhost Zabbix server port 10051 Zabbix server name zabbix-server

修改agent配置文件

[root@localhost zabbix-server-mysql-3.0.9]# ss -lstp |egrep -e "10050|10051"LISTEN     0      128                     *:10050                    *:*        users:(("zabbix_agentd",46212,4),("zabbix_agentd",46211,4),("zabbix_agentd",46210,4),("zabbix_agentd",46209,4),("zabbix_agentd",46208,4),("zabbix_agentd",46207,4))
LISTEN     0      128                     *:10051                    *:*        users:(("zabbix_server",45965,5),("zabbix_server",45964,5),("zabbix_server",45963,5),("zabbix_server",45949,5),("zabbix_server",45948,5),("zabbix_server",45947,5),("zabbix_server",45946,5),("zabbix_server",45945,5),("zabbix_server",45944,5),("zabbix_server",45943,5),("zabbix_server",45942,5),("zabbix_server",45941,5),("zabbix_server",45940,5),("zabbix_server",45939,5),("zabbix_server",45938,5),("zabbix_server",45937,5),("zabbix_server",45936,5),("zabbix_server",45935,5),("zabbix_server",45934,5),("zabbix_server",45933,5),("zabbix_server",45932,5),("zabbix_server",45931,5),("zabbix_server",45930,5),("zabbix_server",45929,5),("zabbix_server",45928,5),("zabbix_server",45927,5),("zabbix_server",45922,5))
LISTEN     0      128                    :::10050                   :::*        users:(("zabbix_agentd",46212,5),("zabbix_agentd",46211,5),("zabbix_agentd",46210,5),("zabbix_agentd",46209,5),("zabbix_agentd",46208,5),("zabbix_agentd",46207,5))
LISTEN     0      128                    :::10051                   :::*        users:(("zabbix_server",45965,6),("zabbix_server",45964,6),("zabbix_server",45963,6),("zabbix_server",45949,6),("zabbix_server",45948,6),("zabbix_server",45947,6),("zabbix_server",45946,6),("zabbix_server",45945,6),("zabbix_server",45944,6),("zabbix_server",45943,6),("zabbix_server",45942,6),("zabbix_server",45941,6),("zabbix_server",45940,6),("zabbix_server",45939,6),("zabbix_server",45938,6),("zabbix_server",45937,6),("zabbix_server",45936,6),("zabbix_server",45935,6),("zabbix_server",45934,6),("zabbix_server",45933,6),("zabbix_server",45932,6),("zabbix_server",45931,6),("zabbix_server",45930,6),("zabbix_server",45929,6),("zabbix_server",45928,6),("zabbix_server",45927,6),("zabbix_server",45922,6))
[root@localhost zabbix-server-mysql-3.0.9]#

zabbix3.0之server端部署详解


推荐阅读:
  1. SQL server 数据库之“索引”详解
  2. 部署Exchange管理端

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

安装 server zabbix

上一篇:.NET/ASP.NET MVC Controller 控制器(一:深入解析控制器运行原理)

下一篇:Docker 安装 postgreSQL 11.4

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》