Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A case study of installing and deploying Zabbix based on Docker

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you a case of Docker-based installation and deployment of Zabbix, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Zabbix-Docker, which has been tested all day today, is really easy to deploy, so you need to enter the following command in the linux system on which Docker is installed.

1. Install the mysql database and start an empty MySQL server instance

Docker run-name zabbix-DB-t\-e MYSQL_DATABASE= "zabbix"\-e MYSQL_USER= "zabbix"\-e MYSQL_PASSWORD= "zabbix_pwd"\-e MYSQL_ROOT_PASSWORD= "root_pwd"\-d mysql:5.7

two。 Start the Zabbix server instance and associate it with the created MySQL server instance

Docker run-name zabbix-SER-t\-e DB_SERVER_HOST= "zabbix-DB"\-e MYSQL_DATABASE= "zabbix"\-e MYSQL_USER= "zabbix"\-e MYSQL_PASSWORD= "zabbix_pwd"\-e MYSQL_ROOT_PASSWORD= "root_pwd"\-e ZBX_JAVAGATEWAY= "zabbix-java-gateway"\-link zabbix-DB:mysql\-p 10051: 10051\-p 10050 10050\-d zabbix/zabbix-server-mysql:latest

3. Start Zabbix web interface 8088 and associate it with MySQL server instance and Zabbix server instance

Docker run-name zabbix-WEB-t\-e DB_SERVER_HOST= "zabbix-DB"\-e MYSQL_DATABASE= "zabbix"\-e MYSQL_USER= "zabbix"\-e MYSQL_PASSWORD= "zabbix_pwd"\-e MYSQL_ROOT_PASSWORD= "root_pwd"\-e PHP_TZ= "Asia/Shanghai"\-link zabbix-DB:mysql\-link zabbix-SER: Zabbix-server\-p 8088 80\-d zabbix/zabbix-web-nginx-mysql:latest\

PS: but at present, there is a problem. After Zabbix is started, the information of 127.0.0.1 cannot be obtained and solved. It should be that the Zabbix server container does not install Zabbix's agent.

The above is all the content of this article "the case of installing and deploying Zabbix based on Docker". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Original link: http://blog.51cto.com/337962/2097203

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report