运维监控-Open-Falcon单机部署实战篇

                   运维监控-Open-Falcon单机部署实战篇

                                           作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

 

  Open-Falcon,为前后端分离的架构,包含backend 和 frontend两部分。本文的部署笔记参考自open-faclon官网:https://book.open-falcon.org/zh_0_2/quick_install/。

 

一.环境准备

1>.操作系统环境

2>.安装操作系统常用的软件

[root@node101 ~]# yum -y install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.`date +%F`^C      
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# mv /etc/yum.repos.d/CentOS-Base.repo.`date +%F` /etc/yum.repos.d/CentOS-Base.repo
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# yum -y install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bit.edu.cn
 * extras: mirror.bit.edu.cn
 * updates: mirror.bit.edu.cn
Package net-tools-2.0-0.22.20131004git.el7.x86_64 already installed and latest version
Package lrzsz-0.12.20-36.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package dos2unix.x86_64 0:6.0.3-7.el7 will be installed
---> Package git.x86_64 0:1.8.3.1-14.el7_5 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-14.el7_5 for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Term::ReadKey) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: perl(Error) for package: git-1.8.3.1-14.el7_5.x86_64
--> Processing Dependency: libgnome-keyring.so.0()(64bit) for package: git-1.8.3.1-14.el7_5.x86_64
---> Package nmap.x86_64 2:6.40-13.el7 will be installed
--> Processing Dependency: nmap-ncat = 2:6.40-13.el7 for package: 2:nmap-6.40-13.el7.x86_64
---> Package ntpdate.x86_64 0:4.2.6p5-28.el7.centos will be installed
--> Processing Dependency: libcrypto.so.10(OPENSSL_1.0.2)(64bit) for package: ntpdate-4.2.6p5-28.el7.centos.x86_64
---> Package sysstat.x86_64 0:10.1.5-13.el7 will be installed
--> Processing Dependency: libsensors.so.4()(64bit) for package: sysstat-10.1.5-13.el7.x86_64
---> Package tcpdump.x86_64 14:4.9.2-3.el7 will be installed
--> Processing Dependency: libpcap >= 14:1.5.3-10 for package: 14:tcpdump-4.9.2-3.el7.x86_64
---> Package telnet.x86_64 1:0.17-64.el7 will be installed
---> Package tree.x86_64 0:1.6.0-10.el7 will be installed
---> Package wget.x86_64 0:1.14-15.el7_4.1 will be installed
--> Running transaction check
---> Package libgnome-keyring.x86_64 0:3.12.0-1.el7 will be installed
---> Package libpcap.x86_64 14:1.5.3-8.el7 will be updated
---> Package libpcap.x86_64 14:1.5.3-11.el7 will be an update
---> Package lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 will be installed
---> Package nmap-ncat.x86_64 2:6.40-13.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.1e-42.el7.9 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.1e-42.el7.9 for package: 1:openssl-1.0.1e-42.el7.9.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-12.el7 will be an update
---> Package perl-Error.noarch 1:0.17020-2.el7 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-14.el7_5 will be installed
---> Package perl-TermReadKey.x86_64 0:2.30-20.el7 will be installed
--> Running transaction check
---> Package openssl.x86_64 1:1.0.1e-42.el7.9 will be updated
---> Package openssl.x86_64 1:1.0.2k-12.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package                                 Arch                          Version                                                 Repository                      Size
====================================================================================================================================================================
Installing:
 dos2unix                                x86_64                        6.0.3-7.el7                                             base                            74 k
 git                                     x86_64                        1.8.3.1-14.el7_5                                        updates                        4.4 M
 nmap                                    x86_64                        2:6.40-13.el7                                           base                           3.9 M
 ntpdate                                 x86_64                        4.2.6p5-28.el7.centos                                   base                            86 k
 sysstat                                 x86_64                        10.1.5-13.el7                                           base                           310 k
 tcpdump                                 x86_64                        14:4.9.2-3.el7                                          base                           421 k
 telnet                                  x86_64                        1:0.17-64.el7                                           base                            64 k
 tree                                    x86_64                        1.6.0-10.el7                                            base                            46 k
 wget                                    x86_64                        1.14-15.el7_4.1                                         base                           547 k
Installing for dependencies:
 libgnome-keyring                        x86_64                        3.12.0-1.el7                                            base                           109 k
 lm_sensors-libs                         x86_64                        3.4.0-4.20160601gitf9185e5.el7                          base                            41 k
 nmap-ncat                               x86_64                        2:6.40-13.el7                                           base                           205 k
 perl-Error                              noarch                        1:0.17020-2.el7                                         base                            32 k
 perl-Git                                noarch                        1.8.3.1-14.el7_5                                        updates                         54 k
 perl-TermReadKey                        x86_64                        2.30-20.el7                                             base                            31 k
Updating for dependencies:
 libpcap                                 x86_64                        14:1.5.3-11.el7                                         base                           138 k
 openssl                                 x86_64                        1:1.0.2k-12.el7                                         base                           492 k
 openssl-libs                            x86_64                        1:1.0.2k-12.el7                                         base                           1.2 M

Transaction Summary
====================================================================================================================================================================
Install  9 Packages (+6 Dependent packages)
Upgrade             ( 3 Dependent packages)

Total download size: 12 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/18): dos2unix-6.0.3-7.el7.x86_64.rpm                                                                                                      |  74 kB  00:00:00     
(2/18): libgnome-keyring-3.12.0-1.el7.x86_64.rpm                                                                                             | 109 kB  00:00:00     
(3/18): libpcap-1.5.3-11.el7.x86_64.rpm                                                                                                      | 138 kB  00:00:02     
(4/18): lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64.rpm                                                                            |  41 kB  00:00:03     
(5/18): nmap-6.40-13.el7.x86_64.rpm                                                                                                          | 3.9 MB  00:00:07     
(6/18): nmap-ncat-6.40-13.el7.x86_64.rpm                                                                                                     | 205 kB  00:00:07     
(7/18): perl-Error-0.17020-2.el7.noarch.rpm                                                                                                  |  32 kB  00:00:00     
(8/18): ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm                                                                                             |  86 kB  00:00:05     
(9/18): perl-TermReadKey-2.30-20.el7.x86_64.rpm                                                                                              |  31 kB  00:00:00     
(10/18): sysstat-10.1.5-13.el7.x86_64.rpm                                                                                                    | 310 kB  00:00:00     
(11/18): perl-Git-1.8.3.1-14.el7_5.noarch.rpm                                                                                                |  54 kB  00:00:02     
(12/18): tcpdump-4.9.2-3.el7.x86_64.rpm                                                                                                      | 421 kB  00:00:01     
(13/18): tree-1.6.0-10.el7.x86_64.rpm                                                                                                        |  46 kB  00:00:00     
(14/18): openssl-libs-1.0.2k-12.el7.x86_64.rpm                                                                                               | 1.2 MB  00:00:03     
(15/18): wget-1.14-15.el7_4.1.x86_64.rpm                                                                                                     | 547 kB  00:00:00     
(16/18): telnet-0.17-64.el7.x86_64.rpm                                                                                                       |  64 kB  00:00:01     
(17/18): openssl-1.0.2k-12.el7.x86_64.rpm                                                                                                    | 492 kB  00:00:10     
(18/18): git-1.8.3.1-14.el7_5.x86_64.rpm                                                                                                     | 4.4 MB  00:00:14     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                               877 kB/s |  12 MB  00:00:14     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                             1/21 
  Updating   : 14:libpcap-1.5.3-11.el7.x86_64                                                                                                                  2/21 
  Installing : 1:perl-Error-0.17020-2.el7.noarch                                                                                                               3/21 
  Installing : 2:nmap-ncat-6.40-13.el7.x86_64                                                                                                                  4/21 
  Installing : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64                                                                                           5/21 
  Installing : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                             6/21 
  Installing : libgnome-keyring-3.12.0-1.el7.x86_64                                                                                                            7/21 
  Installing : perl-Git-1.8.3.1-14.el7_5.noarch                                                                                                                8/21 
  Installing : git-1.8.3.1-14.el7_5.x86_64                                                                                                                     9/21 
  Installing : sysstat-10.1.5-13.el7.x86_64                                                                                                                   10/21 
  Installing : 2:nmap-6.40-13.el7.x86_64                                                                                                                      11/21 
  Installing : 14:tcpdump-4.9.2-3.el7.x86_64                                                                                                                  12/21 
  Installing : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                                           13/21 
  Installing : wget-1.14-15.el7_4.1.x86_64                                                                                                                    14/21 
  Updating   : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                 15/21 
  Installing : dos2unix-6.0.3-7.el7.x86_64                                                                                                                    16/21 
  Installing : tree-1.6.0-10.el7.x86_64                                                                                                                       17/21 
  Installing : 1:telnet-0.17-64.el7.x86_64                                                                                                                    18/21 
  Cleanup    : 1:openssl-1.0.1e-42.el7.9.x86_64                                                                                                               19/21 
  Cleanup    : 1:openssl-libs-1.0.1e-42.el7.9.x86_64                                                                                                          20/21 
  Cleanup    : 14:libpcap-1.5.3-8.el7.x86_64                                                                                                                  21/21 
  Verifying  : 1:telnet-0.17-64.el7.x86_64                                                                                                                     1/21 
  Verifying  : git-1.8.3.1-14.el7_5.x86_64                                                                                                                     2/21 
  Verifying  : libgnome-keyring-3.12.0-1.el7.x86_64                                                                                                            3/21 
  Verifying  : 2:nmap-6.40-13.el7.x86_64                                                                                                                       4/21 
  Verifying  : ntpdate-4.2.6p5-28.el7.centos.x86_64                                                                                                            5/21 
  Verifying  : wget-1.14-15.el7_4.1.x86_64                                                                                                                     6/21 
  Verifying  : 1:perl-Error-0.17020-2.el7.noarch                                                                                                               7/21 
  Verifying  : perl-TermReadKey-2.30-20.el7.x86_64                                                                                                             8/21 
  Verifying  : 14:tcpdump-4.9.2-3.el7.x86_64                                                                                                                   9/21 
  Verifying  : tree-1.6.0-10.el7.x86_64                                                                                                                       10/21 
  Verifying  : lm_sensors-libs-3.4.0-4.20160601gitf9185e5.el7.x86_64                                                                                          11/21 
  Verifying  : sysstat-10.1.5-13.el7.x86_64                                                                                                                   12/21 
  Verifying  : 14:libpcap-1.5.3-11.el7.x86_64                                                                                                                 13/21 
  Verifying  : 1:openssl-1.0.2k-12.el7.x86_64                                                                                                                 14/21 
  Verifying  : 2:nmap-ncat-6.40-13.el7.x86_64                                                                                                                 15/21 
  Verifying  : 1:openssl-libs-1.0.2k-12.el7.x86_64                                                                                                            16/21 
  Verifying  : perl-Git-1.8.3.1-14.el7_5.noarch                                                                                                               17/21 
  Verifying  : dos2unix-6.0.3-7.el7.x86_64                                                                                                                    18/21 
  Verifying  : 1:openssl-libs-1.0.1e-42.el7.9.x86_64                                                                                                          19/21 
  Verifying  : 14:libpcap-1.5.3-8.el7.x86_64                                                                                                                  20/21 
  Verifying  : 1:openssl-1.0.1e-42.el7.9.x86_64                                                                                                               21/21 

Installed:
  dos2unix.x86_64 0:6.0.3-7.el7  git.x86_64 0:1.8.3.1-14.el7_5  nmap.x86_64 2:6.40-13.el7   ntpdate.x86_64 0:4.2.6p5-28.el7.centos  sysstat.x86_64 0:10.1.5-13.el7 
  tcpdump.x86_64 14:4.9.2-3.el7  telnet.x86_64 1:0.17-64.el7    tree.x86_64 0:1.6.0-10.el7  wget.x86_64 0:1.14-15.el7_4.1          

Dependency Installed:
  libgnome-keyring.x86_64 0:3.12.0-1.el7 lm_sensors-libs.x86_64 0:3.4.0-4.20160601gitf9185e5.el7 nmap-ncat.x86_64 2:6.40-13.el7 perl-Error.noarch 1:0.17020-2.el7
  perl-Git.noarch 0:1.8.3.1-14.el7_5     perl-TermReadKey.x86_64 0:2.30-20.el7                  

Dependency Updated:
  libpcap.x86_64 14:1.5.3-11.el7                      openssl.x86_64 1:1.0.2k-12.el7                      openssl-libs.x86_64 1:1.0.2k-12.el7                     

Complete!
[root@node101 ~]# 
[root@node101 ~]# yum -y install git telnet net-tools tree nmap sysstat lrzsz dos2unix tcpdump ntpdate wget                    #这些命令后期咱们是要用到的

3>.更换阿里的yum源

[root@node101 ~]# mkdir /etc/yum.repos.d/repobakup-`date +%F`
[root@node101 ~]# 
[root@node101 ~]# mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/repobakup-`date +%F`/                                    #备份操作系统的repo源。
[root@node101 ~]# 
[root@node101 ~]# ll /etc/yum.repos.d/
total 0
drwxr-xr-x. 2 root root 187 Nov 17 08:00 repobakup-2018-11-17
[root@node101 ~]#
[root@node101 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo   
--2018-11-17 01:53:15--  http://mirrors.aliyun.com/repo/Centos-7.repo
Resolving mirrors.aliyun.com (mirrors.aliyun.com)... 42.81.12.217, 42.81.12.221, 42.81.12.218, ...
Connecting to mirrors.aliyun.com (mirrors.aliyun.com)|42.81.12.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2523 (2.5K) [application/octet-stream]
Saving to: ‘/etc/yum.repos.d/CentOS-Base.repo’

100%[==========================================================================================================================>] 2,523       --.-K/s   in 0s      

2018-11-17 01:53:16 (203 MB/s) - ‘/etc/yum.repos.d/CentOS-Base.repo’ saved [2523/2523]

[root@node101 ~]# 
[root@node101 ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo                        #下载阿里的yum源
[root@node101 ~]# yum -y install epel-release.noarch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package                                     Arch                                  Version                              Repository                             Size
====================================================================================================================================================================
Installing:
 epel-release                                noarch                                7-11                                 extras                                 15 k

Transaction Summary
====================================================================================================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm   FAILED                                          
http://mirrors.aliyuncs.com/centos/7/extras/x86_64/Packages/epel-release-7-11.noarch.rpm: [Errno 12] Timeout on http://mirrors.aliyuncs.com/centos/7/extras/x86_64/Packages/epel-release-7-11.noarch.rpm: (28, 'Connection timed out after 30002 milliseconds')
Trying other mirror.
epel-release-7-11.noarch.rpm   FAILED                                          
http://mirrors.cloud.aliyuncs.com/centos/7/extras/x86_64/Packages/epel-release-7-11.noarch.rpm: [Errno 14] curl#6 - "Could not resolve host: mirrors.cloud.aliyuncs.com; Name or service not known"
Trying other mirror.
epel-release-7-11.noarch.rpm                                                                                                                 |  15 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                                                                         1/1 
  Verifying  : epel-release-7-11.noarch                                                                                                                         1/1 

Installed:
  epel-release.noarch 0:7-11                                                                                                                                        

Complete!
[root@node101 ~]# yum -y install epel-release.noarch                                                       #安装epel源
[root@node101 ~]# rpm -Uvh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
Retrieving http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm
warning: /var/tmp/rpm-tmp.sMhKyD: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing...                          ################################# [100%]
        package epel-release-7-11.noarch is already installed
[root@node101 ~]# 
[root@node101 ~]# rpm -Uvh http://mirrors.aliyun.com/epel/epel-release-latest-7.noarch.rpm                                #升级安装epel源
[root@node101 ~]# yum clean all
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
[root@node101 ~]# 
[root@node101 ~]# yum clean all                               #清空缓存
[root@node101 ~]# yum makecache
Loaded plugins: fastestmirror
base                                                                                                                                         | 3.6 kB  00:00:00     
extras                                                                                                                                       | 3.4 kB  00:00:00     
updates                                                                                                                                      | 3.4 kB  00:00:00     
(1/12): base/7/x86_64/group_gz                                                                                                               | 166 kB  00:00:00     
(2/12): base/7/x86_64/filelists_db                                                                                                           | 6.9 MB  00:00:08     
(3/12): extras/7/x86_64/prestodelta                                                                                                          | 100 kB  00:00:00     
(4/12): extras/7/x86_64/primary_db                                                                                                           | 205 kB  00:00:00     
(5/12): extras/7/x86_64/filelists_db                                                                                                         | 603 kB  00:00:01     
(6/12): extras/7/x86_64/other_db                                                                                                             | 126 kB  00:00:01     
(7/12): updates/7/x86_64/prestodelta                                                                                                         | 679 kB  00:00:01     
(8/12): updates/7/x86_64/filelists_db                                                                                                        | 3.4 MB  00:00:15     
(9/12): updates/7/x86_64/primary_db                                                                                                          | 6.0 MB  00:00:13     
(10/12): updates/7/x86_64/other_db                                                                                                           | 578 kB  00:00:00     
(11/12): base/7/x86_64/other_db                                                                                                              | 2.5 MB  00:00:17     
(12/12): base/7/x86_64/primary_db                                                                                                            | 5.9 MB  00:00:29     
Determining fastest mirrors
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Metadata Cache Created
[root@node101 ~]# 
[root@node101 ~]# yum makecache                               #yum makecache就是把服务器的包信息下载到本地电脑缓存起来,配合yum -C search xxx使用,不用上网检索就能查找软件信息,从而达到提升查询的效率。
[root@node101 ~]# grep keepcache /etc/yum.conf
keepcache=0
[root@node101 ~]# 
[root@node101 ~]# sed -i 's#keepcache=0#keepcache=1#g' /etc/yum.conf 
[root@node101 ~]# 
[root@node101 ~]# grep keepcache /etc/yum.conf                       
keepcache=1
[root@node101 ~]# 
[root@node101 ~]# sed -i 's#keepcache=0#keepcache=1#g' /etc/yum.conf         #开启安装包缓存,即安装服务包后,不删除下载已经下载的rpm文件。 

3>.关闭并禁用selinux

[root@node101 ~]# cat /etc/selinux/config | grep  SELINUX= | grep -v ^#                                    #查看selinux默认的权限
SELINUX=enforcing
[root@node101 ~]# 
[root@node101 ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config                      #进入用selinux,需要重启操作系统方能生效。
[root@node101 ~]# 
[root@node101 ~]# cat /etc/selinux/config | grep  SELINUX= | grep -v ^#                                    
SELINUX=disabled
[root@node101 ~]# 
[root@node101 ~]# getenforce                                                        #查看当前操作系统的selinux的状态
Enforcing
[root@node101 ~]# 
[root@node101 ~]# setenforce 0                                                      #临时关闭selinux服务,严格来说是将selinux的管理权限放行模式,即Permissive。
[root@node101 ~]# 
[root@node101 ~]# getenforce  
Permissive
[root@node101 ~]# 

4>.关闭并禁用firewalld

[root@node101 ~]# systemctl status firewalld                                 #查看firewall服务的状态
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2018-11-17 02:33:23 EST; 14min left  【当前firewall的服务处于运行状态】
 Main PID: 713 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─713 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Nov 17 02:33:23 node101.yinzhengjie.org.cn systemd[1]: Starting firewalld - dynamic firewall daemon...
Nov 17 02:33:23 node101.yinzhengjie.org.cn systemd[1]: Started firewalld - dynamic firewall daemon.
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# systemctl stop firewalld                                    #停止firewalld服务
[root@node101 ~]# 
[root@node101 ~]# systemctl disable firewalld                                  #禁用selinux
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
[root@node101 ~]# 
[root@node101 ~]# systemctl status firewalld 
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)  【当前服务已经停止了】

Nov 17 02:33:23 node101.yinzhengjie.org.cn systemd[1]: Starting firewalld - dynamic firewall daemon...
Nov 17 02:33:23 node101.yinzhengjie.org.cn systemd[1]: Started firewalld - dynamic firewall daemon.
Nov 17 02:18:55 node101.yinzhengjie.org.cn systemd[1]: Stopping firewalld - dynamic firewall daemon...
Nov 17 02:18:55 node101.yinzhengjie.org.cn systemd[1]: Stopped firewalld - dynamic firewall daemon.
[root@node101 ~]# 
[root@node101 ~]# 

5>.安装redis并启动

[root@node101 ~]# yum -y install redis
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.huaweicloud.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package redis.x86_64 0:3.2.12-2.el7 will be installed
--> Processing Dependency: libjemalloc.so.1()(64bit) for package: redis-3.2.12-2.el7.x86_64
--> Running transaction check
---> Package jemalloc.x86_64 0:3.6.0-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package                                Arch                                 Version                                       Repository                          Size
====================================================================================================================================================================
Installing:
 redis                                  x86_64                               3.2.12-2.el7                                  epel                               544 k
Installing for dependencies:
 jemalloc                               x86_64                               3.6.0-1.el7                                   epel                               105 k

Transaction Summary
====================================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 648 k
Installed size: 1.7 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/jemalloc-3.6.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY9 kB/s | 147 kB  00:00:26 ETA 
Public key for jemalloc-3.6.0-1.el7.x86_64.rpm is not installed
(1/2): jemalloc-3.6.0-1.el7.x86_64.rpm                                                                                                       | 105 kB  00:00:06     
(2/2): redis-3.2.12-2.el7.x86_64.rpm                                                                                                         | 544 kB  00:00:15     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                42 kB/s | 648 kB  00:00:15     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : jemalloc-3.6.0-1.el7.x86_64                                                                                                                      1/2 
  Installing : redis-3.2.12-2.el7.x86_64                                                                                                                        2/2 
  Verifying  : redis-3.2.12-2.el7.x86_64                                                                                                                        1/2 
  Verifying  : jemalloc-3.6.0-1.el7.x86_64                                                                                                                      2/2 

Installed:
  redis.x86_64 0:3.2.12-2.el7                                                                                                                                       

Dependency Installed:
  jemalloc.x86_64 0:3.6.0-1.el7                                                                                                                                     

Complete!
[root@node101 ~]# 
[root@node101 ~]# yum -y install redis

  在启动之前,我们可以修改Redis的绑定地址,如下图所示,默认绑定的是本地回环地址哟:

[root@node101 ~]# cat /etc/redis.conf | grep 172.30.1.101          #修改Redis的配置文件,绑定当前服务器的IP地址(根据你的服务器IP地址需要做适当的调整)
bind 172.30.1.101
[root@node101 ~]# 

[root@node101 ~]# redis-server  &          #启动redis服务

[root@node101 ~]# ps -ef | grep redis | grep -v grep              #启动Redis后,我们可以使用ps命令查看该服务是否运行成功。
root       1851   1475  0 17:17 pts/0    00:00:00 redis-server *:6379
[root@node101 ~]# 

6>.安装mysql并启动

[root@node101 ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
--2018-11-17 02:33:59--  http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
Resolving repo.mysql.com (repo.mysql.com)... 23.51.209.162
Connecting to repo.mysql.com (repo.mysql.com)|23.51.209.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6140 (6.0K) [application/x-redhat-package-manager]
Saving to: ‘mysql-community-release-el7-5.noarch.rpm’

100%[==========================================================================================================================>] 6,140       --.-K/s   in 0s      

2018-11-17 02:33:59 (417 MB/s) - ‘mysql-community-release-el7-5.noarch.rpm’ saved [6140/6140]

[root@node101 ~]# 
[root@node101 ~]# ll
total 8
-rw-r--r--. 1 root root 6140 Nov 12  2015 mysql-community-release-el7-5.noarch.rpm
[root@node101 ~]# 
[root@node101 ~]# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm                      #下载mysql服务的rpm安装包
[root@node101 ~]# ll
total 8
-rw-r--r--. 1 root root 6140 Nov 12  2015 mysql-community-release-el7-5.noarch.rpm
[root@node101 ~]# 
[root@node101 ~]# ll /etc/yum.repos.d/
total 12
-rw-r--r--. 1 root root 2523 Jun 15 18:22 CentOS-Base.repo
-rw-r--r--. 1 root root  951 Nov 17 02:24 epel.repo
drwxr-xr-x. 2 root root 4096 Nov 17 02:06 repobakup-2018-11-17
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-release-el7-5    ################################# [100%]
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# ll /etc/yum.repos.d/                              
total 20
-rw-r--r--. 1 root root 2523 Jun 15 18:22 CentOS-Base.repo
-rw-r--r--. 1 root root  951 Nov 17 02:24 epel.repo
-rw-r--r--. 1 root root 1209 Jan 29  2014 mysql-community.repo
-rw-r--r--. 1 root root 1060 Jan 29  2014 mysql-community-source.repo
drwxr-xr-x. 2 root root 4096 Nov 17 02:06 repobakup-2018-11-17
[root@node101 ~]# 
[root@node101 ~]# rpm -ivh mysql-community-release-el7-5.noarch.rpm                                 #安装mysql的yum源
[root@node101 ~]# yum -y install mysql-server
Loaded plugins: fastestmirror
mysql-connectors-community                                                                                                                   | 2.5 kB  00:00:00     
mysql-tools-community                                                                                                                        | 2.5 kB  00:00:00     
mysql56-community                                                                                                                            | 2.5 kB  00:00:00     
(1/3): mysql-tools-community/x86_64/primary_db                                                                                               |  48 kB  00:00:00     
(2/3): mysql-connectors-community/x86_64/primary_db                                                                                          |  29 kB  00:00:00     
(3/3): mysql56-community/x86_64/primary_db                                                                                                   | 209 kB  00:00:01     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.huaweicloud.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:5.6.42-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.42-2.el7 for package: mysql-community-server-5.6.42-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 5.6.10 for package: mysql-community-server-5.6.42-2.el7.x86_64
--> Processing Dependency: perl(Data::Dumper) for package: mysql-community-server-5.6.42-2.el7.x86_64
--> Processing Dependency: perl(DBI) for package: mysql-community-server-5.6.42-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.42-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.42-2.el7.x86_64
---> Package mysql-community-common.x86_64 0:5.6.42-2.el7 will be installed
---> Package perl-DBI.x86_64 0:1.627-4.el7 will be installed
--> Processing Dependency: perl(RPC::PlServer) >= 0.2001 for package: perl-DBI-1.627-4.el7.x86_64
--> Processing Dependency: perl(RPC::PlClient) >= 0.2000 for package: perl-DBI-1.627-4.el7.x86_64
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
--> Running transaction check
---> Package mariadb-libs.x86_64 1:5.5.44-2.el7.centos will be obsoleted
---> Package mysql-community-libs.x86_64 0:5.6.42-2.el7 will be obsoleting
---> Package perl-PlRPC.noarch 0:0.2020-14.el7 will be installed
--> Processing Dependency: perl(Net::Daemon) >= 0.13 for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Test) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Net::Daemon::Log) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Processing Dependency: perl(Compress::Zlib) for package: perl-PlRPC-0.2020-14.el7.noarch
--> Running transaction check
---> Package perl-IO-Compress.noarch 0:2.061-2.el7 will be installed
--> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
--> Processing Dependency: perl(Compress::Raw::Bzip2) >= 2.061 for package: perl-IO-Compress-2.061-2.el7.noarch
---> Package perl-Net-Daemon.noarch 0:0.48-5.el7 will be installed
--> Running transaction check
---> Package perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7 will be installed
---> Package perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package                                        Arch                          Version                                Repository                                Size
====================================================================================================================================================================
Installing:
 mysql-community-libs                           x86_64                        5.6.42-2.el7                           mysql56-community                        2.0 M
     replacing  mariadb-libs.x86_64 1:5.5.44-2.el7.centos
 mysql-community-server                         x86_64                        5.6.42-2.el7                           mysql56-community                         59 M
Installing for dependencies:
 mysql-community-client                         x86_64                        5.6.42-2.el7                           mysql56-community                         20 M
 mysql-community-common                         x86_64                        5.6.42-2.el7                           mysql56-community                        257 k
 perl-Compress-Raw-Bzip2                        x86_64                        2.061-3.el7                            base                                      32 k
 perl-Compress-Raw-Zlib                         x86_64                        1:2.061-4.el7                          base                                      57 k
 perl-DBI                                       x86_64                        1.627-4.el7                            base                                     802 k
 perl-Data-Dumper                               x86_64                        2.145-3.el7                            base                                      47 k
 perl-IO-Compress                               noarch                        2.061-2.el7                            base                                     260 k
 perl-Net-Daemon                                noarch                        0.48-5.el7                             base                                      51 k
 perl-PlRPC                                     noarch                        0.2020-14.el7                          base                                      36 k

Transaction Summary
====================================================================================================================================================================
Install  2 Packages (+9 Dependent packages)

Total download size: 82 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/mysql56-community/packages/mysql-community-common-5.6.42-2.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEYETA 
Public key for mysql-community-common-5.6.42-2.el7.x86_64.rpm is not installed
(1/11): mysql-community-common-5.6.42-2.el7.x86_64.rpm                                                                                       | 257 kB  00:00:02     
(2/11): mysql-community-client-5.6.42-2.el7.x86_64.rpm                                                                                       |  20 MB  00:00:25     
(3/11): perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64.rpm                                                                                       |  32 kB  00:00:00     
(4/11): perl-Compress-Raw-Zlib-2.061-4.el7.x86_64.rpm                                                                                        |  57 kB  00:00:00     
(5/11): perl-DBI-1.627-4.el7.x86_64.rpm                                                                                                      | 802 kB  00:00:01     
(6/11): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                                                                                              |  47 kB  00:00:01     
(7/11): perl-IO-Compress-2.061-2.el7.noarch.rpm                                                                                              | 260 kB  00:00:00     
(8/11): perl-PlRPC-0.2020-14.el7.noarch.rpm                                                                                                  |  36 kB  00:00:00     
(9/11): perl-Net-Daemon-0.48-5.el7.noarch.rpm                                                                                                |  51 kB  00:00:00     
(10/11): mysql-community-libs-5.6.42-2.el7.x86_64.rpm                                                                                        | 2.0 MB  00:00:47     
(11/11): mysql-community-server-5.6.42-2.el7.x86_64.rpm                                                                                      |  59 MB  00:01:20     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                               793 kB/s |  82 MB  00:01:46     
Retrieving key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Importing GPG key 0x5072E1F5:
 Userid     : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
 Fingerprint: a4a9 4068 76fc bd3c 4567 70c8 8c71 8d3b 5072 e1f5
 Package    : mysql-community-release-el7-5.noarch (installed)
 From       : file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
  Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                             1/12 
  Installing : mysql-community-common-5.6.42-2.el7.x86_64                                                                                                      2/12 
  Installing : mysql-community-libs-5.6.42-2.el7.x86_64                                                                                                        3/12 
  Installing : mysql-community-client-5.6.42-2.el7.x86_64                                                                                                      4/12 
  Installing : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                      5/12 
  Installing : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                     6/12 
  Installing : perl-IO-Compress-2.061-2.el7.noarch                                                                                                             7/12 
  Installing : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                               8/12 
  Installing : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                 9/12 
  Installing : perl-DBI-1.627-4.el7.x86_64                                                                                                                    10/12 
  Installing : mysql-community-server-5.6.42-2.el7.x86_64                                                                                                     11/12 
  Erasing    : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                                                      12/12 
  Verifying  : mysql-community-libs-5.6.42-2.el7.x86_64                                                                                                        1/12 
  Verifying  : mysql-community-common-5.6.42-2.el7.x86_64                                                                                                      2/12 
  Verifying  : perl-Net-Daemon-0.48-5.el7.noarch                                                                                                               3/12 
  Verifying  : mysql-community-server-5.6.42-2.el7.x86_64                                                                                                      4/12 
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                                                                                                             5/12 
  Verifying  : mysql-community-client-5.6.42-2.el7.x86_64                                                                                                      6/12 
  Verifying  : perl-IO-Compress-2.061-2.el7.noarch                                                                                                             7/12 
  Verifying  : 1:perl-Compress-Raw-Zlib-2.061-4.el7.x86_64                                                                                                     8/12 
  Verifying  : perl-DBI-1.627-4.el7.x86_64                                                                                                                     9/12 
  Verifying  : perl-Compress-Raw-Bzip2-2.061-3.el7.x86_64                                                                                                     10/12 
  Verifying  : perl-PlRPC-0.2020-14.el7.noarch                                                                                                                11/12 
  Verifying  : 1:mariadb-libs-5.5.44-2.el7.centos.x86_64                                                                                                      12/12 

Installed:
  mysql-community-libs.x86_64 0:5.6.42-2.el7                                      mysql-community-server.x86_64 0:5.6.42-2.el7                                     

Dependency Installed:
  mysql-community-client.x86_64 0:5.6.42-2.el7          mysql-community-common.x86_64 0:5.6.42-2.el7          perl-Compress-Raw-Bzip2.x86_64 0:2.061-3.el7         
  perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7           perl-DBI.x86_64 0:1.627-4.el7                         perl-Data-Dumper.x86_64 0:2.145-3.el7                
  perl-IO-Compress.noarch 0:2.061-2.el7                 perl-Net-Daemon.noarch 0:0.48-5.el7                   perl-PlRPC.noarch 0:0.2020-14.el7                    

Replaced:
  mariadb-libs.x86_64 1:5.5.44-2.el7.centos                                                                                                                         

Complete!
[root@node101 ~]# 
[root@node101 ~]# yum -y install mysql-server                                              #安装mysql
[root@node101 ~]# systemctl  status mysqld
● mysqld.service - MySQL Community Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: inactive (dead)
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# systemctl  start mysqld 
[root@node101 ~]# 
[root@node101 ~]# systemctl  enable mysqld
[root@node101 ~]# 
[root@node101 ~]# systemctl  status mysqld 
● mysqld.service - MySQL Community Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2018-11-17 02:42:56 EST; 10s ago
 Main PID: 3262 (mysqld_safe)
   CGroup: /system.slice/mysqld.service
           ├─3262 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
           └─3428 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mysqld.log --pid-file=/var/r...

Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: /usr/bin/mysqladmin -u root password 'new-password'
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: /usr/bin/mysqladmin -u root -h node101.yinzhengjie.org.cn password 'new-password'
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: Alternatively you can run:
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: /usr/bin/mysql_secure_installation
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: which will also give you the option of removing the test
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: databases and anonymous user created by default.  This is
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysql-systemd-start[3203]: strongly recommended for production servers.
Nov 17 02:42:55 node101.yinzhengjie.org.cn mysqld_safe[3262]: 181117 02:42:55 mysqld_safe Logging to '/var/log/mysqld.log'.
Nov 17 02:42:56 node101.yinzhengjie.org.cn mysqld_safe[3262]: 181117 02:42:56 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Nov 17 02:42:56 node101.yinzhengjie.org.cn systemd[1]: Started MySQL Community Server.
[root@node101 ~]# 
[root@node101 ~]# systemctl start mysqld                                                  #启动mysql服务
[root@node101 ~]# mysqladmin -uroot password "yinzhengjie"
Warning: Using a password on the command line interface can be insecure.
[root@node101 ~]# 
[root@node101 ~]# mysql -uroot -pyinzhengjie
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.42 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

mysql> quit
Bye
[root@node101 ~]# 
[root@node101 ~]# mysqladmin -uroot password "yinzhengjie"                                      #初始化mysql密码
[root@node101 ~]# mkdir -pv /yinzhengjie/open-falcon && cd  /yinzhengjie/open-falcon               #创建下载的open-falcon的目录
mkdir: created directory ‘/yinzhengjie’
mkdir: created directory ‘/yinzhengjie/open-falcon’
[root@node101 open-falcon]# 
[root@node101 open-falcon]# git clone https://github.com/open-falcon/falcon-plus.git                #下载open-falcon的数据库初始化脚本
Cloning into 'falcon-plus'...
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 8647 (delta 5), reused 11 (delta 4), pack-reused 8614
Receiving objects: 100% (8647/8647), 15.60 MiB | 190.00 KiB/s, done.
Resolving deltas: 100% (4532/4532), done.
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ll
total 24
-rw-r--r--. 1 root root 1952 Nov 17 02:48 1_uic-db-schema.sql
-rw-r--r--. 1 root root 7573 Nov 17 02:48 2_portal-db-schema.sql
-rw-r--r--. 1 root root 3391 Nov 17 02:48 3_dashboard-db-schema.sql
-rw-r--r--. 1 root root 1807 Nov 17 02:48 4_graph-db-schema.sql
-rw-r--r--. 1 root root 2558 Nov 17 02:48 5_alarms-db-schema.sql
[root@node101 open-falcon]# 
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cd falcon-plus/scripts/mysql/db_schema/
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -h 127.0.0.1 -uroot -pyinzhengjie < 1_uic-db-schema.sql              #初始化mysql的表结构,必须取保mysql服务是正常启动的。
Warning: Using a password on the command line interface can be insecure.
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -h 127.0.0.1 -uroot -pyinzhengjie < 2_portal-db-schema.sql 
Warning: Using a password on the command line interface can be insecure.
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -h 127.0.0.1 -uroot -pyinzhengjie < 3_dashboard-db-schema.sql 
Warning: Using a password on the command line interface can be insecure.
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -h 127.0.0.1 -uroot -pyinzhengjie < 4_graph-db-schema.sql 
Warning: Using a password on the command line interface can be insecure.
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -h 127.0.0.1 -uroot -pyinzhengjie < 5_alarms-db-schema.sql 
Warning: Using a password on the command line interface can be insecure.
[root@node101 db_schema]# 
[root@node101 db_schema]# mysql -uroot -pyinzhengjie                                #这里使用用户名为:root,密码为:yinzhengjie 登陆mysql数据库,查看初始化的表结构有哪些
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 5.6.42 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

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

mysql> show databases;                #发现多出来不少数据库呀
+--------------------+
| Database           |
+--------------------+
| information_schema |
| alarms             |
| dashboard          |
| falcon_portal      |
| graph              |
| mysql              |
| performance_schema |
| uic                |
+--------------------+
8 rows in set (0.00 sec)

mysql> use alarms;                #我们随机进入一个数据库
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+------------------+
| Tables_in_alarms |
+------------------+
| event_cases      |
| event_note       |
| events           |
+------------------+
3 rows in set (0.00 sec)

mysql> select * from events;        #查看表的内容是空的,当然你也可以查看表结构之类的,不过没有啥太大意义,上面的执行脚本基本上都是建表的功能。
Empty set (0.00 sec)

mysql> quit
Bye
[root@node101 db_schema]# 

7>.Go语言开发环境(因为open-falcon是基于golang开发的)

[root@node101 ~]# yum -y install golang
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.huaweicloud.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package golang.x86_64 0:1.9.4-1.el7 will be installed
--> Processing Dependency: golang-src = 1.9.4-1.el7 for package: golang-1.9.4-1.el7.x86_64
--> Processing Dependency: golang-bin = 1.9.4-1.el7 for package: golang-1.9.4-1.el7.x86_64
--> Running transaction check
---> Package golang-bin.x86_64 0:1.9.4-1.el7 will be installed
---> Package golang-src.noarch 0:1.9.4-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================
 Package                                  Arch                                 Version                                     Repository                          Size
====================================================================================================================================================================
Installing:
 golang                                   x86_64                               1.9.4-1.el7                                 base                               611 k
Installing for dependencies:
 golang-bin                               x86_64                               1.9.4-1.el7                                 base                                49 M
 golang-src                               noarch                               1.9.4-1.el7                                 base                               5.1 M

Transaction Summary
====================================================================================================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 54 M
Installed size: 222 M
Downloading packages:
(1/3): golang-1.9.4-1.el7.x86_64.rpm                                                                                                         | 611 kB  00:00:01     
(2/3): golang-src-1.9.4-1.el7.noarch.rpm                                                                                                     | 5.1 MB  00:00:06     
(3/3): golang-bin-1.9.4-1.el7.x86_64.rpm                                                                                                     |  49 MB  00:01:00     
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                               921 kB/s |  54 MB  00:01:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : golang-src-1.9.4-1.el7.noarch                                                                                                                    1/3 
  Installing : golang-1.9.4-1.el7.x86_64                                                                                                                        2/3 
  Installing : golang-bin-1.9.4-1.el7.x86_64                                                                                                                    3/3 
  Verifying  : golang-bin-1.9.4-1.el7.x86_64                                                                                                                    1/3 
  Verifying  : golang-1.9.4-1.el7.x86_64                                                                                                                        2/3 
  Verifying  : golang-src-1.9.4-1.el7.noarch                                                                                                                    3/3 

Installed:
  golang.x86_64 0:1.9.4-1.el7                                                                                                                                       

Dependency Installed:
  golang-bin.x86_64 0:1.9.4-1.el7                                                  golang-src.noarch 0:1.9.4-1.el7                                                 

Complete!
[root@node101 ~]# 
[root@node101 ~]# yum -y install golang              #安装golang环境
[root@node101 ~]# go version                                          #查看golang的版本号
go version go1.9.4 linux/amd64
[root@node101 ~]# 
[root@node101 ~]# mkdir -p /home/yinzhengjie/golang                              #创建GOPATH目录
[root@node101 ~]# 
[root@node101 ~]# echo "#ADD golang path by yinzhengjie" >> /etc/profile                #添加golang的环境变量,即GOROOT和GOPATH
[root@node101 ~]# 
[root@node101 ~]# echo "export GOROOT=/usr/lib/golang" >> /etc/profile
[root@node101 ~]# 
[root@node101 ~]# echo "export GOPATH=/home/yinzhengjie/golang" >> /etc/profile
[root@node101 ~]# 
[root@node101 ~]# source  /etc/profile                                     #重新加载环境变量
[root@node101 ~]# 
[root@node101 ~]# echo  $GOPATH                                          #查看变量是否生效~
/home/yinzhengjie/golang
[root@node101 ~]# 
[root@node101 ~]# echo  $GOROOT
/usr/lib/golang
[root@node101 ~]# 

 

二.安装后端  

1>.下载并安装open-falcon

[root@node101 ~]# mkdir -pv $GOPATH/src/github.com/open-falcon/falcon-plus/  && cd $GOPATH/src/github.com/open-falcon/falcon-plus/
mkdir: created directory ‘/home/yinzhengjie/golang/src’
mkdir: created directory ‘/home/yinzhengjie/golang/src/github.com’
mkdir: created directory ‘/home/yinzhengjie/golang/src/github.com/open-falcon’
mkdir: created directory ‘/home/yinzhengjie/golang/src/github.com/open-falcon/falcon-plus/’
[root@node101 falcon-plus]# wget https://github.com/open-falcon/falcon-plus/releases/download/v0.2.1/open-falcon-v0.2.1.tar.gz        #下载open-falcon安装包
[root@node101 falcon-plus]# ll
total 39096
-rw-r--r--. 1 root root 40031472 Nov 12 05:15 open-falcon-v0.2.1.tar.gz
[root@node101 falcon-plus]# 
[root@node101 falcon-plus]# mkdir -pv /yinzhengjie/open-falcon/workspace/open-falcon
mkdir: created directory ‘/yinzhengjie/open-falcon/workspace’
mkdir: created directory ‘/yinzhengjie/open-falcon/workspace/open-falcon’
[root@node101 falcon-plus]# 
[root@node101 falcon-plus]# tar -zxf open-falcon-v0.2.1.tar.gz -C /yinzhengjie/open-falcon/workspace/open-falcon
[root@node101 falcon-plus]# 
[root@node101 falcon-plus]# cd /yinzhengjie/open-falcon/workspace/open-falcon
[root@node101 open-falcon]# ll
total 3936
drwxrwxr-x. 7 501 501    4096 Aug 15  2017 agent
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 aggregator
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 alarm
drwxrwxr-x. 6 501 501    4096 Aug 15  2017 api
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 gateway
drwxrwxr-x. 6 501 501    4096 Aug 15  2017 graph
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 hbs
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 judge
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 nodata
-rwxrwxr-x. 1 501 501 3987469 Aug 15  2017 open-falcon
lrwxrwxrwx. 1 501 501      16 Aug 15  2017 plugins -> ./agent/plugins/
lrwxrwxrwx. 1 501 501      15 Aug 15  2017 public -> ./agent/public/
drwxrwxr-x. 5 501 501    4096 Aug 15  2017 transfer
[root@node101 open-falcon]# 

2>.配置open-Falcon的环境变量

[root@node101 open-falcon]# echo "#ADD open-falcon path by yinzhengjie" >> /etc/profile
[root@node101 open-falcon]# echo "export FALCON_HOME=/yinzhengjie/open-falcon/workspace" >> /etc/profile
[root@node101 open-falcon]# echo "export WORKSPACE=$FALCON_HOME/open-falcon" >> /etc/profile
[root@node101 open-falcon]# source /etc/profile
[root@node101 open-falcon]# 
[root@node101 open-falcon]# echo  $FALCON_HOME
/yinzhengjie/open-falcon/workspace
[root@node101 open-falcon]# 

3>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/aggregator/config/cfg.json

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/aggregator/config/cfg.json   
{
    "debug": true,
    "http": {
        "enabled": true,
        "listen": "0.0.0.0:6055"
    },
    "database": {
        "addr": "root:yinzhengjie@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true",
        "idle": 10,
        "ids": [1, -1],
        "interval": 55
    },
    "api": {
        "connect_timeout": 500,
        "request_timeout": 2000,
        "plus_api": "http://127.0.0.1:8080",
        "plus_api_token": "default-token-used-in-server-side",
        "push_api": "http://127.0.0.1:1988/v1/push"
    }
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/aggregator/config/cfg.json

4>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/graph/config/cfg.json

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/graph/config/cfg.json
{
    "debug": false,
    "http": {
        "enabled": true,
        "listen": "0.0.0.0:6071"
    },
    "rpc": {
        "enabled": true,
        "listen": "0.0.0.0:6070"
    },
    "rrd": {
        "storage": "./data/6070"
    },
    "db": {
        "dsn": "root:yinzhengjie@tcp(127.0.0.1:3306)/graph?loc=Local&parseTime=true",
        "maxIdle": 4
    },
    "callTimeout": 5000,
    "migrate": {
            "enabled": false,
            "concurrency": 2,
            "replicas": 500,
            "cluster": {
                    "graph-00" : "127.0.0.1:6070"
            }
    }
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/graph/config/cfg.json

5>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/hbs/config/cfg.json

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/hbs/config/cfg.json
{
    "debug": true,
    "database": "root:yinzhengjie@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true",
    "hosts": "",
    "maxConns": 20,
    "maxIdle": 15,
    "listen": ":6030",
    "trustable": [""],
    "http": {
        "enabled": true,
        "listen": "0.0.0.0:6031"
    }
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/hbs/config/cfg.json

6>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/nodata/config/cfg.json

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/nodata/config/cfg.json
{
    "debug": true,
    "http": {
        "enabled": true,
        "listen": "0.0.0.0:6090"
    },
    "plus_api":{
        "connectTimeout": 500,
        "requestTimeout": 2000,
        "addr": "http://127.0.0.1:8080",
        "token": "default-token-used-in-server-side"
    },
    "config": {
        "enabled": true,
        "dsn": "root:yinzhengjie@tcp(127.0.0.1:3306)/falcon_portal?loc=Local&parseTime=true&wait_timeout=604800",
        "maxIdle": 4
    },
    "collector":{
        "enabled": true,
        "batch": 200,
        "concurrent": 10
    },
    "sender":{
        "enabled": true,
        "connectTimeout": 500,
        "requestTimeout": 2000,
        "transferAddr": "0.0.0.0:6060",
        "batch": 500
    }
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/nodata/config/cfg.json

7>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/api/config/cfg.json 

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/api/config/cfg.json
{
        "log_level": "debug",
        "db": {
                "falcon_portal": "root:yinzhengjie@tcp(127.0.0.1:3306)/falcon_portal?charset=utf8&parseTime=True&loc=Local",
                "graph": "root:yinzhengjie@tcp(127.0.0.1:3306)/graph?charset=utf8&parseTime=True&loc=Local",
                "uic": "root:yinzhengjie@tcp(127.0.0.1:3306)/uic?charset=utf8&parseTime=True&loc=Local",
                "dashboard": "root:yinzhengjie@tcp(127.0.0.1:3306)/dashboard?charset=utf8&parseTime=True&loc=Local",
                "alarms": "root:yinzhengjie@tcp(127.0.0.1:3306)/alarms?charset=utf8&parseTime=True&loc=Local",
                "db_bug": true
        },
        "graphs": {
                "cluster": {
                        "graph-00": "127.0.0.1:6070"
                },
                "max_conns": 100,
                "max_idle": 100,
                "conn_timeout": 1000,
                "call_timeout": 5000,
                "numberOfReplicas": 500
        },
        "metric_list_file": "./api/data/metric",
        "web_port": "0.0.0.0:8080",
        "access_control": true,
        "signup_disable": false,
        "salt": "",
        "skip_auth": false,
        "default_token": "default-token-used-in-server-side",
        "gen_doc": false,
        "gen_doc_path": "doc/module.html"
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/api/config/cfg.json

8>.修改配置文件:/yinzhengjie/open-falcon/workspace/open-falcon/alarm/config/cfg.json

[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/alarm/config/cfg.json
{
    "log_level": "debug",
    "http": {
        "enabled": true,
        "listen": "0.0.0.0:9912"
    },
    "redis": {
        "addr": "127.0.0.1:6379",
        "maxIdle": 5,
        "highQueues": [
            "event:p0",
            "event:p1",
            "event:p2"
        ],
        "lowQueues": [
            "event:p3",
            "event:p4",
            "event:p5",
            "event:p6"
        ],
        "userIMQueue": "/queue/user/im",
        "userSmsQueue": "/queue/user/sms",
        "userMailQueue": "/queue/user/mail"
    },
    "api": {
        "im": "http://127.0.0.1:10086/wechat",
        "sms": "http://127.0.0.1:10086/sms",
        "mail": "http://127.0.0.1:10086/mail",
        "dashboard": "http://127.0.0.1:8081",
        "plus_api":"http://127.0.0.1:8080",
        "plus_api_token": "default-token-used-in-server-side"
    },
    "falcon_portal": {
        "addr": "root:yinzhengjie@tcp(127.0.0.1:3306)/alarms?charset=utf8&loc=Asia%2FChongqing",
        "idle": 10,
        "max": 100
    },
    "worker": {
        "im": 10,
        "sms": 10,
        "mail": 50
    },
    "housekeeper": {
        "event_retention_days": 7,
        "event_delete_batch": 100
    }
}
[root@node101 open-falcon]# 
[root@node101 open-falcon]# cat /yinzhengjie/open-falcon/workspace/open-falcon/alarm/config/cfg.json

9>.启动后端模块

[root@node101 ~]# cd /yinzhengjie/open-falcon/workspace/open-falcon/
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ll
total 3940
drwxrwxr-x. 7  501  501    4096 Aug 15  2017 agent
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 aggregator
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 alarm
drwxrwxr-x. 6  501  501    4096 Aug 15  2017 api
drwxr-xr-x. 3 root root    4096 Nov 17 05:39 data
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 gateway
drwxrwxr-x. 6  501  501    4096 Aug 15  2017 graph
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 hbs
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 judge
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 nodata
-rwxrwxr-x. 1  501  501 3987469 Aug 15  2017 open-falcon
lrwxrwxrwx. 1  501  501      16 Aug 15  2017 plugins -> ./agent/plugins/
lrwxrwxrwx. 1  501  501      15 Aug 15  2017 public -> ./agent/public/
drwxrwxr-x. 5  501  501    4096 Aug 15  2017 transfer
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ./open-falcon start                #启动服务
[falcon-graph] 5595
[falcon-hbs] 5605
[falcon-judge] 5613
[falcon-transfer] 5620
[falcon-nodata] 5627
[falcon-aggregator] 5633
[falcon-agent] 5642
[falcon-gateway] 5649
[falcon-api] 5657
[falcon-alarm] 5666
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ./open-falcon check                  #检查所有模块的启动状况
        falcon-graph         UP            5595 
          falcon-hbs         UP            5605 
        falcon-judge         UP            5613 
     falcon-transfer         UP            5620 
       falcon-nodata         UP            5627 
   falcon-aggregator         UP            5633 
        falcon-agent         UP            5642 
      falcon-gateway         UP            5649 
          falcon-api         UP            5657 
        falcon-alarm         UP            5666 
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ./open-falcon  --help
Usage:
  open-falcon [flags]
  open-falcon [command]

Available Commands:
  check       Check the status of Open-Falcon modules
  help        Help about any command
  monitor     Display an Open-Falcon module's log
  reload      Reload an Open-Falcon module's configuration file
  restart     Restart Open-Falcon modules
  start       Start Open-Falcon modules
  stop        Stop Open-Falcon modules

Flags:
  -v, --version   show version

Use "open-falcon [command] --help" for more information about a command.
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ./open-falcon --help                  #查看open-falcon脚本的监控信息
[root@node101 open-falcon]# ./open-falcon  monitor --help
Display the log of the specified Open-Falcon module.
A module represents a single node in a cluster.
Modules:
  graph hbs judge transfer nodata aggregator agent gateway api alarm

Usage:
  open-falcon monitor [Module ...] [flags]
[root@node101 open-falcon]# 
[root@node101 open-falcon]# ./open-falcon monitor --help              #查看某个命令的帮助信息

 

三.前端部署

1>.创建工作目录

[root@node101 ~]# echo "export WORKSPACE=/yinzhengjie/open-falcon/workspace/data" >> /etc/profile
[root@node101 ~]# 
[root@node101 ~]# source /etc/profile
[root@node101 ~]# 
[root@node101 ~]# ll /yinzhengjie/open-falcon/workspace/
total 0
drwxrwxr-x. 13 501 501 203 Dec 11 17:33 open-falcon
[root@node101 ~]# 
[root@node101 ~]# mkdir  $WORKSPACE
[root@node101 ~]# 
[root@node101 ~]# ll /yinzhengjie/open-falcon/workspace/
total 0
drwxr-xr-x   2 root root   6 Dec 12 10:21 data
drwxrwxr-x. 13  501  501 203 Dec 11 17:33 open-falcon
[root@node101 ~]# 
[root@node101 ~]# 
[root@node101 ~]# cd $WORKSPACE
[root@node101 data]# 
[root@node101 data]# ll
total 0
[root@node101 data]#
[root@node101 data]# pwd
/yinzhengjie/open-falcon/workspace/data
[root@node101 data]# 

2>.克隆前端组件代码

[root@node101 data]# pwd
/yinzhengjie/open-falcon/workspace/data
[root@node101 data]# 
[root@node101 data]# ll
total 0
[root@node101 data]#
[root@node101 data]# git clone https://github.com/open-falcon/dashboard.git
Cloning into 'dashboard'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1170 (delta 0), reused 0 (delta 0), pack-reused 1169
Receiving objects: 100% (1170/1170), 1.45 MiB | 30.00 KiB/s, done.
Resolving deltas: 100% (646/646), done.
[root@node101 data]# 
[root@node101 data]# ll
total 0
drwxr-xr-x 6 root root 277 Dec 12 10:23 dashboard
[root@node101 data]# 
[root@node101 data]# ll dashboard/
total 56
-rw-r--r--  1 root root    97 Dec 12 10:23 babel.cfg
-rwxr-xr-x  1 root root  2653 Dec 12 10:23 control
-rw-r--r--  1 root root   510 Dec 12 10:23 Dockerfile
-rw-r--r--  1 root root   319 Dec 12 10:23 entrypoint.sh
-rw-r--r--  1 root root   170 Dec 12 10:23 gunicorn.conf
-rw-r--r--  1 root root  1235 Dec 12 10:23 i18n.md
-rw-r--r--  1 root root 11358 Dec 12 10:23 LICENSE
-rw-r--r--  1 root root   462 Dec 12 10:23 NOTICE
-rw-r--r--  1 root root   140 Dec 12 10:23 pip_requirements.txt
-rw-r--r--  1 root root  4961 Dec 12 10:23 README.md
drwxr-xr-x 10 root root   194 Dec 12 10:23 rrd
drwxr-xr-x  2 root root   101 Dec 12 10:23 screenshots
drwxr-xr-x  2 root root    65 Dec 12 10:23 scripts
-rwxr-xr-x  1 root root   978 Dec 12 10:23 wsgi.py
[root@node101 data]# 

3>.安装依赖包

[root@node101 data]# yum -y install python-virtualenv python-devel openldap-devel mysql-devel 
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-devel.x86_64 0:5.6.42-2.el7 will be installed
---> Package openldap-devel.x86_64 0:2.4.44-15.el7_5 will be installed
--> Processing Dependency: openldap(x86-64) = 2.4.44-15.el7_5 for package: openldap-devel-2.4.44-15.el7_5.x86_64
--> Processing Dependency: cyrus-sasl-devel(x86-64) for package: openldap-devel-2.4.44-15.el7_5.x86_64
---> Package python-devel.x86_64 0:2.7.5-69.el7_5 will be installed
--> Processing Dependency: python(x86-64) = 2.7.5-69.el7_5 for package: python-devel-2.7.5-69.el7_5.x86_64
---> Package python-virtualenv.noarch 0:15.1.0-2.el7 will be installed
--> Processing Dependency: python-setuptools for package: python-virtualenv-15.1.0-2.el7.noarch
--> Running transaction check
---> Package cyrus-sasl-devel.x86_64 0:2.1.26-23.el7 will be installed
--> Processing Dependency: cyrus-sasl(x86-64) = 2.1.26-23.el7 for package: cyrus-sasl-devel-2.1.26-23.el7.x86_64
---> Package openldap.x86_64 0:2.4.44-13.el7 will be updated
---> Package openldap.x86_64 0:2.4.44-15.el7_5 will be an update
---> Package python.x86_64 0:2.7.5-68.el7 will be updated
---> Package python.x86_64 0:2.7.5-69.el7_5 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-69.el7_5 for package: python-2.7.5-69.el7_5.x86_64
---> Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
--> Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
--> Running transaction check
---> Package cyrus-sasl.x86_64 0:2.1.26-23.el7 will be installed
---> Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
--> Processing Dependency: python-ipaddress for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--> Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
---> Package python-libs.x86_64 0:2.7.5-68.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-69.el7_5 will be an update
--> Running transaction check
---> Package python-backports.x86_64 0:1.0-8.el7 will be installed
---> Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
 Package                                                    Arch                          Version                                   Repository                                Size
===================================================================================================================================================================================
Installing:
 mysql-community-devel                                      x86_64                        5.6.42-2.el7                              mysql56-community                        3.4 M
 openldap-devel                                             x86_64                        2.4.44-15.el7_5                           updates                                  803 k
 python-devel                                               x86_64                        2.7.5-69.el7_5                            updates                                  397 k
 python-virtualenv                                          noarch                        15.1.0-2.el7                              base                                     1.7 M
Installing for dependencies:
 cyrus-sasl                                                 x86_64                        2.1.26-23.el7                             base                                      88 k
 cyrus-sasl-devel                                           x86_64                        2.1.26-23.el7                             base                                     310 k
 python-backports                                           x86_64                        1.0-8.el7                                 base                                     5.8 k
 python-backports-ssl_match_hostname                        noarch                        3.5.0.1-1.el7                             base                                      13 k
 python-ipaddress                                           noarch                        1.0.16-2.el7                              base                                      34 k
 python-setuptools                                          noarch                        0.9.8-7.el7                               base                                     397 k
Updating for dependencies:
 openldap                                                   x86_64                        2.4.44-15.el7_5                           updates                                  355 k
 python                                                     x86_64                        2.7.5-69.el7_5                            updates                                   93 k
 python-libs                                                x86_64                        2.7.5-69.el7_5                            updates                                  5.6 M

Transaction Summary
===================================================================================================================================================================================
Install  4 Packages (+6 Dependent packages)
Upgrade             ( 3 Dependent packages)

Total download size: 13 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/13): cyrus-sasl-2.1.26-23.el7.x86_64.rpm                                                                                                                 |  88 kB  00:00:00     
(2/13): cyrus-sasl-devel-2.1.26-23.el7.x86_64.rpm                                                                                                           | 310 kB  00:00:00     
(3/13): openldap-2.4.44-15.el7_5.x86_64.rpm                                                                                                                 | 355 kB  00:00:01     
(4/13): openldap-devel-2.4.44-15.el7_5.x86_64.rpm                                                                                                           | 803 kB  00:00:01     
(5/13): python-2.7.5-69.el7_5.x86_64.rpm                                                                                                                    |  93 kB  00:00:00     
(6/13): python-backports-1.0-8.el7.x86_64.rpm                                                                                                               | 5.8 kB  00:00:00     
(7/13): python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch.rpm                                                                                        |  13 kB  00:00:00     
(8/13): python-devel-2.7.5-69.el7_5.x86_64.rpm                                                                                                              | 397 kB  00:00:00     
(9/13): python-ipaddress-1.0.16-2.el7.noarch.rpm                                                                                                            |  34 kB  00:00:00     
(10/13): python-setuptools-0.9.8-7.el7.noarch.rpm                                                                                                           | 397 kB  00:00:00     
(11/13): python-virtualenv-15.1.0-2.el7.noarch.rpm                                                                                                          | 1.7 MB  00:00:00     
(12/13): python-libs-2.7.5-69.el7_5.x86_64.rpm                                                                                                              | 5.6 MB  00:00:00     
(13/13): mysql-community-devel-5.6.42-2.el7.x86_64.rpm                                                                                                      | 3.4 MB  00:00:12     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                              1.0 MB/s |  13 MB  00:00:12     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : openldap-2.4.44-15.el7_5.x86_64                                                                                                                                1/16 
  Updating   : python-libs-2.7.5-69.el7_5.x86_64                                                                                                                              2/16 
  Updating   : python-2.7.5-69.el7_5.x86_64                                                                                                                                   3/16 
  Installing : python-backports-1.0-8.el7.x86_64                                                                                                                              4/16 
  Installing : python-ipaddress-1.0.16-2.el7.noarch                                                                                                                           5/16 
  Installing : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                                                       6/16 
  Installing : python-setuptools-0.9.8-7.el7.noarch                                                                                                                           7/16 
  Installing : python-devel-2.7.5-69.el7_5.x86_64                                                                                                                             8/16 
  Installing : cyrus-sasl-2.1.26-23.el7.x86_64                                                                                                                                9/16 
  Installing : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                                                                                         10/16 
  Installing : openldap-devel-2.4.44-15.el7_5.x86_64                                                                                                                         11/16 
  Installing : python-virtualenv-15.1.0-2.el7.noarch                                                                                                                         12/16 
  Installing : mysql-community-devel-5.6.42-2.el7.x86_64                                                                                                                     13/16 
  Cleanup    : python-2.7.5-68.el7.x86_64                                                                                                                                    14/16 
  Cleanup    : python-libs-2.7.5-68.el7.x86_64                                                                                                                               15/16 
  Cleanup    : openldap-2.4.44-13.el7.x86_64                                                                                                                                 16/16 
  Verifying  : python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch                                                                                                       1/16 
  Verifying  : python-2.7.5-69.el7_5.x86_64                                                                                                                                   2/16 
  Verifying  : mysql-community-devel-5.6.42-2.el7.x86_64                                                                                                                      3/16 
  Verifying  : python-backports-1.0-8.el7.x86_64                                                                                                                              4/16 
  Verifying  : python-libs-2.7.5-69.el7_5.x86_64                                                                                                                              5/16 
  Verifying  : python-ipaddress-1.0.16-2.el7.noarch                                                                                                                           6/16 
  Verifying  : openldap-devel-2.4.44-15.el7_5.x86_64                                                                                                                          7/16 
  Verifying  : python-devel-2.7.5-69.el7_5.x86_64                                                                                                                             8/16 
  Verifying  : python-virtualenv-15.1.0-2.el7.noarch                                                                                                                          9/16 
  Verifying  : cyrus-sasl-devel-2.1.26-23.el7.x86_64                                                                                                                         10/16 
  Verifying  : python-setuptools-0.9.8-7.el7.noarch                                                                                                                          11/16 
  Verifying  : openldap-2.4.44-15.el7_5.x86_64                                                                                                                               12/16 
  Verifying  : cyrus-sasl-2.1.26-23.el7.x86_64                                                                                                                               13/16 
  Verifying  : python-libs-2.7.5-68.el7.x86_64                                                                                                                               14/16 
  Verifying  : python-2.7.5-68.el7.x86_64                                                                                                                                    15/16 
  Verifying  : openldap-2.4.44-13.el7.x86_64                                                                                                                                 16/16 

Installed:
  mysql-community-devel.x86_64 0:5.6.42-2.el7     openldap-devel.x86_64 0:2.4.44-15.el7_5     python-devel.x86_64 0:2.7.5-69.el7_5     python-virtualenv.noarch 0:15.1.0-2.el7    

Dependency Installed:
  cyrus-sasl.x86_64 0:2.1.26-23.el7       cyrus-sasl-devel.x86_64 0:2.1.26-23.el7  python-backports.x86_64 0:1.0-8.el7  python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 
  python-ipaddress.noarch 0:1.0.16-2.el7  python-setuptools.noarch 0:0.9.8-7.el7  

Dependency Updated:
  openldap.x86_64 0:2.4.44-15.el7_5                          python.x86_64 0:2.7.5-69.el7_5                          python-libs.x86_64 0:2.7.5-69.el7_5                         

Complete!
[root@node101 data]# 
[root@node101 data]# yum -y install python-virtualenv python-devel openldap-devel mysql-devel
[root@node101 data]# yum -y groupinstall "Development tools"
Loaded plugins: fastestmirror
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: ftp.cuhk.edu.hk
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
---> Package bison.x86_64 0:3.0.4-1.el7 will be installed
---> Package byacc.x86_64 0:1.9.20130304-3.el7 will be installed
---> Package cscope.x86_64 0:15.8-10.el7 will be installed
--> Processing Dependency: emacs-filesystem for package: cscope-15.8-10.el7.x86_64
---> Package ctags.x86_64 0:5.8-13.el7 will be installed
---> Package diffstat.x86_64 0:1.57-4.el7 will be installed
---> Package doxygen.x86_64 1:1.8.5-3.el7 will be installed
---> Package elfutils.x86_64 0:0.170-4.el7 will be installed
---> Package flex.x86_64 0:2.5.37-3.el7 will be installed
---> Package gcc-gfortran.x86_64 0:4.8.5-28.el7_5.1 will be installed
--> Processing Dependency: libquadmath-devel = 4.8.5-28.el7_5.1 for package: gcc-gfortran-4.8.5-28.el7_5.1.x86_64
--> Processing Dependency: libquadmath = 4.8.5-28.el7_5.1 for package: gcc-gfortran-4.8.5-28.el7_5.1.x86_64
--> Processing Dependency: libgfortran = 4.8.5-28.el7_5.1 for package: gcc-gfortran-4.8.5-28.el7_5.1.x86_64
--> Processing Dependency: libgfortran.so.3()(64bit) for package: gcc-gfortran-4.8.5-28.el7_5.1.x86_64
---> Package indent.x86_64 0:2.2.11-13.el7 will be installed
---> Package intltool.noarch 0:0.50.2-7.el7 will be installed
--> Processing Dependency: perl(XML::Parser) for package: intltool-0.50.2-7.el7.noarch
--> Processing Dependency: gettext-devel for package: intltool-0.50.2-7.el7.noarch
---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package patch.x86_64 0:2.7.1-10.el7_5 will be installed
---> Package patchutils.x86_64 0:0.3.3-4.el7 will be installed
---> Package rcs.x86_64 0:5.9.0-5.el7 will be installed
---> Package redhat-rpm-config.noarch 0:9.1.0-80.el7.centos will be installed
--> Processing Dependency: dwz >= 0.4 for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
--> Processing Dependency: zip for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
--> Processing Dependency: perl-srpm-macros for package: redhat-rpm-config-9.1.0-80.el7.centos.noarch
---> Package rpm-build.x86_64 0:4.11.3-32.el7 will be installed
--> Processing Dependency: unzip for package: rpm-build-4.11.3-32.el7.x86_64
--> Processing Dependency: bzip2 for package: rpm-build-4.11.3-32.el7.x86_64
--> Processing Dependency: /usr/bin/gdb-add-index for package: rpm-build-4.11.3-32.el7.x86_64
---> Package rpm-sign.x86_64 0:4.11.3-32.el7 will be installed
---> Package subversion.x86_64 0:1.7.14-14.el7 will be installed
--> Processing Dependency: subversion-libs(x86-64) = 1.7.14-14.el7 for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_wc-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_subr-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_repos-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_svn-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_neon-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra_local-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_ra-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_util-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs_base-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_fs-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_diff-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_delta-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libsvn_client-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
--> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.7.14-14.el7.x86_64
---> Package swig.x86_64 0:2.0.10-5.el7 will be installed
---> Package systemtap.x86_64 0:3.2-8.el7_5 will be installed
--> Processing Dependency: systemtap-devel = 3.2-8.el7_5 for package: systemtap-3.2-8.el7_5.x86_64
--> Processing Dependency: systemtap-client = 3.2-8.el7_5 for package: systemtap-3.2-8.el7_5.x86_64
--> Running transaction check
---> Package apr.x86_64 0:1.4.8-3.el7_4.1 will be installed
---> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
---> Package bzip2.x86_64 0:1.0.6-13.el7 will be installed
---> Package dwz.x86_64 0:0.11-3.el7 will be installed
---> Package emacs-filesystem.noarch 1:24.3-20.el7_4 will be installed
---> Package gdb.x86_64 0:7.6.1-110.el7 will be installed
---> Package gettext-devel.x86_64 0:0.19.8.1-2.el7 will be installed
--> Processing Dependency: gettext-common-devel = 0.19.8.1-2.el7 for package: gettext-devel-0.19.8.1-2.el7.x86_64
---> Package libgfortran.x86_64 0:4.8.5-28.el7_5.1 will be installed
---> Package libquadmath.x86_64 0:4.8.5-28.el7_5.1 will be installed
---> Package libquadmath-devel.x86_64 0:4.8.5-28.el7_5.1 will be installed
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package neon.x86_64 0:0.30.0-3.el7 will be installed
--> Processing Dependency: libgnutls.so.28(GNUTLS_2_12)(64bit) for package: neon-0.30.0-3.el7.x86_64
--> Processing Dependency: libgnutls.so.28(GNUTLS_1_4)(64bit) for package: neon-0.30.0-3.el7.x86_64
--> Processing Dependency: libproxy.so.1()(64bit) for package: neon-0.30.0-3.el7.x86_64
--> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.30.0-3.el7.x86_64
--> Processing Dependency: libgnutls.so.28()(64bit) for package: neon-0.30.0-3.el7.x86_64
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
---> Package perl-XML-Parser.x86_64 0:2.41-10.el7 will be installed
---> Package perl-srpm-macros.noarch 0:1-8.el7 will be installed
---> Package subversion-libs.x86_64 0:1.7.14-14.el7 will be installed
---> Package systemtap-client.x86_64 0:3.2-8.el7_5 will be installed
--> Processing Dependency: systemtap-runtime = 3.2-8.el7_5 for package: systemtap-client-3.2-8.el7_5.x86_64
--> Processing Dependency: mokutil for package: systemtap-client-3.2-8.el7_5.x86_64
--> Processing Dependency: libavahi-common.so.3()(64bit) for package: systemtap-client-3.2-8.el7_5.x86_64
--> Processing Dependency: libavahi-client.so.3()(64bit) for package: systemtap-client-3.2-8.el7_5.x86_64
---> Package systemtap-devel.x86_64 0:3.2-8.el7_5 will be installed
--> Processing Dependency: kernel-devel-uname-r for package: systemtap-devel-3.2-8.el7_5.x86_64
---> Package unzip.x86_64 0:6.0-19.el7 will be installed
---> Package zip.x86_64 0:3.0-11.el7 will be installed
--> Running transaction check
---> Package avahi-libs.x86_64 0:0.6.31-19.el7 will be installed
---> Package gettext-common-devel.noarch 0:0.19.8.1-2.el7 will be installed
---> Package gnutls.x86_64 0:3.3.26-9.el7 will be installed
--> Processing Dependency: trousers >= 0.3.11.2 for package: gnutls-3.3.26-9.el7.x86_64
--> Processing Dependency: libnettle.so.4()(64bit) for package: gnutls-3.3.26-9.el7.x86_64
--> Processing Dependency: libhogweed.so.2()(64bit) for package: gnutls-3.3.26-9.el7.x86_64
---> Package kernel-debug-devel.x86_64 0:3.10.0-862.14.4.el7 will be installed
---> Package libproxy.x86_64 0:0.4.11-11.el7 will be installed
--> Processing Dependency: libmodman.so.1()(64bit) for package: libproxy-0.4.11-11.el7.x86_64
---> Package mokutil.x86_64 0:12-2.el7 will be installed
--> Processing Dependency: libefivar.so.1(libefivar.so.0)(64bit) for package: mokutil-12-2.el7.x86_64
--> Processing Dependency: libefivar.so.1(LIBEFIVAR_0.24)(64bit) for package: mokutil-12-2.el7.x86_64
--> Processing Dependency: libefivar.so.1()(64bit) for package: mokutil-12-2.el7.x86_64
---> Package pakchois.x86_64 0:0.4-10.el7 will be installed
---> Package systemtap-runtime.x86_64 0:3.2-8.el7_5 will be installed
--> Processing Dependency: libsymtabAPI.so.9.3()(64bit) for package: systemtap-runtime-3.2-8.el7_5.x86_64
--> Processing Dependency: libdyninstAPI.so.9.3()(64bit) for package: systemtap-runtime-3.2-8.el7_5.x86_64
--> Running transaction check
---> Package dyninst.x86_64 0:9.3.1-1.el7 will be installed
--> Processing Dependency: libdwarf.so.0()(64bit) for package: dyninst-9.3.1-1.el7.x86_64
--> Processing Dependency: libboost_thread-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-1.el7.x86_64
--> Processing Dependency: libboost_system-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-1.el7.x86_64
--> Processing Dependency: libboost_date_time-mt.so.1.53.0()(64bit) for package: dyninst-9.3.1-1.el7.x86_64
---> Package efivar-libs.x86_64 0:31-4.el7 will be installed
---> Package libmodman.x86_64 0:2.0.1-8.el7 will be installed
---> Package nettle.x86_64 0:2.7.1-8.el7 will be installed
---> Package trousers.x86_64 0:0.3.14-2.el7 will be installed
--> Running transaction check
---> Package boost-date-time.x86_64 0:1.53.0-27.el7 will be installed
---> Package boost-system.x86_64 0:1.53.0-27.el7 will be installed
---> Package boost-thread.x86_64 0:1.53.0-27.el7 will be installed
---> Package libdwarf.x86_64 0:20130207-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================================================================================
 Package                                           Arch                                Version                                          Repository                            Size
===================================================================================================================================================================================
Installing for group install "Development Tools":
 autoconf                                          noarch                              2.69-11.el7                                      base                                 701 k
 automake                                          noarch                              1.13.4-3.el7                                     base                                 679 k
 bison                                             x86_64                              3.0.4-1.el7                                      base                                 674 k
 byacc                                             x86_64                              1.9.20130304-3.el7                               base                                  65 k
 cscope                                            x86_64                              15.8-10.el7                                      base                                 203 k
 ctags                                             x86_64                              5.8-13.el7                                       base                                 155 k
 diffstat                                          x86_64                              1.57-4.el7                                       base                                  35 k
 doxygen                                           x86_64                              1:1.8.5-3.el7                                    base                                 3.6 M
 elfutils                                          x86_64                              0.170-4.el7                                      base                                 282 k
 flex                                              x86_64                              2.5.37-3.el7                                     base                                 292 k
 gcc-gfortran                                      x86_64                              4.8.5-28.el7_5.1                                 updates                              6.7 M
 indent                                            x86_64                              2.2.11-13.el7                                    base                                 150 k
 intltool                                          noarch                              0.50.2-7.el7                                     base                                  59 k
 libtool                                           x86_64                              2.4.2-22.el7_3                                   base                                 588 k
 patch                                             x86_64                              2.7.1-10.el7_5                                   updates                              110 k
 patchutils                                        x86_64                              0.3.3-4.el7                                      base                                 104 k
 rcs                                               x86_64                              5.9.0-5.el7                                      base                                 230 k
 redhat-rpm-config                                 noarch                              9.1.0-80.el7.centos                              base                                  79 k
 rpm-build                                         x86_64                              4.11.3-32.el7                                    base                                 147 k
 rpm-sign                                          x86_64                              4.11.3-32.el7                                    base                                  47 k
 subversion                                        x86_64                              1.7.14-14.el7                                    base                                 1.0 M
 swig                                              x86_64                              2.0.10-5.el7                                     base                                 1.3 M
 systemtap                                         x86_64                              3.2-8.el7_5                                      updates                              145 k
Installing for dependencies:
 apr                                               x86_64                              1.4.8-3.el7_4.1                                  base                                 103 k
 apr-util                                          x86_64                              1.5.2-6.el7                                      base                                  92 k
 avahi-libs                                        x86_64                              0.6.31-19.el7                                    base                                  61 k
 boost-date-time                                   x86_64                              1.53.0-27.el7                                    base                                  52 k
 boost-system                                      x86_64                              1.53.0-27.el7                                    base                                  40 k
 boost-thread                                      x86_64                              1.53.0-27.el7                                    base                                  57 k
 bzip2                                             x86_64                              1.0.6-13.el7                                     base                                  52 k
 dwz                                               x86_64                              0.11-3.el7                                       base                                  99 k
 dyninst                                           x86_64                              9.3.1-1.el7                                      base                                 3.5 M
 efivar-libs                                       x86_64                              31-4.el7                                         base                                  68 k
 emacs-filesystem                                  noarch                              1:24.3-20.el7_4                                  base                                  58 k
 gdb                                               x86_64                              7.6.1-110.el7                                    base                                 2.4 M
 gettext-common-devel                              noarch                              0.19.8.1-2.el7                                   base                                 410 k
 gettext-devel                                     x86_64                              0.19.8.1-2.el7                                   base                                 320 k
 gnutls                                            x86_64                              3.3.26-9.el7                                     base                                 677 k
 kernel-debug-devel                                x86_64                              3.10.0-862.14.4.el7                              updates                               16 M
 libdwarf                                          x86_64                              20130207-4.el7                                   base                                 109 k
 libgfortran                                       x86_64                              4.8.5-28.el7_5.1                                 updates                              299 k
 libmodman                                         x86_64                              2.0.1-8.el7                                      base                                  28 k
 libproxy                                          x86_64                              0.4.11-11.el7                                    base                                  64 k
 libquadmath                                       x86_64                              4.8.5-28.el7_5.1                                 updates                              188 k
 libquadmath-devel                                 x86_64                              4.8.5-28.el7_5.1                                 updates                               51 k
 m4                                                x86_64                              1.4.16-10.el7                                    base                                 256 k
 mokutil                                           x86_64                              12-2.el7                                         updates                               41 k
 neon                                              x86_64                              0.30.0-3.el7                                     base                                 165 k
 nettle                                            x86_64                              2.7.1-8.el7                                      base                                 327 k
 pakchois                                          x86_64                              0.4-10.el7                                       base                                  14 k
 perl-Test-Harness                                 noarch                              3.28-3.el7                                       base                                 302 k
 perl-Thread-Queue                                 noarch                              3.02-2.el7                                       base                                  17 k
 perl-XML-Parser                                   x86_64                              2.41-10.el7                                      base                                 223 k
 perl-srpm-macros                                  noarch                              1-8.el7                                          base                                 4.6 k
 subversion-libs                                   x86_64                              1.7.14-14.el7                                    base                                 922 k
 systemtap-client                                  x86_64                              3.2-8.el7_5                                      updates                              3.7 M
 systemtap-devel                                   x86_64                              3.2-8.el7_5                                      updates                              2.0 M
 systemtap-runtime                                 x86_64                              3.2-8.el7_5                                      updates                              404 k
 trousers                                          x86_64                              0.3.14-2.el7                                     base                                 289 k
 unzip                                             x86_64                              6.0-19.el7                                       base                                 170 k
 zip                                               x86_64                              3.0-11.el7                                       base                                 260 k

Transaction Summary
===================================================================================================================================================================================
Install  23 Packages (+38 Dependent packages)

Total download size: 51 M
Installed size: 142 M
Downloading packages:
(1/61): apr-1.4.8-3.el7_4.1.x86_64.rpm                                                                                                                      | 103 kB  00:00:00     
(2/61): autoconf-2.69-11.el7.noarch.rpm                                                                                                                     | 701 kB  00:00:00     
(3/61): automake-1.13.4-3.el7.noarch.rpm                                                                                                                    | 679 kB  00:00:00     
(4/61): avahi-libs-0.6.31-19.el7.x86_64.rpm                                                                                                                 |  61 kB  00:00:00     
(5/61): apr-util-1.5.2-6.el7.x86_64.rpm                                                                                                                     |  92 kB  00:00:00     
(6/61): boost-date-time-1.53.0-27.el7.x86_64.rpm                                                                                                            |  52 kB  00:00:00     
(7/61): boost-system-1.53.0-27.el7.x86_64.rpm                                                                                                               |  40 kB  00:00:00     
(8/61): bison-3.0.4-1.el7.x86_64.rpm                                                                                                                        | 674 kB  00:00:00     
(9/61): boost-thread-1.53.0-27.el7.x86_64.rpm                                                                                                               |  57 kB  00:00:00     
(10/61): bzip2-1.0.6-13.el7.x86_64.rpm                                                                                                                      |  52 kB  00:00:00     
(11/61): byacc-1.9.20130304-3.el7.x86_64.rpm                                                                                                                |  65 kB  00:00:00     
(12/61): ctags-5.8-13.el7.x86_64.rpm                                                                                                                        | 155 kB  00:00:00     
(13/61): diffstat-1.57-4.el7.x86_64.rpm                                                                                                                     |  35 kB  00:00:00     
(14/61): cscope-15.8-10.el7.x86_64.rpm                                                                                                                      | 203 kB  00:00:00     
(15/61): dwz-0.11-3.el7.x86_64.rpm                                                                                                                          |  99 kB  00:00:00     
(16/61): dyninst-9.3.1-1.el7.x86_64.rpm                                                                                                                     | 3.5 MB  00:00:00     
(17/61): doxygen-1.8.5-3.el7.x86_64.rpm                                                                                                                     | 3.6 MB  00:00:00     
(18/61): efivar-libs-31-4.el7.x86_64.rpm                                                                                                                    |  68 kB  00:00:00     
(19/61): elfutils-0.170-4.el7.x86_64.rpm                                                                                                                    | 282 kB  00:00:00     
(20/61): emacs-filesystem-24.3-20.el7_4.noarch.rpm                                                                                                          |  58 kB  00:00:00     
(21/61): flex-2.5.37-3.el7.x86_64.rpm                                                                                                                       | 292 kB  00:00:00     
(22/61): gettext-common-devel-0.19.8.1-2.el7.noarch.rpm                                                                                                     | 410 kB  00:00:00     
(23/61): gettext-devel-0.19.8.1-2.el7.x86_64.rpm                                                                                                            | 320 kB  00:00:00     
(24/61): gnutls-3.3.26-9.el7.x86_64.rpm                                                                                                                     | 677 kB  00:00:00     
(25/61): gdb-7.6.1-110.el7.x86_64.rpm                                                                                                                       | 2.4 MB  00:00:00     
(26/61): indent-2.2.11-13.el7.x86_64.rpm                                                                                                                    | 150 kB  00:00:00     
(27/61): intltool-0.50.2-7.el7.noarch.rpm                                                                                                                   |  59 kB  00:00:00     
(28/61): libdwarf-20130207-4.el7.x86_64.rpm                                                                                                                 | 109 kB  00:00:00     
(29/61): gcc-gfortran-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                           | 6.7 MB  00:00:01     
(30/61): libgfortran-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                            | 299 kB  00:00:00     
(31/61): libproxy-0.4.11-11.el7.x86_64.rpm                                                                                                                  |  64 kB  00:00:00     
(32/61): libmodman-2.0.1-8.el7.x86_64.rpm                                                                                                                   |  28 kB  00:00:00     
(33/61): libquadmath-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                            | 188 kB  00:00:00     
(34/61): libquadmath-devel-4.8.5-28.el7_5.1.x86_64.rpm                                                                                                      |  51 kB  00:00:00     
(35/61): mokutil-12-2.el7.x86_64.rpm                                                                                                                        |  41 kB  00:00:00     
(36/61): m4-1.4.16-10.el7.x86_64.rpm                                                                                                                        | 256 kB  00:00:00     
(37/61): libtool-2.4.2-22.el7_3.x86_64.rpm                                                                                                                  | 588 kB  00:00:00     
(38/61): neon-0.30.0-3.el7.x86_64.rpm                                                                                                                       | 165 kB  00:00:00     
(39/61): nettle-2.7.1-8.el7.x86_64.rpm                                                                                                                      | 327 kB  00:00:00     
(40/61): pakchois-0.4-10.el7.x86_64.rpm                                                                                                                     |  14 kB  00:00:00     
(41/61): patch-2.7.1-10.el7_5.x86_64.rpm                                                                                                                    | 110 kB  00:00:00     
(42/61): perl-Test-Harness-3.28-3.el7.noarch.rpm                                                                                                            | 302 kB  00:00:00     
(43/61): patchutils-0.3.3-4.el7.x86_64.rpm                                                                                                                  | 104 kB  00:00:00     
(44/61): perl-Thread-Queue-3.02-2.el7.noarch.rpm                                                                                                            |  17 kB  00:00:00     
(45/61): perl-srpm-macros-1-8.el7.noarch.rpm                                                                                                                | 4.6 kB  00:00:00     
(46/61): perl-XML-Parser-2.41-10.el7.x86_64.rpm                                                                                                             | 223 kB  00:00:00     
(47/61): redhat-rpm-config-9.1.0-80.el7.centos.noarch.rpm                                                                                                   |  79 kB  00:00:00     
(48/61): rcs-5.9.0-5.el7.x86_64.rpm                                                                                                                         | 230 kB  00:00:00     
(49/61): rpm-build-4.11.3-32.el7.x86_64.rpm                                                                                                                 | 147 kB  00:00:00     
(50/61): rpm-sign-4.11.3-32.el7.x86_64.rpm                                                                                                                  |  47 kB  00:00:00     
(51/61): subversion-1.7.14-14.el7.x86_64.rpm                                                                                                                | 1.0 MB  00:00:00     
(52/61): subversion-libs-1.7.14-14.el7.x86_64.rpm                                                                                                           | 922 kB  00:00:00     
(53/61): systemtap-3.2-8.el7_5.x86_64.rpm                                                                                                                   | 145 kB  00:00:00     
(54/61): swig-2.0.10-5.el7.x86_64.rpm                                                                                                                       | 1.3 MB  00:00:00     
(55/61): kernel-debug-devel-3.10.0-862.14.4.el7.x86_64.rpm                                                                                                  |  16 MB  00:00:02     
(56/61): systemtap-client-3.2-8.el7_5.x86_64.rpm                                                                                                            | 3.7 MB  00:00:00     
(57/61): systemtap-runtime-3.2-8.el7_5.x86_64.rpm                                                                                                           | 404 kB  00:00:00     
(58/61): trousers-0.3.14-2.el7.x86_64.rpm                                                                                                                   | 289 kB  00:00:00     
(59/61): unzip-6.0-19.el7.x86_64.rpm                                                                                                                        | 170 kB  00:00:00     
(60/61): zip-3.0-11.el7.x86_64.rpm                                                                                                                          | 260 kB  00:00:00     
(61/61): systemtap-devel-3.2-8.el7_5.x86_64.rpm                                                                                                             | 2.0 MB  00:00:00     
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                              9.2 MB/s |  51 MB  00:00:05     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : apr-1.4.8-3.el7_4.1.x86_64                                                                                                                                     1/61 
  Installing : libquadmath-4.8.5-28.el7_5.1.x86_64                                                                                                                            2/61 
  Installing : m4-1.4.16-10.el7.x86_64                                                                                                                                        3/61 
  Installing : autoconf-2.69-11.el7.noarch                                                                                                                                    4/61 
  Installing : apr-util-1.5.2-6.el7.x86_64                                                                                                                                    5/61 
  Installing : unzip-6.0-19.el7.x86_64                                                                                                                                        6/61 
  Installing : zip-3.0-11.el7.x86_64                                                                                                                                          7/61 
  Installing : patch-2.7.1-10.el7_5.x86_64                                                                                                                                    8/61 
  Installing : perl-Thread-Queue-3.02-2.el7.noarch                                                                                                                            9/61 
  Installing : avahi-libs-0.6.31-19.el7.x86_64                                                                                                                               10/61 
  Installing : boost-system-1.53.0-27.el7.x86_64                                                                                                                             11/61 
  Installing : boost-thread-1.53.0-27.el7.x86_64                                                                                                                             12/61 
  Installing : libquadmath-devel-4.8.5-28.el7_5.1.x86_64                                                                                                                     13/61 
  Installing : libgfortran-4.8.5-28.el7_5.1.x86_64                                                                                                                           14/61 
  Installing : perl-srpm-macros-1-8.el7.noarch                                                                                                                               15/61 
  Installing : pakchois-0.4-10.el7.x86_64                                                                                                                                    16/61 
  Installing : dwz-0.11-3.el7.x86_64                                                                                                                                         17/61 
  Installing : redhat-rpm-config-9.1.0-80.el7.centos.noarch                                                                                                                  18/61 
  Installing : efivar-libs-31-4.el7.x86_64                                                                                                                                   19/61 
  Installing : mokutil-12-2.el7.x86_64                                                                                                                                       20/61 
  Installing : bzip2-1.0.6-13.el7.x86_64                                                                                                                                     21/61 
  Installing : 1:emacs-filesystem-24.3-20.el7_4.noarch                                                                                                                       22/61 
  Installing : kernel-debug-devel-3.10.0-862.14.4.el7.x86_64                                                                                                                 23/61 
  Installing : systemtap-devel-3.2-8.el7_5.x86_64                                                                                                                            24/61 
  Installing : boost-date-time-1.53.0-27.el7.x86_64                                                                                                                          25/61 
  Installing : libmodman-2.0.1-8.el7.x86_64                                                                                                                                  26/61 
  Installing : libproxy-0.4.11-11.el7.x86_64                                                                                                                                 27/61 
  Installing : gettext-common-devel-0.19.8.1-2.el7.noarch                                                                                                                    28/61 
  Installing : gettext-devel-0.19.8.1-2.el7.x86_64                                                                                                                           29/61 
  Installing : gdb-7.6.1-110.el7.x86_64                                                                                                                                      30/61 
  Installing : elfutils-0.170-4.el7.x86_64                                                                                                                                   31/61 
  Installing : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                           32/61 
  Installing : automake-1.13.4-3.el7.noarch                                                                                                                                  33/61 
  Installing : nettle-2.7.1-8.el7.x86_64                                                                                                                                     34/61 
  Installing : libdwarf-20130207-4.el7.x86_64                                                                                                                                35/61 
  Installing : dyninst-9.3.1-1.el7.x86_64                                                                                                                                    36/61 
  Installing : systemtap-runtime-3.2-8.el7_5.x86_64                                                                                                                          37/61 
  Installing : systemtap-client-3.2-8.el7_5.x86_64                                                                                                                           38/61 
  Installing : perl-XML-Parser-2.41-10.el7.x86_64                                                                                                                            39/61 
  Installing : trousers-0.3.14-2.el7.x86_64                                                                                                                                  40/61 
  Installing : gnutls-3.3.26-9.el7.x86_64                                                                                                                                    41/61 
  Installing : neon-0.30.0-3.el7.x86_64                                                                                                                                      42/61 
  Installing : subversion-libs-1.7.14-14.el7.x86_64                                                                                                                          43/61 
  Installing : subversion-1.7.14-14.el7.x86_64                                                                                                                               44/61 
  Installing : intltool-0.50.2-7.el7.noarch                                                                                                                                  45/61 
  Installing : systemtap-3.2-8.el7_5.x86_64                                                                                                                                  46/61 
  Installing : libtool-2.4.2-22.el7_3.x86_64                                                                                                                                 47/61 
  Installing : rpm-build-4.11.3-32.el7.x86_64                                                                                                                                48/61 
  Installing : cscope-15.8-10.el7.x86_64                                                                                                                                     49/61 
  Installing : gcc-gfortran-4.8.5-28.el7_5.1.x86_64                                                                                                                          50/61 
  Installing : bison-3.0.4-1.el7.x86_64                                                                                                                                      51/61 
  Installing : flex-2.5.37-3.el7.x86_64                                                                                                                                      52/61 
  Installing : diffstat-1.57-4.el7.x86_64                                                                                                                                    53/61 
  Installing : rpm-sign-4.11.3-32.el7.x86_64                                                                                                                                 54/61 
  Installing : patchutils-0.3.3-4.el7.x86_64                                                                                                                                 55/61 
  Installing : indent-2.2.11-13.el7.x86_64                                                                                                                                   56/61 
  Installing : swig-2.0.10-5.el7.x86_64                                                                                                                                      57/61 
  Installing : rcs-5.9.0-5.el7.x86_64                                                                                                                                        58/61 
  Installing : 1:doxygen-1.8.5-3.el7.x86_64                                                                                                                                  59/61 
  Installing : byacc-1.9.20130304-3.el7.x86_64                                                                                                                               60/61 
  Installing : ctags-5.8-13.el7.x86_64                                                                                                                                       61/61 
  Verifying  : trousers-0.3.14-2.el7.x86_64                                                                                                                                   1/61 
  Verifying  : ctags-5.8-13.el7.x86_64                                                                                                                                        2/61 
  Verifying  : subversion-libs-1.7.14-14.el7.x86_64                                                                                                                           3/61 
  Verifying  : systemtap-3.2-8.el7_5.x86_64                                                                                                                                   4/61 
  Verifying  : systemtap-devel-3.2-8.el7_5.x86_64                                                                                                                             5/61 
  Verifying  : perl-XML-Parser-2.41-10.el7.x86_64                                                                                                                             6/61 
  Verifying  : gettext-devel-0.19.8.1-2.el7.x86_64                                                                                                                            7/61 
  Verifying  : byacc-1.9.20130304-3.el7.x86_64                                                                                                                                8/61 
  Verifying  : libdwarf-20130207-4.el7.x86_64                                                                                                                                 9/61 
  Verifying  : mokutil-12-2.el7.x86_64                                                                                                                                       10/61 
  Verifying  : boost-system-1.53.0-27.el7.x86_64                                                                                                                             11/61 
  Verifying  : automake-1.13.4-3.el7.noarch                                                                                                                                  12/61 
  Verifying  : m4-1.4.16-10.el7.x86_64                                                                                                                                       13/61 
  Verifying  : systemtap-client-3.2-8.el7_5.x86_64                                                                                                                           14/61 
  Verifying  : 1:doxygen-1.8.5-3.el7.x86_64                                                                                                                                  15/61 
  Verifying  : dyninst-9.3.1-1.el7.x86_64                                                                                                                                    16/61 
  Verifying  : avahi-libs-0.6.31-19.el7.x86_64                                                                                                                               17/61 
  Verifying  : nettle-2.7.1-8.el7.x86_64                                                                                                                                     18/61 
  Verifying  : subversion-1.7.14-14.el7.x86_64                                                                                                                               19/61 
  Verifying  : gcc-gfortran-4.8.5-28.el7_5.1.x86_64                                                                                                                          20/61 
  Verifying  : perl-Test-Harness-3.28-3.el7.noarch                                                                                                                           21/61 
  Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                                                                                                                           22/61 
  Verifying  : elfutils-0.170-4.el7.x86_64                                                                                                                                   23/61 
  Verifying  : gdb-7.6.1-110.el7.x86_64                                                                                                                                      24/61 
  Verifying  : gnutls-3.3.26-9.el7.x86_64                                                                                                                                    25/61 
  Verifying  : intltool-0.50.2-7.el7.noarch                                                                                                                                  26/61 
  Verifying  : redhat-rpm-config-9.1.0-80.el7.centos.noarch                                                                                                                  27/61 
  Verifying  : rcs-5.9.0-5.el7.x86_64                                                                                                                                        28/61 
  Verifying  : swig-2.0.10-5.el7.x86_64                                                                                                                                      29/61 
  Verifying  : gettext-common-devel-0.19.8.1-2.el7.noarch                                                                                                                    30/61 
  Verifying  : libtool-2.4.2-22.el7_3.x86_64                                                                                                                                 31/61 
  Verifying  : boost-thread-1.53.0-27.el7.x86_64                                                                                                                             32/61 
  Verifying  : libquadmath-devel-4.8.5-28.el7_5.1.x86_64                                                                                                                     33/61 
  Verifying  : libmodman-2.0.1-8.el7.x86_64                                                                                                                                  34/61 
  Verifying  : bison-3.0.4-1.el7.x86_64                                                                                                                                      35/61 
  Verifying  : boost-date-time-1.53.0-27.el7.x86_64                                                                                                                          36/61 
  Verifying  : libproxy-0.4.11-11.el7.x86_64                                                                                                                                 37/61 
  Verifying  : libgfortran-4.8.5-28.el7_5.1.x86_64                                                                                                                           38/61 
  Verifying  : rpm-build-4.11.3-32.el7.x86_64                                                                                                                                39/61 
  Verifying  : indent-2.2.11-13.el7.x86_64                                                                                                                                   40/61 
  Verifying  : kernel-debug-devel-3.10.0-862.14.4.el7.x86_64                                                                                                                 41/61 
  Verifying  : apr-util-1.5.2-6.el7.x86_64                                                                                                                                   42/61 
  Verifying  : systemtap-runtime-3.2-8.el7_5.x86_64                                                                                                                          43/61 
  Verifying  : flex-2.5.37-3.el7.x86_64                                                                                                                                      44/61 
  Verifying  : patch-2.7.1-10.el7_5.x86_64                                                                                                                                   45/61 
  Verifying  : libquadmath-4.8.5-28.el7_5.1.x86_64                                                                                                                           46/61 
  Verifying  : apr-1.4.8-3.el7_4.1.x86_64                                                                                                                                    47/61 
  Verifying  : patchutils-0.3.3-4.el7.x86_64                                                                                                                                 48/61 
  Verifying  : 1:emacs-filesystem-24.3-20.el7_4.noarch                                                                                                                       49/61 
  Verifying  : cscope-15.8-10.el7.x86_64                                                                                                                                     50/61 
  Verifying  : neon-0.30.0-3.el7.x86_64                                                                                                                                      51/61 
  Verifying  : autoconf-2.69-11.el7.noarch                                                                                                                                   52/61 
  Verifying  : bzip2-1.0.6-13.el7.x86_64                                                                                                                                     53/61 
  Verifying  : rpm-sign-4.11.3-32.el7.x86_64                                                                                                                                 54/61 
  Verifying  : zip-3.0-11.el7.x86_64                                                                                                                                         55/61 
  Verifying  : efivar-libs-31-4.el7.x86_64                                                                                                                                   56/61 
  Verifying  : dwz-0.11-3.el7.x86_64                                                                                                                                         57/61 
  Verifying  : unzip-6.0-19.el7.x86_64                                                                                                                                       58/61 
  Verifying  : diffstat-1.57-4.el7.x86_64                                                                                                                                    59/61 
  Verifying  : pakchois-0.4-10.el7.x86_64                                                                                                                                    60/61 
  Verifying  : perl-srpm-macros-1-8.el7.noarch                                                                                                                               61/61 

Installed:
  autoconf.noarch 0:2.69-11.el7           automake.noarch 0:1.13.4-3.el7                       bison.x86_64 0:3.0.4-1.el7                   byacc.x86_64 0:1.9.20130304-3.el7      
  cscope.x86_64 0:15.8-10.el7             ctags.x86_64 0:5.8-13.el7                            diffstat.x86_64 0:1.57-4.el7                 doxygen.x86_64 1:1.8.5-3.el7           
  elfutils.x86_64 0:0.170-4.el7           flex.x86_64 0:2.5.37-3.el7                           gcc-gfortran.x86_64 0:4.8.5-28.el7_5.1       indent.x86_64 0:2.2.11-13.el7          
  intltool.noarch 0:0.50.2-7.el7          libtool.x86_64 0:2.4.2-22.el7_3                      patch.x86_64 0:2.7.1-10.el7_5                patchutils.x86_64 0:0.3.3-4.el7        
  rcs.x86_64 0:5.9.0-5.el7                redhat-rpm-config.noarch 0:9.1.0-80.el7.centos       rpm-build.x86_64 0:4.11.3-32.el7             rpm-sign.x86_64 0:4.11.3-32.el7        
  subversion.x86_64 0:1.7.14-14.el7       swig.x86_64 0:2.0.10-5.el7                           systemtap.x86_64 0:3.2-8.el7_5              

Dependency Installed:
  apr.x86_64 0:1.4.8-3.el7_4.1                 apr-util.x86_64 0:1.5.2-6.el7               avahi-libs.x86_64 0:0.6.31-19.el7       boost-date-time.x86_64 0:1.53.0-27.el7         
  boost-system.x86_64 0:1.53.0-27.el7          boost-thread.x86_64 0:1.53.0-27.el7         bzip2.x86_64 0:1.0.6-13.el7             dwz.x86_64 0:0.11-3.el7                        
  dyninst.x86_64 0:9.3.1-1.el7                 efivar-libs.x86_64 0:31-4.el7               emacs-filesystem.noarch 1:24.3-20.el7_4 gdb.x86_64 0:7.6.1-110.el7                     
  gettext-common-devel.noarch 0:0.19.8.1-2.el7 gettext-devel.x86_64 0:0.19.8.1-2.el7       gnutls.x86_64 0:3.3.26-9.el7            kernel-debug-devel.x86_64 0:3.10.0-862.14.4.el7
  libdwarf.x86_64 0:20130207-4.el7             libgfortran.x86_64 0:4.8.5-28.el7_5.1       libmodman.x86_64 0:2.0.1-8.el7          libproxy.x86_64 0:0.4.11-11.el7                
  libquadmath.x86_64 0:4.8.5-28.el7_5.1        libquadmath-devel.x86_64 0:4.8.5-28.el7_5.1 m4.x86_64 0:1.4.16-10.el7               mokutil.x86_64 0:12-2.el7                      
  neon.x86_64 0:0.30.0-3.el7                   nettle.x86_64 0:2.7.1-8.el7                 pakchois.x86_64 0:0.4-10.el7            perl-Test-Harness.noarch 0:3.28-3.el7          
  perl-Thread-Queue.noarch 0:3.02-2.el7        perl-XML-Parser.x86_64 0:2.41-10.el7        perl-srpm-macros.noarch 0:1-8.el7       subversion-libs.x86_64 0:1.7.14-14.el7         
  systemtap-client.x86_64 0:3.2-8.el7_5        systemtap-devel.x86_64 0:3.2-8.el7_5        systemtap-runtime.x86_64 0:3.2-8.el7_5  trousers.x86_64 0:0.3.14-2.el7                 
  unzip.x86_64 0:6.0-19.el7                    zip.x86_64 0:3.0-11.el7                    

Complete!
[root@node101 data]# 
[root@node101 data]# yum -y groupinstall "Development tools"
[root@node101 data]# pwd
/yinzhengjie/open-falcon/workspace/data
[root@node101 data]# 
[root@node101 data]# echo $WORKSPACE
/yinzhengjie/open-falcon/workspace/data
[root@node101 data]# 
[root@node101 data]# cd $WORKSPACE/dashboard/
[root@node101 dashboard]# 
[root@node101 dashboard]# pwd
/yinzhengjie/open-falcon/workspace/data/dashboard
[root@node101 dashboard]# 
[root@node101 dashboard]# ll
total 56
-rw-r--r--  1 root root    97 Dec 12 10:23 babel.cfg
-rwxr-xr-x  1 root root  2653 Dec 12 10:23 control
-rw-r--r--  1 root root   510 Dec 12 10:23 Dockerfile
-rw-r--r--  1 root root   319 Dec 12 10:23 entrypoint.sh
-rw-r--r--  1 root root   170 Dec 12 10:23 gunicorn.conf
-rw-r--r--  1 root root  1235 Dec 12 10:23 i18n.md
-rw-r--r--  1 root root 11358 Dec 12 10:23 LICENSE
-rw-r--r--  1 root root   462 Dec 12 10:23 NOTICE
-rw-r--r--  1 root root   140 Dec 12 10:23 pip_requirements.txt
-rw-r--r--  1 root root  4961 Dec 12 10:23 README.md
drwxr-xr-x 10 root root   194 Dec 12 10:23 rrd
drwxr-xr-x  2 root root   101 Dec 12 10:23 screenshots
drwxr-xr-x  2 root root    65 Dec 12 10:23 scripts
-rwxr-xr-x  1 root root   978 Dec 12 10:23 wsgi.py
[root@node101 dashboard]# 
[root@node101 dashboard]# virtualenv ./env
New python executable in /yinzhengjie/open-falcon/workspace/data/dashboard/env/bin/python
Installing setuptools, pip, wheel...done.
[root@node101 dashboard]# 
[root@node101 dashboard]# virtualenv ./env
[root@node101 dashboard]# ./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simple
Collecting Flask==0.10.1 (from -r pip_requirements.txt (line 1))
  Downloading https://pypi.doubanio.com/packages/db/9c/149ba60c47d107f85fe52564133348458f093dd5e6b57a5b60ab9ac517bb/Flask-0.10.1.tar.gz (544kB)
    100% |████████████████████████████████| 552kB 2.9MB/s 
Collecting Flask-Babel==0.9 (from -r pip_requirements.txt (line 2))
  Downloading https://pypi.doubanio.com/packages/24/6b/dd9031c446e05600b740086274a9939799f26401b8b96e124ccf71e6a9b2/Flask-Babel-0.9.tar.gz
Collecting Jinja2==2.7.2 (from -r pip_requirements.txt (line 3))
  Downloading https://pypi.doubanio.com/packages/23/94/ca42176bf7a252ce1f5d165953013573dffdbe4b5dac07f57146146ea432/Jinja2-2.7.2.tar.gz (378kB)
    100% |████████████████████████████████| 378kB 2.9MB/s 
Collecting Werkzeug==0.9.4 (from -r pip_requirements.txt (line 4))
  Downloading https://pypi.doubanio.com/packages/d8/5e/8abc95630f9c4248edffed30592468f884e845ba656a959a12e452fafcec/Werkzeug-0.9.4.tar.gz (1.1MB)
    100% |████████████████████████████████| 1.1MB 2.9MB/s 
Collecting gunicorn==19.9.0 (from -r pip_requirements.txt (line 5))
  Downloading https://pypi.doubanio.com/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB)
    100% |████████████████████████████████| 122kB 4.6MB/s 
Collecting python-dateutil==2.2 (from -r pip_requirements.txt (line 6))
  Downloading https://pypi.doubanio.com/packages/75/c5/85d027471fa665f8c8b8eb0b925f9d84b4eee745a257b16de4957de99e81/python-dateutil-2.2.tar.gz (259kB)
    100% |████████████████████████████████| 266kB 1.9MB/s 
Collecting requests==2.3.0 (from -r pip_requirements.txt (line 7))
  Downloading https://pypi.doubanio.com/packages/f7/51/7aa1e337862118bee783c0249debd64cb07b8fbdfef154b1e185754b02d5/requests-2.3.0-py2.py3-none-any.whl (452kB)
    100% |████████████████████████████████| 460kB 4.4MB/s 
Collecting mysql-python (from -r pip_requirements.txt (line 8))
  Downloading https://pypi.doubanio.com/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip (108kB)
    100% |████████████████████████████████| 112kB 3.6MB/s 
Collecting python-ldap (from -r pip_requirements.txt (line 9))
  Downloading https://pypi.doubanio.com/packages/7f/1c/28d721dff2fcd2fef9d55b40df63a00be26ec8a11e8c6fc612ae642f9cfd/python-ldap-3.1.0.tar.gz (366kB)
    100% |████████████████████████████████| 368kB 3.1MB/s 
Collecting itsdangerous>=0.21 (from Flask==0.10.1->-r pip_requirements.txt (line 1))
  Downloading https://pypi.doubanio.com/packages/76/ae/44b03b253d6fade317f32c24d100b3b35c2239807046a4c953c7b89fa49e/itsdangerous-1.1.0-py2.py3-none-any.whl
Collecting Babel>=1.0 (from Flask-Babel==0.9->-r pip_requirements.txt (line 2))
  Downloading https://pypi.doubanio.com/packages/b8/ad/c6f60602d3ee3d92fbed87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl (8.1MB)
    100% |████████████████████████████████| 8.1MB 2.2MB/s 
Collecting speaklater>=1.2 (from Flask-Babel==0.9->-r pip_requirements.txt (line 2))
  Downloading https://pypi.doubanio.com/packages/11/92/5ae1effe0ccb8561c034a0111d53c8788660ddb7ed4992f0da1bb5c525e5/speaklater-1.3.tar.gz
Collecting markupsafe (from Jinja2==2.7.2->-r pip_requirements.txt (line 3))
  Downloading https://pypi.doubanio.com/packages/bc/3a/6bfd7b4b202fa33bdda8e4e3d3acc719f381fd730f9a0e7c5f34e845bd4d/MarkupSafe-1.1.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting six (from python-dateutil==2.2->-r pip_requirements.txt (line 6))
  Downloading https://pypi.doubanio.com/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting pyasn1>=0.3.7 (from python-ldap->-r pip_requirements.txt (line 9))
  Downloading https://pypi.doubanio.com/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)
    100% |████████████████████████████████| 81kB 4.1MB/s 
Collecting pyasn1_modules>=0.1.5 (from python-ldap->-r pip_requirements.txt (line 9))
  Downloading https://pypi.doubanio.com/packages/19/02/fa63f7ba30a0d7b925ca29d034510fc1ffde53264b71b4155022ddf3ab5d/pyasn1_modules-0.2.2-py2.py3-none-any.whl (62kB)
    100% |████████████████████████████████| 71kB 3.7MB/s 
Collecting pytz>=0a (from Babel>=1.0->Flask-Babel==0.9->-r pip_requirements.txt (line 2))
  Downloading https://pypi.doubanio.com/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 512kB 2.9MB/s 
Building wheels for collected packages: Flask, Flask-Babel, Jinja2, Werkzeug, python-dateutil, mysql-python, python-ldap, speaklater
  Running setup.py bdist_wheel for Flask ... done
  Stored in directory: /home/work/.cache/pip/wheels/c3/16/38/63905910399fadf81e8016edf80646302a5cbac53c5dc59279
  Running setup.py bdist_wheel for Flask-Babel ... done
  Stored in directory: /home/work/.cache/pip/wheels/76/27/03/9ef440f42372cf8bc8c4790bbb421e8d54ce9cb23ce293ae77
  Running setup.py bdist_wheel for Jinja2 ... done
  Stored in directory: /home/work/.cache/pip/wheels/47/a2/c3/4cf19a7c3f0bddd3e1b43fbd02177adbf8d5c83d3ff9e0a5ab
  Running setup.py bdist_wheel for Werkzeug ... done
  Stored in directory: /home/work/.cache/pip/wheels/40/9f/0a/12e7b17a1713fef10be1af987459b4797a5d6fc9a58bdb1f95
  Running setup.py bdist_wheel for python-dateutil ... done
  Stored in directory: /home/work/.cache/pip/wheels/21/0d/47/24efa5d9a2f21391caa3b9a6058d72f580f62e15f4e3f79f85
  Running setup.py bdist_wheel for mysql-python ... done
  Stored in directory: /home/work/.cache/pip/wheels/5a/7c/08/462460b38b37adfc478e73bbf2e4ae809d57384f567ded548f
  Running setup.py bdist_wheel for python-ldap ... done
  Stored in directory: /home/work/.cache/pip/wheels/26/ce/4a/b1a82ebc99d0da4d910241fee0c5301a9b5011aa345e8c6e28
  Running setup.py bdist_wheel for speaklater ... done
  Stored in directory: /home/work/.cache/pip/wheels/58/b2/d0/d79c8040cb9e1ac09e2014aa32759f8891a497ad3850e3ebbe
Successfully built Flask Flask-Babel Jinja2 Werkzeug python-dateutil mysql-python python-ldap speaklater
Installing collected packages: Werkzeug, markupsafe, Jinja2, itsdangerous, Flask, pytz, Babel, speaklater, Flask-Babel, gunicorn, six, python-dateutil, requests, mysql-python, pyasn1, pyasn1-modules, python-ldap
Successfully installed Babel-2.6.0 Flask-0.10.1 Flask-Babel-0.9 Jinja2-2.7.2 Werkzeug-0.9.4 gunicorn-19.9.0 itsdangerous-1.1.0 markupsafe-1.1.0 mysql-python-1.2.5 pyasn1-0.4.4 pyasn1-modules-0.2.2 python-dateutil-2.2 python-ldap-3.1.0 pytz-2018.7 requests-2.3.0 six-1.11.0 speaklater-1.3
You are using pip version 9.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[root@node101 dashboard]# 
[root@node101 dashboard]# ./env/bin/pip install -r pip_requirements.txt -i https://pypi.douban.com/simple

4>.修改配置

[root@node101 dashboard]# pwd
/home/work/open-falcon/dashboard
[root@node101 dashboard]# 
[root@node101 dashboard]# cat rrd/config.py 
#-*-coding:utf8-*-
# Copyright 2017 Xiaomi, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


# app config
import os
LOG_LEVEL = os.environ.get("LOG_LEVEL",'DEBUG')
SECRET_KEY = os.environ.get("SECRET_KEY","secret-key")
PERMANENT_SESSION_LIFETIME = os.environ.get("PERMANENT_SESSION_LIFETIME",3600 * 24 * 30)
SITE_COOKIE = os.environ.get("SITE_COOKIE","open-falcon-ck")

# Falcon+ API
API_ADDR = os.environ.get("API_ADDR","http://172.30.1.200:8080/api/v1")
API_USER = os.environ.get("API_USER","admin")
API_PASS = os.environ.get("API_PASS","password")

# portal database
# TODO: read from api instead of db
PORTAL_DB_HOST = os.environ.get("PORTAL_DB_HOST","127.0.0.1")
PORTAL_DB_PORT = int(os.environ.get("PORTAL_DB_PORT",3306))
PORTAL_DB_USER = os.environ.get("PORTAL_DB_USER","root")
PORTAL_DB_PASS = os.environ.get("PORTAL_DB_PASS","yinzhengjie")
PORTAL_DB_NAME = os.environ.get("PORTAL_DB_NAME","falcon_portal")

# alarm database
# TODO: read from api instead of db
ALARM_DB_HOST = os.environ.get("ALARM_DB_HOST","127.0.0.1")
ALARM_DB_PORT = int(os.environ.get("ALARM_DB_PORT",3306))
ALARM_DB_USER = os.environ.get("ALARM_DB_USER","root")
ALARM_DB_PASS = os.environ.get("ALARM_DB_PASS","")
ALARM_DB_NAME = os.environ.get("ALARM_DB_NAME","alarms")

# ldap config
LDAP_ENABLED = os.environ.get("LDAP_ENABLED",False)
LDAP_SERVER = os.environ.get("LDAP_SERVER","ldap.forumsys.com:389")
LDAP_BASE_DN = os.environ.get("LDAP_BASE_DN","dc=example,dc=com")
LDAP_BINDDN = os.environ.get("LDAP_BINDDN","cn=manager,dc=example,dc=org")
LDAP_BIND_PASS = os.environ.get("LDAP_BIND_PASS","password")
LDAP_SEARCH_FMT = os.environ.get("LDAP_SEARCH_FMT","uid=%s")
LDAP_ATTRS = ["cn","mail","telephoneNumber"]
LDAP_TLS_START_TLS = False
LDAP_TLS_CACERTDIR = ""
LDAP_TLS_CACERTFILE = "/etc/openldap/certs/ca.crt"
LDAP_TLS_CERTFILE = ""
LDAP_TLS_KEYFILE = ""
LDAP_TLS_REQUIRE_CERT = True
LDAP_TLS_CIPHER_SUITE = ""

# i18n
BABEL_DEFAULT_LOCALE   = 'zh_CN'
BABEL_DEFAULT_TIMEZONE = 'Asia/Shanghai'
# available translations
LANGUAGES   = {
    'en':  'English',
    'zh_CN':  'Chinese-Simplified',
}

# portal site config
MAINTAINERS = ['root']
CONTACT = 'root@open-falcon.com'

try:
    from rrd.local_config import *
except:
    print "[warning] no local config file"
[root@node101 dashboard]# 
[root@node101 dashboard]# 

5>.以开发者模式启动

[root@node101 dashboard]# hostname
node101.yinzhengjie.org.cn
[root@node101 dashboard]# 
[root@node101 dashboard]# hostname -i
172.30.1.101
[root@node101 dashboard]# 
[root@node101 dashboard]# pwd
/home/work/open-falcon/dashboard
[root@node101 dashboard]# 
[root@node101 dashboard]# ./env/bin/python wsgi.py
[warning] no local config file
2018-11-17 10:03:00 INFO: * Running on http://0.0.0.0:8081/          #咱们去访问相应的端口即可
2018-11-17 10:03:00 INFO: * Restarting with reloader
[warning] no local config file
[root@node101 dashboard]# ./control start        #启动它,当然你也可以不用"./"的方式启动,直接前面加个sh关键字启动也是可以的。
falcon-dashboard started..., pid=15181
[root@node101 dashboard]# 
[root@node101 dashboard]# ./control tail        #查看日志
[2018-11-17 10:18:55 +0000] [15181] [INFO] Starting gunicorn 19.9.0
[2018-11-17 10:18:55 +0000] [15181] [INFO] Listening at: http://0.0.0.0:8081 (15181)
[2018-11-17 10:18:55 +0000] [15181] [INFO] Using worker: sync
[2018-11-17 10:18:55 +0000] [15186] [INFO] Booting worker with pid: 15186
[2018-11-17 10:18:56 +0000] [15191] [INFO] Booting worker with pid: 15191
[2018-11-17 10:18:56 +0000] [15196] [INFO] Booting worker with pid: 15196
[2018-11-17 10:18:56 +0000] [15201] [INFO] Booting worker with pid: 15201
[root@node101 dashboard]# ./control start        #在生产环境中我们可以这样启动它,当然你也可以不用"./"的方式启动,直接前面加个sh关键字启动也是可以的。

  如上所述。启动后,访问webUI界面如下图,我们需要先注册:

   输入对应的注册信息,如下图:

   然后使用刚刚注册的信息进行登录:

   首次登录成功后,需要你输入你修改密码:(当然,如果咱们不想修改也是可以的,直接点击返回!)

  点击更新后,我们可以进入到open-Falcon的监控界面了,如下图所示:

  选择以“Endpoint”视角查看监控数据:

  Open-Falcon自带的监控图:

  退出当期登录:

  我们部署Open-Falcon之后,默认就监控本机,如果想要让监控其它节点咋办呢?很好办,我们只需要在需要监控的机器上部署agent服务即可,详情请参考:“运维监控-Open-Falcon安装Agent实战篇”。

posted @ 2018-11-13 01:20  尹正杰  阅读(1813)  评论(0编辑  收藏  举报