728x90
반응형
1. zabbix 설치
#timedatectl set-timezone Asia/Seoul
#rpm -Uvh https://repo.zabbix.com/zabbix/4.5/rhel/7/x86_64/zabbix-release-4.5-2.el7.noarch.rpm
#yum clean all
#rpm -Uvh https://rpmfind.net/linux/centos/7.7.1908/extras/x86_64/Packages/centos-release-scl-rh-2-3.el7.centos.noarch.rpm
#rpm -Uvh https://rpmfind.net/linux/centos/7.7.1908/extras/x86_64/Packages/centos-release-scl-2-3.el7.centos.noarch.rpm
#yum install -y zabbix-server-mysql zabbix-agent
#yum install -y mariadb mariadb-server
2. zabbix.repo 수정
#vi /etc/yum.repos.d/zabbix.repo
[zabbix-deprecated]
...
enabled=1
...
#yum install -y zabbix-web-mysql-scl zabbix-apache-conf-scl\
#systemctl start mariadb
3. DB 설정
#mysql
>create database zabbix character set utf8 collate utf8_bin;
>grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';
>quit;
#zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
#echo php_value[date.timezone] = `timedatectl | grep "Time zone" | awk '{print $3}'` >> /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
4. zabbix_server.conf 수정
#vi /etc/zabbix/zabbix_server.conf
DBPassword=zabbix
#systemctl restart zabbix-server zabbix-agent httpd rh-php72-php-fpm
#systemctl enable zabbix-server zabbix-agent httpd rh-php72-php-fpm mariadb
출처: <https://cafe.naver.com/ArticleRead.nhn?clubid=24738131&articleid=1984&referrerAllArticles=true>
728x90
반응형
'Zabbix' 카테고리의 다른 글
Zabbix Source 설치 (0) | 2020.11.04 |
---|---|
Zabbix Agent 설치 및 Host 등록 (0) | 2020.11.03 |
Zabbix 패키지 설치 (0) | 2020.11.03 |
Zabbix 운영간 오류 정리 (0) | 2020.10.31 |
Zabbix Agent 소스 설치 (0) | 2020.10.15 |