标签:清空 rar mys 导出 asi shang 关闭 sha linu
ZABBIX FOR DOCKER导入镜像
docker load -i mysql57.tar
docker load -i zabbix-agent.tar
docker load -i zabbix-server-mysql.tar
docker load -i zabbix-web-nginx-mysql.tar
docker images
zabbix/zabbix-agent latest 71bfb10973e4 8 days ago 16.4MB
zabbix/zabbix-server-mysql latest 163513d0c304 8 days ago 67.3MB
zabbix/zabbix-web-nginx-mysql latest 64f907915a01 8 days ago 162MB
导出镜像
docker save mysql:5.7 -o mysql57.tar
docker pull mysql:5.7
docker run -d --rm --name zabbix-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7
docker inspect zabbix-mysql
docker run -d --rm --name zabbix-server -e DB_SERVER_HOST="172.17.0.2" -e MYSQL_USER="root" -e MYSQL_PASSWORD="123456" -p10051:10051 zabbix/zabbix-server-mysql
docker run -d --rm --name zabbix-web -e DB_SERVER_HOST="172.17.0.2" -e MYSQL_USER="root" -e MYSQL_PASSWORD="123456" -e ZBX_SERVER_HOST="172.17.0.3" -e PHP_TZ="Asia/Shanghai" -p80:8080 zabbix/zabbix-web-nginx-mysql
http://10.211.55.66/
user:Admin
passwd:zabbix
docker run -d --rm --name zabbix-agent -e ZBX_HOSTNAME="Zabbix server" -e ZBX_SERVER_HOST="172.17.0.3" -p10050:10050 zabbix/zabbix-agent
提前下载:
wget https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
rpm -ivh zabbix-release-5.0-1.el7.noarch.rpm
yum -y install zabbix-agent
vi /etc/zabbix/zabbix_agentd.conf
修改117行
![image-20201023110129984](/Users/Shadow/Library/Application Support/typora-user-images/image-20201023110129984.png)
Server=10.211.55.66 #原来是Server=127.0.0.1 docker 虚拟机的IP而非容器IP
![image-20201023105947635](/Users/Shadow/Library/Application Support/typora-user-images/image-20201023105947635.png)
![image-20201023110540788](/Users/Shadow/Library/Application Support/typora-user-images/image-20201023110540788.png)
注意:agent 提前关闭selinux 、清空iptables规则
server端要求先清提前关闭selinux 、清空iptables规则
标签:清空 rar mys 导出 asi shang 关闭 sha linu
原文地址:https://blog.51cto.com/slapping/2543063