Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Deploy rpm netless installation Zabbix-3.4 service

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Hi downloaded a lot of dependency packages in Nginx&Httpd Php-fpm Zabbix Mysql through previous experiments, which was troublesome, so the editor came up with a good idea!

Environment: a host with a network, and CVMs from various manufacturers can also

Install download: yum install download-y; (general systems are already installed)

How to use 1.Download

1.yum install-downloadonly-downloaddir= (path)

two。 Example: yum install-- downloadonly-- downloaddir=/opt/zabbix/

two。 Deploy Zabbix

1. Hosts with a network download yum sources and dependency packages

Rpm-Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm # loads the source of zabbix

two。 Install the Zabbix-3.4-rpm package

Yum install-downloadonly-downloaddir=/opt/zabbix/ zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

3.cd / opt/zabbix/ # copy the rpm package from your down to your "no network host" path

4. Execute the following command

Rpm-ivh * .rpm-- force-- nodeps # keep up-- force-- nodeps ignore dependencies

5. Start the service systemctl start zabbix-server zabbix-agent

3. Deploy Php-fpm

Install rpm source; rpm-Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm rpm-Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Install the Php-fpm-5.6-rpm package

Yum install-downloadonly-downloaddir=/opt/php-fpm php56w.x86_64 php56w-cli.x86_64 php56w-common.x86_64 php56w-gd.x86_64 php56w-ldap.x86_64 php56w-mbstring.x86_64 php56w-mcrypt.x86_64 php56w-mysql.x86_64 php56w-pdo.x86_64

4.yum install-downloadonly-downloaddir=/opt/php-fpm php56w-fpm

Cd / opt/php-fpm/ # copy the rpm package from your down to your "no network host" path

Start php-fpm; systemctl start php-fpm

4. Deploy the mysql database

1. Install the mysql-5.6-rpm package

2.yum install-downloadonly-downloaddir=/opt/mysql mariadb-server mariadb

3.cd / opt/php-fpm/ # copy the rpm package from your down to your "no network host" path

4. Start the database; systemctl start mariadb

5. Database operation part

The default installed root password is blank. The following command changes the password

Mysqladmin-u root password "password" # change password to password

Log in to the database, mysql-uroot-p

The password for creating a zabbix database zabbix database is zabbix

Create database zabbix character set utf8 collate utf8_bin; # create the character set given to utf8 by the zabbix database

Grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix'; # change the password of zabbix to zabbix

Import data; zcat / usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql-uzabbix-p zabbix

Configure the database settings of zabbix; vim / etc/zabbix/zabbix_server.conf mainly configures the user name, library name, password, port, etc., of the database. Other settings can also be configured for installation.

Start zabbix and set boot up

Systemctl enable zabbix-server systemctl start zabbix-server

Systemctl enable zabbix-agent systemctl start zabbix-agent

Edit the Zabbix front-end PHP configuration, mainly to change the time zone; vim / etc/httpd/conf.d/zabbix.conf; modify this line: php_value date.timezone Asia/Shanghai

Start httpd and set boot; # there is no need to install rpm here, because the previous dependencies include httpd starting directly; systemctl start httpd; systemctl enable httpd

Browser access and configuration; http://IP/zabbix/

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report