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
上一篇:tf.nn.softmax_cross_entropy_with_logits的用法


下一篇:卷积神经网络系列之softmax,softmax loss和cross entropy的讲解