shell: docker run --name mysql-server -t \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix" \ -e MYSQL_ROOT_PASSWORD="zabbix" \ -d mysql:5.7 \ --character-set-server=utf8 --collation-server=utf8_bin
shell: docker run --name zabbix-server-mysql -t \ -e DB_SERVER_HOST="mysql-server" \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix" \ -e MYSQL_ROOT_PASSWORD="zabbix" \ --link mysql-server:mysql \ -p 10051:10051 \ -d zabbix/zabbix-server-mysql:latest
shell: docker run --name zabbix-web-nginx-mysql -t \ -e DB_SERVER_HOST="mysql-server" \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix" \ -e MYSQL_ROOT_PASSWORD="zabbix" \ --link mysql-server:mysql \ --link zabbix-server-mysql:zabbix-server \ -p 8080:80 \ -d zabbix/zabbix-web-nginx-mysql:latest
shell: docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 4c3380e791e2 zabbix/zabbix-web-nginx-mysql:latest "docker-entrypoint.sh" 25 minutes ago Up 25 minutes 443/tcp, 0.0.0.0:880->80/tcp zabbix-web-nginx-mysql 1256ee8a925d zabbix/zabbix-server-mysql:latest "/sbin/tini -- /usr/…" 25 minutes ago Up 25 minutes 0.0.0.0:10051->10051/tcp zabbix-server-mysql 126a18ddcec6 mysql:5.7 "docker-entrypoint.s…" 26 minutes ago Up 26 minutes 3306/tcp, 33060/tcp mysql-server
shell: docker images REPOSITORY TAG IMAGE ID CREATED SIZE zabbix/zabbix-web-nginx-mysql latest 1bf06c43656f 36 hours ago 150MB zabbix/zabbix-server-mysql latest 073a2414309c 36 hours ago 69.2MB mysql 5.7 383867b75fd2 3 weeks ago 373MB
专注于为中小企业提供成都网站制作、做网站、外贸营销网站建设服务,电脑端+手机端+微信端的三站合一,更高效的管理,为中小企业忻城免费做网站提供优质的服务。我们立足成都,凝聚了一批互联网行业人才,有力地推动了1000+企业的稳健成长,帮助中小企业通过网站建设实现规模扩充和转变。
yum install -y https://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-agent-3.0.28-1.el7.x86_64.rpm
shell: vi /etc/zabbix/zabbix_agentd.conf 95 Server=192.168.3.208 135 ServerActive=192.168.3.208
systemctl enable --now zabbix-agent && firewall-cmd --zone=public --add-port=10050/tcp --permanent && firewall-cmd --reload