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
    
  • 相关阅读:
    VB中String的用法及原理
    SQL中的left outer join,inner join,right outer join用法详解
    SqlServer,Oracle 常用函数比较
    sql 使用视图的好处
    修改数据库的兼容级别
    sql server2008修改登录名下的默认架构名
    SQL事务回滚 ADO BeginTrans, CommitTran 以及 RollbackTrans 方法
    sql事务(Transaction)用法介绍及回滚实例
    SQL Server更新表(用一张表的数据更新另一张表的数据)
    VB如何连接SQL Server数据库
  • 原文地址:https://www.cnblogs.com/liujitao79/p/14733662.html
Copyright © 2011-2022 走看看