亚州城ca88手机版_亚洲城官方网站|www.yzc889.com

热门关键词: 亚州城ca88手机版,亚洲城官方网站,www.yzc889.com

yzc577亚洲城RedHat 七.一 下安装 Zabbix监察和控制程

2019-05-06 22:51栏目:亚州城ca88手机版
TAG:

RedHat 七.一 安装 Zabbix 监控程序详解(适合对linux初级用户)2017-0伍-02

RedHat 柒.一 下安装 Zabbix监察和控制程序详解(适合linux初级用户),redhatzabbix

RedHat 7.一 安装 Zabbix 监察和控制程序详解(适合对linux初级用户)2017-05-0二

安装步骤:

1.zabbix需求安装LAMP架构

2.安装zabbix服务

3.初始化zabbix系统

 

壹.设置景况:VMware虚拟

1 2 3 4 [[email protected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.1 (Maipo) [[email protected] ~]# uname -a Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

=================================行吗,上面先导安装LAMP架构============================

一.为了便利获取安装使用,首先配置YUM服务,RedHat 暗中认可YUM已设置,上边大家直接配置YUM本地源和网络源就可以。

   [[email protected] ~]# mount /dev/cdrom /mnt/cdrom
     mount: /dev/sr0 is write-protected, mounting read-only 

二.查看yum是还是不是安装;(以下标示已安装) 

[[email protected] ~]# rpm -qa |grep yum*
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-125.el7.noarch
yum-rhn-plugin-2.0.1-5.el7.noarch
keyutils-libs-1.5.8-3.el7.x86_64
python-pyudev-0.15-6.el7.noarch

三.配置yum本地源和互联网源;

[[email protected] yum.repos.d]# mkdir  repobak  新建3个备份文件夹

[[email protected] yum.repos.d]#mv *  repobak    讲yum.repos.d 文件夹内文件备份到repobak内

[[email protected] yum.repos.d]#vi zabbix.repo    新建贰个zabbix.repo YUM源文件,增添如下:

==============zabbix.repo文件=======================

[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
gpgcheck=1
[waiwang]
name=waiwang
baseurl=
enabled=1
gpgcheck=0
[extras]
name=extras
baseurl=
enabled=1
gpgcheck=0

=================END===========================

4.清除YUM缓存文件

[[email protected] ~]# yum clean all
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: extras waiwang zabbix zabbix-non-supported
Cleaning up everything

5.创制YUM缓存文件

[[email protected] ~]# yum makecache
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
extras | 3.4 kB 00:00
waiwang | 3.6 kB 00:00
zabbix | 951 B 00:00
zabbix-non-supported | 951 B 00:00
(1/8): extras/prestodelta | 99 kB 00:00
(2/8): extras/primary_db | 151 kB 00:00
(3/8): waiwang/group_gz | 155 kB 00:00
(4/8): extras/other_db | 640 kB 00:01
(5/8): extras/filelists_db | 770 kB 00:02
(6/8): waiwang/filelists_db | 6.6 MB 00:02
(7/8): waiwang/other_db | 2.4 MB 00:00
(8/8): waiwang/primary_db | 5.6 MB 00:03
(1/6): zabbix/x86_64/primary | 13 kB 00:00
(2/6): zabbix/x86_64/filelists | 43 kB 00:00
(3/6): zabbix/x86_64/other | 7.7 kB 00:00
(4/6): zabbix-non-supported/x86_64/filelists | 660 B 00:00
(5/6): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00
(6/6): zabbix-non-supported/x86_64/other | 1.5 kB 00:00
zabbix 92/92
zabbix 92/92
zabbix 92/92
zabbix-non-supported 4/4
zabbix-non-supported 4/4
zabbix-non-supported 4/4
Metadata Cache Created

6.[[email protected] ~]# yum  list  能够查看YUM获取到的文书列表

7.关闭firewall:(vi/etc/selinux/)

[[email protected] ~]#systemctl stop firewalld.service #停止firewall

[[email protected] ~]#systemctl disable firewalld.service #明令禁止firewall开机运维

[[email protected] ~]# vi /etc/selinux/config  将selinux=enforcing  改为 selinux=disabled 即可。

[[email protected] ~]# sestatus 查看selinux状态

 

=======================================结束YUM情状已经计划截至=======================

一.初始安装LAMP架构

1.安装Apache

[[email protected] ~]#yum install httpd #故事提醒,输入Y安装就能够成功安装

[[email protected] ~]#systemctl start httpd.service #启动apache

[[email protected] ~]#systemctl stop httpd.service #停止apache

[[email protected] ~]#systemctl restart httpd.service #重启apache

[[email protected] ~]#systemctl enable httpd.service #设置apache开机运转

2.安装MariaDB

本田CR-VHEL 7.0中,已经运用玛丽亚DB取代了MySQL数据库

2.1安装MariaDB

[[email protected] ~]#yum install mariadb mariadb-server #掌握是或不是要设置,输入Y就可以自行安装,直到安装完结

[[email protected] ~]#systemctl start mariadb.service #启动MariaDB

[[email protected] ~]#systemctl stop mariadb.service #停止MariaDB

[[email protected] ~]#systemctl restart mariadb.service #重启MariaDB

[[email protected] ~]#systemctl enable mariadb.service #设置开机运营

3.安装PHP

[[email protected] ~]#yum install php #传闻提醒输入Y直到安装实现

4.安装PHP组件,使PHP支持 MariaDB

[[email protected] ~]#yum install php-mysql php-gd libjpeg*  php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash

#此间接选举拔上述安装包举行安装,依据提示输入Y回车

[[email protected] ~]#systemctl restart mariadb.service #重启MariaDB

[[email protected] ~]#systemctl restart httpd.service #重启apache

5.再度启航服务

[[email protected] ~]#systemctl restart mariadb.service #重启MariaDB

[[email protected] ~]#systemctl restart httpd.service #重启apache

6.登录  测试httpd服务是不是健康。

=========================LAMP架构已经搭建达成==========================================

二.zabbix服务的设置和安排

一装置存款和储蓄库配置文件 [[email protected] ~]#rpm -ivh 2.安装zabbix程序 [[email protected] ~]#yum install zabbix-server-mysql zabbix-web-mysql zabbix-get zabbix-agent 安装zabbix,提醒点"y"就能够变成安装。 [[email protected] ~]#rpm -ql zabbix-server-mysql  验证安装文件

/etc/logrotate.d/zabbix-server
/etc/zabbix/zabbix_server.conf
/usr/lib/systemd/system/zabbix-server.service
/usr/lib/tmpfiles.d/zabbix-server.conf
/usr/lib/zabbix/alertscripts
/usr/lib/zabbix/externalscripts
/usr/sbin/zabbix_server_mysql
/usr/share/doc/zabbix-server-mysql-3.2.5
/usr/share/doc/zabbix-server-mysql-3.2.5/AUTHORS
/usr/share/doc/zabbix-server-mysql-3.2.5/COPYING
/usr/share/doc/zabbix-server-mysql-3.2.5/ChangeLog
/usr/share/doc/zabbix-server-mysql-3.2.5/NEWS
/usr/share/doc/zabbix-server-mysql-3.2.5/README
/usr/share/doc/zabbix-server-mysql-3.2.5/create.sql.gz
/usr/share/man/man8/zabbix_server.8.gz
/var/log/zabbix
/var/run/zabbix

3.初始化mariadb数据库 [[email protected] ~]#mysql -u root  yzc577亚洲城 1

 

肆..导入zabbix早先进模范式和数量

[[email protected] ~]#zcat /usr/share/doc/zabbix-server-mysql-3.2.1/create.sql.gz | mysql -uroot zabbix  [[email protected] ~]#mysql -u root  验证数据是或不是导入成功

MariaDB [zabbix]>use zabbix;

Database changed
MariaDB [zabbix]> show tables;
----------------------------
| Tables_in_zabbix |
----------------------------
| acknowledges |
| actions |
| alerts |
| application_discovery |
| application_prototype |
| application_template |
| applications |
| auditlog |

5.配备zabbix配置文件,修改数据库密码为zabbix

[[email protected] ~]#vi /etc/zabbix/zabbix_server.conf DBPassword=zabbix   陆.布局Http配置文件,修改时区为澳洲香岛 # vi /etc/httpd/conf.d/zabbix.conf php_value date.timezone Asia/Shanghai   柒.开发银行zabbix-server,并设置开机自启 #systemctl start zabbix-server #systemctl enable zabbix-server 注意: 1假如zabbixserver无法运维,则必要安装trousers扶助包。 #yum install trousers 贰假如报pid错误 要求做软连接/var/run > /run #ln -s /var/run /run   8.开发银行http,并安装开机自启 #systemctl start httpd #systemctl enable httpd   九.起动zabbix-agent,并设置开机自启 #systemctl start zabbix-agent #systemctl enable zabbix-agent   10应用IE登录zabbix图形分界面举办安装。 地址: 账户:admin   密码:zabbix   1一. zabbix图形分界面包车型大巴安插。图形分界面配置互连网有多数,能够自动查询,此处省略。。。。。。。。。。

 

7.1 下安装 Zabbix监察和控制程序详解(适合linux初级用户),redhatzabbix RedHat 7.一 安装 Zabbix 监控程序详解(适合对linux初级用户)2017-05-0二 安装...

centos7yum安装zabbix
1、准备搭建意况:
1、系统:CentOS7
2、暗中认可有利用linux服务器的基本功,会动用一些简易的吩咐和vim等一声令下。
2、安装进度:
一、首先查看SELinux状态
[root@localhost ~]# getenforce
Enforcing
三、关闭SELinux
一、修改SELinux状态,这么些修改是重启后永恒生效
[root@localhost ~]# vim /etc/selinux/config
在文书中得以见到那1行
SELINUX=enforcing
把前面包车型客车参数修改为disabled
SELinux=disabled
-----------------分割线,上边说下那四个参数什么意义-------------------------
一)、enforcing:开启防火墙
二)、permissive:关闭防火墙,不过会时有发生相应的日志
3)、disabled:通透到底关闭防火墙,没日志暴发
-----------------上边回归正题----------------------------------------------------------
二、未来在不关机状态下关闭S埃利nux,这几个在重启之后会失灵,不过当前有效
[root@localhost ~]# setenforce 0
肆、关闭防火墙
四、永世关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.se
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.servic
伍、当前条件关闭防火墙
[root@localhost ~]# systemctl stop firewalld.service
5、安装数据库
1、安装MariaDB数据库
[root@localhost ~]# yum -y install mariadb-server mariadb-devel
----------------------分割线,上面讲下玛丽亚DB和MySQL的滥觞--------------------
MariaDB数据库管理连串是MySQL的3个分段,主要由开源社区在保险,选用GPL授权许可。开垦那些分支的来由之1是:仿宋公司收购了MySQL后,有将MySQL闭源的秘密风险,由此社区运用分段的不二秘技来规避这些危机。 玛丽亚DB的指标是一点壹滴包容MySQL,包蕴API和命令行,使之能轻易产生MySQL的代替品。在蕴藏引擎方面,十.0.九版起利用XtraDB(名称代号为Aria(塞尔维亚语:Aria (storage engine)))来代表MySQL的InnoDB。 玛丽亚DB由MySQL的祖师迈克尔•维德纽斯(意大利语:MichaelWidenius)主导开垦,他早前曾以拾亿美金的价位,将团结成立的公司MySQL AB卖给了SUN,此后,随着SUN被钟鼓文收购,MySQL的全部权也落入Oracle的手中。玛丽亚DB名称来自迈克尔•维德纽斯的闺女玛丽亚(乌Crane语:玛丽亚)的名字。
PS:mariadb-devel是开采的头文件和静态库。
参考链接:


----------------------上面回归正题-----------------------------------------------------
2、开启MariaDB数据库[root@localhost ~]# systemctl start mariadb.service
三、查看玛丽亚DB数据库在经过的气象
[root@localhost ~]# ss -tulnp | grep mysqld
tcp LISTEN 0 50 :3306 :*
----------------------关于ss命令,请查看以下链接--------------------------------------
ss命令能够用来赢得socket总计新闻,它能够来得和netstat类似的剧情。但ss的优势在于它亦可显得越来越多更详实的关于TCP和连接情形的音讯,而且比netstat更便捷更便捷。
ss参数解释:
-t, --tcp 仅显示 TCP套接字(sockets)
-u, --udp 仅显示 UCP套接字(sockets)
-l, --listening 展现监听状态的套接字(sockets)
-n:把服务名称显示成端口号
-p, --processes 展现采纳套接字(socket)的长河
更详尽的一声令下介绍能够利用man来查看系统内的文书档案只怕查看上边这一个链接:

----------------------上边回归正题------------------------------------------------------------
陆、配置数据库
[root@localhost ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 2
Server version: 5.5.52-MariaDB MariaDB Server

设置步骤:

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

1.zabbix需求安装LAMP架构

Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.

2.安装zabbix服务

MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)

3.初始化zabbix系统

MariaDB [(none)]> grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by '123456';
Query OK, 0 rows affected (0.00 sec)

 

MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)

一.安装景况:VMware虚拟

MariaDB [(none)]> exit
Bye
---------------------------说一下下令意思------------------------------------------------------
[root@localhost ~]# mysql
第三次直接进去mysql数据库
MariaDB [(none)]> create database zabbix character set utf8 collate utf8_bin;
create database zabbix是创建zabbix数据库
charcater set utf八是把默许字符集设置为utf8
collate utf8_bin是数据库核查规则
参考链接:

---------------------------上面回归正题---------------------------------------------------------
七、安装zabbix
一、获取并设置zabbix的yum源
[root@localhost ~]#wget
[root@localhost ~]#rpm -ivh
2、生成yum源快速照相,那样能够直接用tab键来补全安装。
yum makecache
3、查看文件:
[root@localhost ~]# yum search zabbix
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

1
2
3
4
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[root@localhost ~]# uname -a
Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Thu Jan 29 18:37:38 EST 2015 x86_64 x86_64 x86_64 GNU/Linux
  • base: ftp.sjtu.edu.cn
  • extras: ftp.sjtu.edu.cn
  • updates: ftp.sjtu.edu.cn
    ========================================================= N/S matched: zabbix ===================================
    pcp-export-zabbix-agent.x86_64 : Module for exporting PCP metrics to Zabbix agent
    zabbix-agent.x86_64 : Zabbix Agent
    zabbix-get.x86_64 : Zabbix Get
    zabbix-java-gateway.x86_64 : Zabbix java gateway
    zabbix-proxy-mysql.x86_64 : Zabbix proxy for MySQL or MariaDB database
    zabbix-proxy-pgsql.x86_64 : Zabbix proxy for PostgreSQL database
    zabbix-proxy-sqlite3.x86_64 : Zabbix proxy for SQLite3 database
    zabbix-release.noarch : Zabbix repository configuration
    zabbix-sender.x86_64 : Zabbix Sender
    zabbix-server-mysql.x86_64 : Zabbix server for MySQL or MariaDB database
    zabbix-server-pgsql.x86_64 : Zabbix server for PostgresSQL database
    zabbix-web.noarch : Zabbix web frontend common package
    zabbix-web-mysql.noarch : Zabbix web frontend for MySQL
    zabbix-web-pgsql.noarch : Zabbix web frontend for PostgreSQL
    zabbix-web-japanese.noarch : Japanese font settings for frontend

    Name and summary matches only, use "search all" for everything.

=================================好啊,上面伊始安装LAMP架构============================

----------------------------------上边说下以上包的用途---------------------------------
zabbix-agent.:zabbix客户端,用来采访客户端各类参数
zabbix-get:zabbix的三个工具,用来检查是不是足以收获服务器音讯(一般服务端要安装)
zabbix-java-gateway:用于监控JMX应用的先后,它把募集到的音讯发送个(那几个看须求安装,我一时没装)
zabbix-proxy:zabbix proxy能够代替zabbix server检索客户端的数额,然后把多少报告给zabbix server,并且在早晚程度上分担了zabbix server的压力。zabbix proxy可以万分便利的贯彻了聚焦式、布满式监察和控制。
zabbix-release:会扭转1个zabbix的yum源,能够直接下载相关软件包。
zabbix-sender:用于发送数据给server可能proxy。
zabbix-web:zabbix要运用web分界面,这些包是用来拍卖Apache和php,mysql等中间的注重性关系。
zabbix-web-mysql:那一个是zabbix前段帮衬mysql的
zabbix-web-japanese:扶助阿尔巴尼亚语
参考资料链接:



-----------------------------------下边回归正题--------------------------------------------
4、采用本人索要的安装包进行设置,作者只选了多少个供给的:
[root@localhost ~]#yum install zabbix-get zabbix-sender zabbix-server-mysql zabbix-web zabbix-agent
5、生成查找快速照相
[root@localhost ~]# updatedb
六、查找create.sql文件地点
[root@localhost ~]# locate create.sql
/usr/share/doc/zabbix-server-mysql-3.2.4/create.sql.gz
/usr/share/doc/zabbix-server-pgsql-3.2.4/create.sql.gz
7、切换到zabbix-server目录
[root@localhost ~]# cd /usr/share/doc/zabbix-server-mysql-3.2.4/
8、查看目录下文件详细音信
[root@localhost zabbix-server-mysql-3.2.4]# ll
total 1896
-rw-r--r--. 1 root root 98 Feb 27 17:22 AUTHORS
-rw-r--r--. 1 root root 742520 Feb 27 17:22 ChangeLog
-rw-r--r--. 1 root root 17990 Feb 27 17:23 COPYING
-rw-r--r--. 1 root root 1161488 Mar 2 22:49 create.sql.gz
-rw-r--r--. 1 root root 52 Feb 27 17:24 NEWS
-rw-r--r--. 1 root root 188 Feb 27 17:22 README
9、解压create.sql.gz那几个文件:
[root@localhost zabbix-server-mysql-3.2.4]# gunzip create.sql.gz
十、把这么些create.sql导入到数据库中,时间可能有点有个别长,多等一会。
[root@localhost zabbix-server-mysql-3.2.4]# mysql -uzabbix -p zabbix < create.sql
11、查找这一个mysql.sock文件路径,记下来,1会要用到:
[root@localhost zabbix-server-mysql-3.2.4]# locate mysql.sock
/var/lib/mysql/mysql.sock
12、修改zabbix_server_conf这些布局文件
[root@localhost zabbix-server-mysql-3.2.4]# vim /etc/zabbix/zabbix_server.conf
找到这一行:

一.为了便于获取安装使用,首先配置YUM服务,RedHat 私下认可YUM已设置,上面大家直接配置YUM本地源和互联网源就可以。

DBPassword=

在上边再写1行
DBPassword=123456
再找到那行:

[root@localhost ~]# mount /dev/cdrom /mnt/cdrom
 mount: /dev/sr0 is write-protected, mounting read-only 

DBSocket=/tmp/mysql.sock

在上面再写一行
DBSocket=/var/lib/mysql/mysql.sock
那么些密码是您DariaDB里面在此以前设置zabbix用户的密码,能够依照自身喜好改。
那几个渠道就是地方locate mysql.scok找到的那么些路径
-------------------------------平常应该有那多少个参数-------------------------------------------
[root@localhost zabbix-server-mysql-3.2.4]# egrep -vn "^#|^$" /etc/zabbix/zabbix_server.conf
38:LogFile=/var/log/zabbix/zabbix_server.log
49:LogFileSize=0
72:PidFile=/var/run/zabbix/zabbix_server.pid
91:DBName=zabbix
107:DBUser=zabbix
117:DBPassword=123456
125:DBSocket=/var/lib/mysql/mysql.sock
290:SNMPTrapperFile=/var/log/snmptrap/snmptrap.log
416:Timeout=4
458:AlertScriptsPath=/usr/lib/zabbix/alertscripts
468:ExternalScripts=/usr/lib/zabbix/externalscripts
504:LogSlowQueries=3000
关于egrep:egrep是相称字符的1个工具
-v:取反匹配到的字符
-n:展现行数
正则:自行百度
----------------------------------上面回归正题----------------------------------------------------
一叁、修改/etc/httpd/conf.d/zabbix.conf文件,把时区修改下
<IfModule mod_php5.c>
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai //改为北美洲/法国首都
</IfModule>
1四、开启一些列服务,包蕴Apache、玛丽亚db、zabbix-server、zabbix-agent
[root@localhost zabbix-server-mysql-3.2.4]# systemctl start httpd.service
[root@localhost zabbix-server-mysql-3.2.4]# systemctl start mariadb
[root@localhost zabbix-server-mysql-3.2.4]# systemctl start zabbix-server
[root@localhost zabbix-server-mysql-3.2.4]# systemctl start zabbix-agent
壹5、下边把地点6个服务设置成开机运维
[root@localhost zabbix-server-mysql-3.2.4]# systemctl enable httpd
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@localhost zabbix-server-mysql-3.2.4]# systemctl enable mariadb
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.
[root@localhost zabbix-server-mysql-3.2.4]# systemctl enable zabbix-server
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-server.service to /usr/lib/systemd/system/zabbix-server.servic.
[root@localhost zabbix-server-mysql-3.2.4]# systemctl enable zabbix-agent
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent.service to /usr/lib/systemd/system/zabbix-agent.servic
1六、查看ip,直接用浏览器来设置zabbix
[root@localhost zabbix-server-mysql-3.2.4]# ifconfig -a
8、在浏览器上设置
壹、安装地方(ip替换为投机ip):

2、安装

点Nexit step,下一步

翻开是还是不是全是OK,如若是,直接Next step,要是否,缺什么装什么样,什么没改改什么。

再三再四下一步

承袭下一步

持续下一步

点击Finish完成

账号密码默以为:Admin zabbix

PS:假设想要帮忙中文,下篇会讲到,就算有别的难点或不规则的地方,请大家协助留言。
zabbix服务路线 /usr/sbin
zabbix配置文件 /etc/zabbix
zabbix日志路线 /var/log/zabbix
zabbix解压路线 /usr/share/doc/
zabbix php路径 /usr/share/zabbix

2.查看yum是或不是安装;(以下标示已设置)

[root@localhost ~]# rpm -qa |grep yum*
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-125.el7.noarch
yum-rhn-plugin-2.0.1-5.el7.noarch
keyutils-libs-1.5.8-3.el7.x86_64
python-pyudev-0.15-6.el7.noarch

三.配置yum本地源和互连网源;

[root@localhost yum.repos.d]# mkdir  repobak   #新建2个备份文件夹

[root@localhost yum.repos.d]#mv *  repobak    #讲yum.repos.d 文件夹内文件备份到repobak内

[root@localhost yum.repos.d]#vi zabbix.repo     #新建贰个zabbix.repo YUM源文件,增多如下:

=================================zabbix.repo文件===================================

[zabbix]
name=Zabbix Official Repository - $basearch                                 #可援引变量$basearh为系统平台项目(x86_64&i386)
baseurl=          #互连网源地址 (镜像站)
enabled=1                                                                               #启用为1 禁用为0
gpgcheck=1                                                                             #校验为一 禁止校验为0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591      # 这一个依据系统版本自动生成,可粗略。

[zabbix-non-supported]
name=Zabbix Official Repository non-supported - $basearch
baseurl=
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX                   # 那几个依照系统版本自动生成,可回顾。
gpgcheck=1
[waiwang]
name=waiwang
baseurl=
enabled=1
gpgcheck=0
[extras]
name=extras
baseurl=
enabled=1
gpgcheck=0

======================================END====================================

4.清除YUM缓存文件

[root@localhost ~]# yum clean all                                           #清除yum缓存

Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: extras waiwang zabbix zabbix-non-supported
Cleaning up everything 

伍.创造YUM缓存文件

 

[root@localhost ~]# yum makecache                                    #生成yum缓存

Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
extras | 3.4 kB 00:00 
waiwang | 3.6 kB 00:00 
zabbix | 951 B 00:00 
zabbix-non-supported | 951 B 00:00 
(1/8): extras/prestodelta | 99 kB 00:00 
(2/8): extras/primary_db | 151 kB 00:00 
(3/8): waiwang/group_gz | 155 kB 00:00 
(4/8): extras/other_db | 640 kB 00:01 
(5/8): extras/filelists_db | 770 kB 00:02 
(6/8): waiwang/filelists_db | 6.6 MB 00:02 
(7/8): waiwang/other_db | 2.4 MB 00:00 
(8/8): waiwang/primary_db | 5.6 MB 00:03 
(1/6): zabbix/x86_64/primary | 13 kB 00:00 
(2/6): zabbix/x86_64/filelists | 43 kB 00:00 
(3/6): zabbix/x86_64/other | 7.7 kB 00:00 
(4/6): zabbix-non-supported/x86_64/filelists | 660 B 00:00 
(5/6): zabbix-non-supported/x86_64/primary | 1.6 kB 00:00 
(6/6): zabbix-non-supported/x86_64/other | 1.5 kB 00:00 
zabbix 92/92
zabbix 92/92
zabbix 92/92
zabbix-non-supported 4/4
zabbix-non-supported 4/4
zabbix-non-supported 4/4
Metadata Cache Created 

6.[root@localhost ~]# yum  list  能够查看YUM获取到的公文列表

7.关闭firewall:(vi/etc/selinux/)

[root@localhost ~]#systemctl stop firewalld.service                       #停止firewall

[root@localhost ~]#systemctl disable firewalld.service                   #禁止firewall开机运营

[root@localhost ~]# vi /etc/selinux/config                                     #将selinux=enforcing  改为 selinux=disabled 即可。

[root@localhost ~]# sestatus                                                       #查看selinux状态

 

=======================================停止YUM情形已经计划截至=======================

壹.上马安装LAMP架构

1.安装Apache

版权声明:本文由亚州城ca88手机版_亚洲城官方网站|www.yzc889.com发布于亚州城ca88手机版,转载请注明出处:yzc577亚洲城RedHat 七.一 下安装 Zabbix监察和控制程