728x90
반응형
SMALL
apm 설치 apache 2.4 , mariadb 10.11 ,php 8.0
# yum update -y
# yum upgrade -y
# yum install httpd*
# curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.11"
# ls -l /etc/yum.repos.d/mariadb.repo
# yum install -y MariaDB-client MariaDB-connect-engine mariadb-devel mariadb-server
# mysql -V
# systemctl enable mariadb
# systemctl start mariadb
# systemctl status mariadb
# vi /etc/my.cnf.d/server.cnf << 설정은 여기서
# sudo dnf install epel-release
# sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm
# sudo dnf module list php
# sudo dnf module reset php
# sudo dnf module enable php:remi-8.0
# sudo dnf install php php-cli php-curl php-mysqlnd php-gd php-opcache php-zip php-intl
# php -v
zabbix6.0 설치
# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-1.el8.noarch.rpm
# dnf clean all
# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
# mysql -p
# MariaDB [(none)]> create database zabbix character set utf8mb4 collate utf8mb4_bin;
Query OK, 1 row affected (0.001 sec)
# MariaDB [(none)]> create user zabbix@localhost identified by 'passwd';
Query OK, 0 rows affected (0.002 sec)
# MariaDB [(none)]> grant all privileges on zabbix.* to zabbix@localhost;
Query OK, 0 rows affected (0.003 sec)
# MariaDB [(none)]> use mysql;
# MariaDB [mysql]> select user,host from user;
# MariaDB [mysql]> select user,host from user;
+-------------+---------------------------+
| User | Host |
+-------------+---------------------------+
| | localhost |
| mariadb.sys | localhost |
| mysql | localhost |
| root | localhost |
| zabbix | localhost |
+-------------+---------------------------+
# zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix
Enter password:
# systemctl status zabbix-server.service
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2023-12-28 11:03:47 KST; 18s ago
Process: 224651 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 224656 (zabbix_server)
Tasks: 1 (limit: 49028)
Memory: 2.5M
CGroup: /system.slice/zabbix-server.service
└─224656 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
# netstat -nltp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 55647/sshd
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 224659/zabbix_agent
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 222951/mariadbd
tcp6 0 0 :::80 :::* LISTEN 224655/httpd
tcp6 0 0 :::22 :::* LISTEN 55647/sshd
tcp6 0 0 :::10050 :::* LISTEN 224659/zabbix_agent
tcp6 0 0 :::3306 :::* LISTEN 222951/mariadbd
http:ip/zabbix
728x90
반응형
LIST
'Linux&Ubuntu > zabbix' 카테고리의 다른 글
windows zabbix-agent 설치 (0) | 2024.02.27 |
---|---|
zabbix_telegram사용하기 (0) | 2024.02.27 |
zabbix 6.0 Rocky 9 (0) | 2024.02.16 |
zabbix agent 설치 (0) | 2024.02.02 |
zabbix6.0 접속하기 (0) | 2023.12.28 |