1.zabbix-mysql 數據庫mysql
sudo docker pull zabbix/zabbix-server-mysqlweb
sudo docker run --name some-zabbix-server-mysql -p 10051:10051 --net=host -e DB_SERVER_HOST="172.18.168.214" -e DB_SERVER_PORT=3366 -e MYSQL_USER="root" -e MYSQL_PASSWORD="f6914da5f9" -d zabbix/zabbix-server-mysqlsql
2.服務端運行環境docker
sudo docker pull zabbix/zabbix-web-apache-mysql數據庫
sudo docker run --name some-zabbix-web-apache-mysql -p 8088:80 -e DB_SERVER_HOST="127.0.0.1" -e DB_SERVER_PORT=3306 -e MYSQL_USER="root" -e MYSQL_PASSWORD="f6914da5f9" -e ZBX_SERVER_HOST="172.18.168.214" -e TZ="Asia/Shanghai" -d zabbix/zabbix-web-apache-mysqlapache
3.zabbix 登陸頁面,默認賬號爲Admin 密碼爲 zabbixserver
4.客戶端登錄
sudo docker pull zabbix/zabbix-agent密碼
sudo docker run --name some-zabbix-agent -p 10050:10050 -e ZBX_HOSTNAME="hostname" -e ZBX_SERVER_HOST="172.18.168.214" -e ZBX_SERVER_PORT=10051 -d zabbix/zabbix-agent數據
5.開放對外端口訪問