zoukankan      html  css  js  c++  java
  • podman方式安装zabbix

    # 配置podman国内镜像
    /etc/containers/registries.conf
    
    unqualified-search-registries = ['docker.io', 'k8s.gcr.io', 'quay.io']
    
    [[registry]]
    prefix = "docker.io"
    location = "docker.mirrors.ustc.edu.cn"
    
    [[registry.mirror]]
    prefix = "docker.io"
    location = "reg-mirror.qiniu.com"
    
    [[registry.mirror]]
    prefix = "docker.io"
    location = "hub-mirror.c.163.com"
    
    [[registry]]
    prefix = "k8s.gcr.io"
    location = "registry.aliyuncs.com/google_containers"
    
    [[registry]]
    prefix = "quay.io"
    location = "quay-mirror.qiniu.com"
    
    podman pod create --name zabbix -p 8080:8080 -p 10051:10051 -p 10052:10052 -p 3306:3306 -p 3000:3000
    
    podman run --pod=zabbix --name zabbix-mysql -t 
    -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="abcd1234" -e MYSQL_ROOT_PASSWORD="abcd1234" 
    -v /data/zabbix/mysql:/var/lib/mysql 
    --restart unless-stopped 
    -d mysql:latest 
    --character-set-server=utf8 --collation-server=utf8_bin --default-authentication-plugin=mysql_native_password
    
    podman run --pod=zabbix --name zabbix-server -t 
    -e DB_SERVER_HOST="127.0.0.1" -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="abcd1234" -e MYSQL_ROOT_PASSWORD="abcd1234" 
    --restart unless-stopped 
    -d zabbix/zabbix-server-mysql:latest
    
    podman run --pod=zabbix --name zabbix-web -t 
    -e DB_SERVER_HOST="127.0.0.1" -e DB_SERVER_PORT=3306 -e MYSQL_DATABASE="zabbix" -e MYSQL_USER="zabbix" -e MYSQL_PASSWORD="abcd1234" -e MYSQL_ROOT_PASSWORD="abcd1234" 
    -e ZBX_SERVER_HOST="127.0.0.1" -e ZBX_SERVER_PORT=10051 -e PHP_TZ="Asia/Shanghai" 
    --restart unless-stopped 
    -d zabbix/zabbix-web-nginx-mysql:latest
    
    podman run --pod=zabbix --name zabbix-agent 
    -e ZBX_SERVER_HOST="127.0.0.1,localhost" 
    --restart=always 
    -d zabbix/zabbix-agent:latest
    
    podman run --pod=zabbix --name zabbix-grafana 
    --restart unless-stopped 
    -d grafana/grafana
    
    grafana-cli plugins install alexanderzobnin-zabbix-app
    http://127.0.0.1:8080/api_jsonrpc.php  Admin/zabbix
    
  • 相关阅读:
    面向对象实验 ——(二)类与对象
    [LeetCode] 957. Prison Cells After N Days
    [LeetCode] 32. Longest Valid Parentheses
    [LeetCode] 120. Triangle
    [LeetCode] 441. Arranging Coins
    [LeetCode] 79. Word Search
    [LeetCode] 1143. Longest Common Subsequence
    [LeetCode] 718. Maximum Length of Repeated Subarray
    [LeetCode] 332. Reconstruct Itinerary
    [LeetCode] 279. Perfect Squares
  • 原文地址:https://www.cnblogs.com/liujitao79/p/14733662.html
Copyright © 2011-2022 走看看