Use the for loop to import the zabbix image into the container for n in `ls *.tar.gz`;do docker load -i $n ;done Run zabbix-server using docker docker run --name mysql-server -t \ -e MYSQL_DATABASE="zabbix" \ -e MYSQL_USER="zabbix" \ -e MYSQL_PASSWORD="zabbix_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ -d mysql:5.7 \ --character-set-server=utf8 --collation-server=utf8_bin docker run --name zabbix-java-gateway -t \ -d zabbix/zabbix-java-gateway:latest 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_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ -e ZBX_JAVAGATEWAY="zabbix-java-gateway" \ --link mysql-server:mysql \ --link zabbix-java-gateway:zabbix-java-gateway \ -p 10051:10051 \ -d zabbix/zabbix-server-mysql:latest 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_pwd" \ -e MYSQL_ROOT_PASSWORD="root_pwd" \ --link mysql-server:mysql \ --link zabbix-server-mysql:zabbix-server \ -p 80:80 \ -d zabbix/zabbix-web-nginx-mysql:latest Page visits: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: An article teaches you how to use js to achieve the barrage effect
>>: CentOS7.5 installation of MySQL8.0.19 tutorial detailed instructions
Part 1 Overview of SSH Port Forwarding When you a...
After installing Navicat The following error may ...
When the same function and HTML code are used mul...
A jQuery plugin every day - stacked menu, for you...
When using a cloud server, we sometimes connect t...
In HTML, common URLs are represented in a variety ...
In daily development, database addition, deletion...
1. Varnish Overview 1. Introduction to Varnish Va...
Table of contents Preface Actual Combat 1. No loc...
Table of contents Configuration nfs server (nfs.s...
Table of contents 1. Brief Overview 2. JSON basic...
Table of contents 2. Field concatenation 2. Give ...
Links to the current page. ------------------- Com...
If the program service is deployed using k8s inte...
In the /etc/my.conf file, add the following line ...