Open AI-LINGCHAO opened 2 years ago
docker run -it \
--name=zabbix-java-gateway \
--network zabbix_net \
--restart=always \
-v /etc/localtime:/etc/localtime \
-d zabbix/zabbix-java-gateway:ubuntu-5.4-latest
docker run -it -p 10051:10051 \
--name=zabbix-server-mysql \
--mount source=zabbix-server-vol,target=/etc/zabbix \
--network zabbix_net \
--restart=always \
-v /etc/localtime:/etc/localtime \
-v /usr/lib/zabbix/alertscripts:/usr/lib/zabbix/alertscripts \
-e DB_SERVER_HOST="zabbix-mysql" \
-e MYSQL_DATABASE="zabbix" \
-e MYSQL_USER="zabbix" \
-e MYSQL_PASSWORD="zabbix123" \
-e MYSQL_ROOT_PASSWORD="root123" \
-e ZBX_JAVAGATEWAY="zabbix-java-gateway" \
-d zabbix/zabbix-server-mysql:ubuntu-5.4-latest
docker run -it -p 80:8080 \
--name zabbix-web-nginx-mysql \
--network zabbix_net \
--restart=always \
-v /etc/localtime:/etc/localtime \
-e DB_SERVER_HOST="zabbix-mysql" \
-e MYSQL_DATABASE="zabbix" \
-e MYSQL_USER="zabbix" \
-e MYSQL_PASSWORD="zabbix123" \
-e MYSQL_ROOT_PASSWORD="root123" \
-e ZBX_SERVER_HOST="zabbix-server-mysql" \
-d zabbix/zabbix-web-nginx-mysql:ubuntu-5.4-latest
哈哈哈哈 成功✅✅✅
docker exec -it --user root zabbix-server-mysql bash
get 新技能✅