CentOS7 zabbix ¼³Ä¡

   Á¶È¸ 7684   Ãßõ 1    

https://www.ehostidc.co.kr/ (433)
https://www.aiocp.co.kr/host/inqry/forInsertContact.do?goMenuNo=11000¡¦ (431)

1-1) 패키지 설치

[root@localhost ~]# yum --enablerepo=remi-safe -y install php72-php php72-php-mysqlnd php72-php-gd php72-php-xml php72-php-bcmath php72-php-ldap


1-2) 패키지 설치

[root@localhost ~]# yum -y install http://repo.zabbix.com/zabbix/4.2/rhel/7/x86_64/zabbix-release-4.2-1.el7.noarch.rpm


2) zabbix 설치

[root@localhost ~]# yum -y install zabbix-get zabbix-server-mysql zabbix-web-mysql zabbix-agent

 

3) DB생성

[root@localhost ~]# mysql -u root –p MariaDB [(none)]> create database zabbix;

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'localhost' identified by 'Password';

MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@'%' identified by 'Password'; 

MariaDB [(none)]> SET GLOBAL innodb_strict_mode = 0;

MariaDB [(none)]> flush privileges;

 

4) DB덮어쓰기 (이미 완료된 상태라 gz파일없음)

[root@localhost ~]# cd  /usr/share/doc/zabbix-server-mysql-4.2.8/ 

[root@localhost zabbix-server-mysql-4.2.8]# gzip  -d  create.sql.gz 

[root@localhost zabbix-server-mysql-4.2.8]# mysql -u root -p zabbix < create.sql

 

5) zabbix_server 설정

DBHost=localhost #line 91

DBPassword=Password #line 124

 

6) 방화벽 설정 (이미 설정이 되어있는 상태)

[root@localhost ~]# firewall-cmd --add-service={http,https} –permanent 

[root@localhost ~]# firewall-cmd --add-port={10051/tcp,10050/tcp} –permanent 

[root@localhost ~]# firewall-cmd --reload

 

7) zabbix_agentd 설정 및 서비스 시작

[root@localhost ~]# vi /etc/zabbix/zabbix_agentd.conf 

Server=61.14.211.34 #line 98

ServerActive=61.14.211.34 #line 139 

[root@localhost ~]# systemctl start zabbix-agent [root@localhost ~]# systemctl enable zabbix-agent

 

8) php ini 수정 및 httpd 재시작

max_execution_time = 300 #line 385 

post_max_size = 16M #line 674 max_input_time = 300 #line 395 

date.timezone = Asia/Seoul #line 904

[root@localhost ~]# systemctl restart httpd


https://www.aiocp.co.kr/ ( 딥러닝,머신러닝 서버 판매 ,컨설팅) https://bigbangcloud.co.kr/ ( GPU 클라우드 서비스) ::: AI 서버의 모든것 ::: 인공지능의 시작~ (주)이호스트ICT


Á¦¸ñPage 7/28
2021-11   16460   µö·¯´×¼­¹ö
2021-11   10036   µö·¯´×¼­¹ö
2021-11   9674   µö·¯´×¼­¹ö
2021-11   6331   ¹ÚÇö¹®
2021-10   8468   ¼ÛÁÖȯ
2021-10   7912   µö·¯´×¼­¹ö
2021-10   15043   ½ºÄµl¹ÎÇö±â
2021-09   19275   µö·¯´×¼­¹ö
2021-09   10386   µö·¯´×¼­¹ö
2021-08   10599   µö·¯´×¼­¹ö
2021-08   7637   µö·¯´×¼­¹ö
2021-08   17255   ½ºÄµl¹ÎÇö±â
2021-07   9119   ¹Ú¹®Çü
2021-07   10238   µö·¯´×¼­¹ö
2021-07   13223   µö·¯´×¼­¹ö
2021-07   16038   ±¸Â÷´Ï
2021-06   7685   µö·¯´×¼­¹ö
2021-06   21482   µö·¯´×¼­¹ö
2021-06   7196   Sikieiki
2021-06   7562   È­Á¤Å¥»ï