蜡笔小鑫爱看雪 2020-03-01
docker pull zabbix/zabbix-proxy-mysql docker pull mysql:5.7 dokcer network create bridge00 docker run --name mysql-zabbix -it -e MYSQL_DATABASE="zabbix_proxy" -e MYSQL_USER="zabbix_proxy" -e MYSQL_PASSWORD="" -e MYSQL_ROOT_PASSWORD="" -v /etc/localtime:/etc/localtime:ro --network bridge00 --restart unless-stopped -d mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin docker run --name zabbix-proxy-mysql -e DB_SERVER_HOST="mysql-zabbix" -e MYSQL_DATABASE="zabbix_proxy" -e MYSQL_USER="zabbix_proxy" -e MYSQL_PASSWORD="" -e ZBX_HOSTNAME="O-Zabbix-Proxy03" -e ZBX_SERVER_HOST=172.28.11.6 -e ZBX_CACHESIZE=256M -e ZBX_CONFIGFREQUENCY=60 -p 10051:10051 --network bridge00 --restart unless-stopped -v /etc/localtime:/etc/localtime:ro -d zabbix/zabbix-proxy-mysql:latest