2020年10月24日土曜日

Simple installation of Zabbix Dockers on Centos8(MySQL&Postgres)

★Just paste it.

そのまま貼り付けてください。

setenforce 0

systemctl stop firewalld

systemctl disable firewalld

if [ -e "/etc/selinux/config" ];then

    sed -i -e "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config

fi

dnf install -y wget

dnf install -y git

dnf remove -y containerd.io

dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

dnf install -y docker-ce docker-ce-cli

systemctl start docker

systemctl enable docker


wget https://github.com/docker/compose/releases/download/1.27.4/docker-compose-Linux-x86_64

mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose

chmod +x /usr/local/bin/docker-compose


cd /opt/

git clone https://github.com/zabbix/zabbix-docker.git

cd zabbix-docker

wget https://raw.githubusercontent.com/naiggy/zabbix_docker/master/docker-compose-mysql.yaml

wget https://raw.githubusercontent.com/naiggy/zabbix_docker/master/docker-compose-postgresql.yaml

##zabbix-server, zabbix-apache-web, zabbix-agent, mysql

mv docker-compose-mysql.yaml docker-compose.yaml

##zabbix-server, zabbix-apache-web, zabbix-agent, postgresql

## mv docker-compose-postgresql.yaml docker-compose.yaml

docker-compose pull

docker-compose up -d

docker-compose ps


0 件のコメント: