In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1 install mariadb database 1. Configure Ali Cloud Source reference Link: https://developer.aliyun.com/mirror2. Use Ali Cloud Source to install mariadbdbf-y install mariadb-server mariadb-client1.1. 1 use systemctl for mariadb service management systemctl start mariadb # start MariaDBsystemctl stop mariadb # stop MariaDBsystemctl restart mariadb # restart MariaDBsystemctl enable mariadb # setup boot 1.1.2 initialize mariadbmysql_secure_installation1.2 configuration zabbix repository [root@m01] # rpm-Uvh https://repo.zabbix.com/zabbix/4.5/rhel/8/x86_64/zabbix- Release-4.5-2.el8.noarch.rpm or [root@m01 ~] # rpm-Uvh https://mirrors.tuna.tsinghua.edu.cn/zabbix/zabbix/4.5/rhel/8/x86_64/zabbix-release-4.5-2.el8.noarch.rpm[root@m01 ~] # dnf clean all1.3 installs the Zabbix package And Mysql, front-end, agent dnf-y install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-agent if the following error occurs Dnf-y install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-agentLast metadata expiration check: 0:00:45 ago on Fri 13 Mar 2020 04:29:48 PM CST.Error: Problem: cannot install the best candidate for the job-nothing provides libssh3.so.1 () (64bit) needed by zabbix-server-mysql-5.0.0-0.2alpha2.el8.x86_64 (try to add'--skip-broken' to skip uninstallable packages or'--nobest' to use not only Best candidate packages) workaround: manually install libssh3 dnf-y install http://mirror.centos.org/centos/8.0.1905/AppStream/x86_64/os/Packages/libssh3-1.8.0-8.module_el8.0.0+189+f9babebb.1.x86_64.rp
Note: the nginx package is not available in the official repository. Can be found in the epel database.
Dnf-y install epel-release1.4 creates Zabbix database and user [root@centos8 ~] # mysql-u root-p Enter password: MariaDB [(none)] > create database zabbix character set utf8 collate utf8_bin;Query OK, 1 row affected (0.000 sec) MariaDB [(none)] > grant all privileges on zabbix.* to zabbix@'%' identified by 'zabbix';Query OK, 0 rows affected (0.008 sec) MariaDB [(none)] > flush privileges Query OK, 0 rows affected (0.008 sec) 1.5 Import Zabbix data into the database [root@centos8 ~] # zcat / usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql-u zabbix- p zabbixEnter password:1.6 configure Zabbix server database
Edit / etc/zabbix/zabbix_server.conf file to modify database configuration
[root@centos8 ~] # cat / etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbix1.7 configure php for zabbix front end
Edit / etc/nginx/conf.d/zabbix.conf, uncomment and set the 'listen' and' server_name' directives
Listen 80th serverroomname 192.168.0.111; enter the configuration file / etc/nginx/nginx.conf and comment out all the code blocks of server
Edit the file / etc/php-fpm.d/zabbix.conf, uncomment and set the correct time zone
Php_ value [date.timezone] = Asia/Shanghai
Note: firewalls firewalld and selinux** must be turned off (very important) * *
1.8 start the Zabbix service process and join the boot self-startup [root@centos8 ~] # systemctl restart zabbix-server zabbix-agent nginx php-fpm [root@centos8 ~] # systemctl enable zabbix-server zabbix-agent nginx php-fpm2 WEB installation step 2.1 browser Open address: http://192.168.0.111/setup.php2.2 configuration zabbix connect to the database
2.3 Information for configuring the ZabbixServer server
2.4 confirmation check
2.5 installation succeeded
Prompt that the Zabbix front end has been successfully installed. The configuration file / etc/zabbix/web/zabbix.conf.php is created.
Log in to zabbix
Default login zabbixweb user name: Admin, password: zabbix
2.7 adjust the character set to Chinese and fix Chinese garbled
If the Chinese font package is not installed, install "langpacks-zh_CN.noarch" using dnf
The solution to fix Chinese garbled code:
Install fonts and replace existing fonts
[root@centos8] # dnf-y install wqy-microhei-fonts [root@centos8] # cp / usr/share/fonts/wqy-microhei/wqy-microhei.ttc / usr/share/zabbix/assets/fonts/graphfont.ttf3. Install zabbix Monitoring Host 3.1 install zabbix-agent
The monitoring host I use here is ubuntu18.04.
Root@ubuntu:~# apt-get install zabbix-agent3.2 configure zabbix-agentroot@ubuntu:~# vim / etc/zabbix/zabbix_agentd.confPidFile=/var/run/zabbix/zabbix_agentd.pidLogFile=/var/log/zabbix/zabbix_agentd.logLogFileSize=0Server=192.168.0.111ServerActive=192.168.0.111Hostname=Zabbix serverInclude=/etc/zabbix/zabbix_agentd.d/*.conf3.3 to start zabbix-agent and check root@ubuntu:~# systemctl start zabbix-agent.serviceroot@ubuntu:~# systemctl enable zabbix-agent .serviceroot @ ubuntu:~# netstat-ntlp | grep 10050tcp 00 0.0.0.0 grep 10050tcp 10050 0.0.0.0 LISTEN 5662/zabbix_agentd tcp6 00: 10050:: * LISTEN 5662/zabbix_agentd 3.4 zabbix-web interface Add Host
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.