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

Example Analysis of installing and deploying Zabbix based on Docker

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article will explain in detail the example analysis of installing and deploying Zabbix based on Docker. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

After testing Zabbix-Docker for a day, it is really easy to deploy, so you need to enter the following command in the linux system where 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 10051Suzhou 10051\

-p 10050Rank 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 purl 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.

This is the end of this article on "sample Analysis of Zabbix installation and deployment based on Docker". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

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