zoukankan      html  css  js  c++  java
  • zabbix4.0监控Apache配置记录

    Last login: Wed Mar 20 09:10:32 2019 from 172.16.5.80
    [root@vmhzplinuxserver ~]# cd /home
    [root@vmhzplinuxserver home]# yum -y install zlib zlib-devel gcc* expat-devel pcre-devel libxml2-devel openssl-devel
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    base | 3.6 kB 00:00:00
    extras | 3.4 kB 00:00:03
    updates | 3.4 kB 00:00:03
    updates/7/x86_64/primary_db FAILED A
    http://centos.communilink.net/7.6.1810/updates/x86_64/repodata/2e9cb97edf0826cee6a329798042b73175266902023d3bb494ce706cc8db6c15-primary.sqlite.bz2: [Errno 12] Timeout on http://centos.communilink.net/7.6.1810/updates/x86_64/repodata/2e9cb97edf0826cee6a329798042b73175266902023d3bb494ce706cc8db6c15-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
    Trying other mirror.
    (1/2): updates/7/x86_64/primary_db | 3.3 MB 00:00:01
    extras/7/x86_64/primary_db FAILED A
    http://centos.communilink.net/7.6.1810/extras/x86_64/repodata/43c71026fcdefd8e9770eeb304ad82573ce6c0364172a9e07ef088ead33394e6-primary.sqlite.bz2: [Errno 14] curl#18 - "transfer closed with 150843 bytes remaining to read"
    Trying other mirror.
    (2/2): extras/7/x86_64/primary_db | 187 kB 00:00:00
    Package zlib-1.2.7-18.el7.x86_64 already installed and latest version
    Resolving Dependencies
    --> Running transaction check
    ---> Package expat-devel.x86_64 0:2.1.0-10.el7_3 will be installed
    ---> Package gcc.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libgomp = 4.8.5-36.el7_6.1 for package: gcc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: cpp = 4.8.5-36.el7_6.1 for package: gcc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libgcc >= 4.8.5-36.el7_6.1 for package: gcc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libmpfr.so.4()(64bit) for package: gcc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libmpc.so.3()(64bit) for package: gcc-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-c++.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libstdc++-devel = 4.8.5-36.el7_6.1 for package: gcc-c++-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libstdc++ = 4.8.5-36.el7_6.1 for package: gcc-c++-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-gfortran.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libquadmath-devel = 4.8.5-36.el7_6.1 for package: gcc-gfortran-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libquadmath = 4.8.5-36.el7_6.1 for package: gcc-gfortran-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libgfortran = 4.8.5-36.el7_6.1 for package: gcc-gfortran-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libgfortran.so.3()(64bit) for package: gcc-gfortran-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-gnat.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libgnat-devel = 4.8.5-36.el7_6.1 for package: gcc-gnat-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libgnat = 4.8.5-36.el7_6.1 for package: gcc-gnat-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-go.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libgo-devel = 4.8.5-36.el7_6.1 for package: gcc-go-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libgo = 4.8.5-36.el7_6.1 for package: gcc-go-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-objc.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: libobjc = 4.8.5-36.el7_6.1 for package: gcc-objc-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libobjc.so.4()(64bit) for package: gcc-objc-4.8.5-36.el7_6.1.x86_64
    ---> Package gcc-objc++.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package gcc-plugin-devel.x86_64 0:4.8.5-36.el7_6.1 will be installed
    --> Processing Dependency: mpfr-devel >= 2.2.1 for package: gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: libmpc-devel >= 0.8.1 for package: gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64
    --> Processing Dependency: gmp-devel >= 4.1.2-8 for package: gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64
    ---> Package libxml2-devel.x86_64 0:2.9.1-6.el7_2.3 will be installed
    --> Processing Dependency: xz-devel for package: libxml2-devel-2.9.1-6.el7_2.3.x86_64
    ---> Package openssl-devel.x86_64 1:1.0.2k-16.el7_6.1 will be installed
    --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7_6.1 for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
    --> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64
    ---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
    ---> Package zlib-devel.x86_64 0:1.2.7-18.el7 will be installed
    --> Running transaction check
    ---> Package cpp.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package glibc-devel.x86_64 0:2.17-260.el7_6.3 will be installed
    --> Processing Dependency: glibc-headers = 2.17-260.el7_6.3 for package: glibc-devel-2.17-260.el7_6.3.x86_64
    --> Processing Dependency: glibc = 2.17-260.el7_6.3 for package: glibc-devel-2.17-260.el7_6.3.x86_64
    --> Processing Dependency: glibc-headers for package: glibc-devel-2.17-260.el7_6.3.x86_64
    ---> Package gmp-devel.x86_64 1:6.0.0-15.el7 will be installed
    ---> Package krb5-devel.x86_64 0:1.15.1-37.el7_6 will be installed
    --> Processing Dependency: libkadm5(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64
    --> Processing Dependency: krb5-libs(x86-64) = 1.15.1-37.el7_6 for package: krb5-devel-1.15.1-37.el7_6.x86_64
    --> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
    --> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
    --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
    --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-37.el7_6.x86_64
    ---> Package libgcc.x86_64 0:4.8.5-36.el7 will be updated
    ---> Package libgcc.x86_64 0:4.8.5-36.el7_6.1 will be an update
    ---> Package libgfortran.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libgnat.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libgnat-devel.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libgo.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libgo-devel.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libgomp.x86_64 0:4.8.5-36.el7 will be updated
    ---> Package libgomp.x86_64 0:4.8.5-36.el7_6.1 will be an update
    ---> Package libmpc.x86_64 0:1.0.1-3.el7 will be installed
    ---> Package libmpc-devel.x86_64 0:1.0.1-3.el7 will be installed
    ---> Package libobjc.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libquadmath.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libquadmath-devel.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package libstdc++.x86_64 0:4.8.5-36.el7 will be updated
    ---> Package libstdc++.x86_64 0:4.8.5-36.el7_6.1 will be an update
    ---> Package libstdc++-devel.x86_64 0:4.8.5-36.el7_6.1 will be installed
    ---> Package mpfr.x86_64 0:3.1.1-4.el7 will be installed
    ---> Package mpfr-devel.x86_64 0:3.1.1-4.el7 will be installed
    ---> Package openssl-libs.x86_64 1:1.0.2k-16.el7 will be updated
    --> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-16.el7 for package: 1:openssl-1.0.2k-16.el7.x86_64
    ---> Package openssl-libs.x86_64 1:1.0.2k-16.el7_6.1 will be an update
    ---> Package xz-devel.x86_64 0:5.2.2-1.el7 will be installed
    --> Running transaction check
    ---> Package glibc.x86_64 0:2.17-260.el7 will be updated
    --> Processing Dependency: glibc = 2.17-260.el7 for package: glibc-common-2.17-260.el7.x86_64
    ---> Package glibc.x86_64 0:2.17-260.el7_6.3 will be an update
    ---> Package glibc-headers.x86_64 0:2.17-260.el7_6.3 will be installed
    --> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.17-260.el7_6.3.x86_64
    --> Processing Dependency: kernel-headers for package: glibc-headers-2.17-260.el7_6.3.x86_64
    ---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
    ---> Package krb5-libs.x86_64 0:1.15.1-34.el7 will be updated
    ---> Package krb5-libs.x86_64 0:1.15.1-37.el7_6 will be an update
    ---> Package libcom_err-devel.x86_64 0:1.42.9-13.el7 will be installed
    ---> Package libkadm5.x86_64 0:1.15.1-37.el7_6 will be installed
    ---> Package libselinux-devel.x86_64 0:2.5-14.1.el7 will be installed
    --> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-14.1.el7.x86_64
    --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-14.1.el7.x86_64
    ---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
    ---> Package openssl.x86_64 1:1.0.2k-16.el7 will be updated
    ---> Package openssl.x86_64 1:1.0.2k-16.el7_6.1 will be an update
    --> Running transaction check
    ---> Package glibc-common.x86_64 0:2.17-260.el7 will be updated
    ---> Package glibc-common.x86_64 0:2.17-260.el7_6.3 will be an update
    ---> Package kernel-headers.x86_64 0:3.10.0-957.10.1.el7 will be installed
    ---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================
    Package Arch Version Repository Size
    =================================================================================
    Installing:
    expat-devel x86_64 2.1.0-10.el7_3 base 57 k
    gcc x86_64 4.8.5-36.el7_6.1 updates 16 M
    gcc-c++ x86_64 4.8.5-36.el7_6.1 updates 7.2 M
    gcc-gfortran x86_64 4.8.5-36.el7_6.1 updates 6.7 M
    gcc-gnat x86_64 4.8.5-36.el7_6.1 updates 13 M
    gcc-go x86_64 4.8.5-36.el7_6.1 updates 5.9 M
    gcc-objc x86_64 4.8.5-36.el7_6.1 updates 5.7 M
    gcc-objc++ x86_64 4.8.5-36.el7_6.1 updates 6.1 M
    gcc-plugin-devel x86_64 4.8.5-36.el7_6.1 updates 827 k
    libxml2-devel x86_64 2.9.1-6.el7_2.3 base 1.0 M
    openssl-devel x86_64 1:1.0.2k-16.el7_6.1 updates 1.5 M
    pcre-devel x86_64 8.32-17.el7 base 480 k
    zlib-devel x86_64 1.2.7-18.el7 base 50 k
    Installing for dependencies:
    cpp x86_64 4.8.5-36.el7_6.1 updates 5.9 M
    glibc-devel x86_64 2.17-260.el7_6.3 updates 1.1 M
    glibc-headers x86_64 2.17-260.el7_6.3 updates 683 k
    gmp-devel x86_64 1:6.0.0-15.el7 base 181 k
    kernel-headers x86_64 3.10.0-957.10.1.el7 updates 8.0 M
    keyutils-libs-devel x86_64 1.5.8-3.el7 base 37 k
    krb5-devel x86_64 1.15.1-37.el7_6 updates 271 k
    libcom_err-devel x86_64 1.42.9-13.el7 base 31 k
    libgfortran x86_64 4.8.5-36.el7_6.1 updates 300 k
    libgnat x86_64 4.8.5-36.el7_6.1 updates 966 k
    libgnat-devel x86_64 4.8.5-36.el7_6.1 updates 2.7 M
    libgo x86_64 4.8.5-36.el7_6.1 updates 2.2 M
    libgo-devel x86_64 4.8.5-36.el7_6.1 updates 230 k
    libkadm5 x86_64 1.15.1-37.el7_6 updates 178 k
    libmpc x86_64 1.0.1-3.el7 base 51 k
    libmpc-devel x86_64 1.0.1-3.el7 base 32 k
    libobjc x86_64 4.8.5-36.el7_6.1 updates 79 k
    libquadmath x86_64 4.8.5-36.el7_6.1 updates 189 k
    libquadmath-devel x86_64 4.8.5-36.el7_6.1 updates 52 k
    libselinux-devel x86_64 2.5-14.1.el7 base 187 k
    libsepol-devel x86_64 2.5-10.el7 base 77 k
    libstdc++-devel x86_64 4.8.5-36.el7_6.1 updates 1.5 M
    libverto-devel x86_64 0.2.5-4.el7 base 12 k
    mpfr x86_64 3.1.1-4.el7 base 203 k
    mpfr-devel x86_64 3.1.1-4.el7 base 68 k
    xz-devel x86_64 5.2.2-1.el7 base 46 k
    Updating for dependencies:
    glibc x86_64 2.17-260.el7_6.3 updates 3.7 M
    glibc-common x86_64 2.17-260.el7_6.3 updates 12 M
    krb5-libs x86_64 1.15.1-37.el7_6 updates 803 k
    libgcc x86_64 4.8.5-36.el7_6.1 updates 102 k
    libgomp x86_64 4.8.5-36.el7_6.1 updates 157 k
    libstdc++ x86_64 4.8.5-36.el7_6.1 updates 305 k
    openssl x86_64 1:1.0.2k-16.el7_6.1 updates 493 k
    openssl-libs x86_64 1:1.0.2k-16.el7_6.1 updates 1.2 M

    Transaction Summary
    =================================================================================
    Install 13 Packages (+26 Dependent packages)
    Upgrade ( 8 Dependent packages)

    Total download size: 108 M
    Downloading packages:
    Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
    (1/47): expat-devel-2.1.0-10.el7_3.x86_64.rpm | 57 kB 00:00:00
    (2/47): cpp-4.8.5-36.el7_6.1.x86_64.rpm | 5.9 MB 00:00:03
    (3/47): gcc-4.8.5-36.el7_6.1.x86_64.rpm | 16 MB 00:00:04
    (4/47): gcc-c++-4.8.5-36.el7_6.1.x86_64.rpm | 7.2 MB 00:00:04
    (5/47): gcc-gfortran-4.8.5-36.el7_6.1.x86_64.rpm | 6.7 MB 00:00:03
    (6/47): gcc-go-4.8.5-36.el7_6.1.x86_64.rpm | 5.9 MB 00:00:02
    (7/47): gcc-objc-4.8.5-36.el7_6.1.x86_64.rpm | 5.7 MB 00:00:02
    (8/47): gcc-gnat-4.8.5-36.el7_6.1.x86_64.rpm | 13 MB 00:00:07
    (9/47): gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64.rpm | 827 kB 00:00:00
    (10/47): gcc-objc++-4.8.5-36.el7_6.1.x86_64.rpm | 6.1 MB 00:00:02
    (11/47): glibc-2.17-260.el7_6.3.x86_64.rpm | 3.7 MB 00:00:03
    (12/47): glibc-devel-2.17-260.el7_6.3.x86_64.rpm | 1.1 MB 00:00:01
    (13/47): gmp-devel-6.0.0-15.el7.x86_64.rpm | 181 kB 00:00:00
    (14/47): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm | 37 kB 00:00:00
    (15/47): glibc-common-2.17-260.el7_6.3.x86_64.rpm | 12 MB 00:00:04
    (16/47): libcom_err-devel-1.42.9-13.el7.x86_64.rpm | 31 kB 00:00:00
    (17/47): libgcc-4.8.5-36.el7_6.1.x86_64.rpm | 102 kB 00:00:00
    (18/47): glibc-headers-2.17-260.el7_6.3.x86_64.rpm | 683 kB 00:00:00
    (19/47): libgfortran-4.8.5-36.el7_6.1.x86_64.rpm | 300 kB 00:00:00
    (20/47): krb5-devel-1.15.1-37.el7_6.x86_64.rpm | 271 kB 00:00:01
    (21/47): libgnat-4.8.5-36.el7_6.1.x86_64.rpm | 966 kB 00:00:01
    (22/47): libgo-devel-4.8.5-36.el7_6.1.x86_64.rpm | 230 kB 00:00:00
    (23/47): libgomp-4.8.5-36.el7_6.1.x86_64.rpm | 157 kB 00:00:00
    (24/47): libkadm5-1.15.1-37.el7_6.x86_64.rpm | 178 kB 00:00:00
    (25/47): libgnat-devel-4.8.5-36.el7_6.1.x86_64.rpm | 2.7 MB 00:00:02
    (26/47): libmpc-1.0.1-3.el7.x86_64.rpm | 51 kB 00:00:00
    (27/47): libmpc-devel-1.0.1-3.el7.x86_64.rpm | 32 kB 00:00:00
    (28/47): libobjc-4.8.5-36.el7_6.1.x86_64.rpm | 79 kB 00:00:00
    (29/47): libquadmath-4.8.5-36.el7_6.1.x86_64.rpm | 189 kB 00:00:00
    (30/47): krb5-libs-1.15.1-37.el7_6.x86_64.rpm | 803 kB 00:00:02
    (31/47): libquadmath-devel-4.8.5-36.el7_6.1.x86_64.rpm | 52 kB 00:00:00
    (32/47): libsepol-devel-2.5-10.el7.x86_64.rpm | 77 kB 00:00:00
    (33/47): libstdc++-4.8.5-36.el7_6.1.x86_64.rpm | 305 kB 00:00:00
    (34/47): libverto-devel-0.2.5-4.el7.x86_64.rpm | 12 kB 00:00:00
    (35/47): libxml2-devel-2.9.1-6.el7_2.3.x86_64.rpm | 1.0 MB 00:00:00
    (36/47): mpfr-3.1.1-4.el7.x86_64.rpm | 203 kB 00:00:00
    (37/47): mpfr-devel-3.1.1-4.el7.x86_64.rpm | 68 kB 00:00:00
    (38/47): openssl-1.0.2k-16.el7_6.1.x86_64.rpm | 493 kB 00:00:00
    (39/47): libselinux-devel-2.5-14.1.el7.x86_64.rpm | 187 kB 00:00:01
    (40/47): openssl-devel-1.0.2k-16.el7_6.1.x86_64.rpm | 1.5 MB 00:00:00
    (41/47): libstdc++-devel-4.8.5-36.el7_6.1.x86_64.rpm | 1.5 MB 00:00:01
    (42/47): xz-devel-5.2.2-1.el7.x86_64.rpm | 46 kB 00:00:00
    (43/47): zlib-devel-1.2.7-18.el7.x86_64.rpm | 50 kB 00:00:00
    (44/47): pcre-devel-8.32-17.el7.x86_64.rpm | 480 kB 00:00:00
    (45/47): openssl-libs-1.0.2k-16.el7_6.1.x86_64.rpm | 1.2 MB 00:00:03
    (46/47): libgo-4.8.5-36.el7_6.1.x86_64.rpm | 2.2 MB 00:00:10
    (47/47): kernel-headers-3.10.0-957.10.1.el7.x86_64.rpm | 8.0 MB 00:00:14
    ---------------------------------------------------------------------------------
    Total 3.1 MB/s | 108 MB 00:35
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Updating : libgcc-4.8.5-36.el7_6.1.x86_64 1/55
    Updating : glibc-2.17-260.el7_6.3.x86_64 2/55
    Updating : glibc-common-2.17-260.el7_6.3.x86_64 3/55
    Installing : mpfr-3.1.1-4.el7.x86_64 4/55
    Installing : libmpc-1.0.1-3.el7.x86_64 5/55
    Updating : krb5-libs-1.15.1-37.el7_6.x86_64 6/55
    Updating : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 7/55
    Installing : libquadmath-4.8.5-36.el7_6.1.x86_64 8/55
    Installing : 1:gmp-devel-6.0.0-15.el7.x86_64 9/55
    Installing : mpfr-devel-3.1.1-4.el7.x86_64 10/55
    Updating : libstdc++-4.8.5-36.el7_6.1.x86_64 11/55
    Installing : libgo-4.8.5-36.el7_6.1.x86_64 12/55
    Installing : zlib-devel-1.2.7-18.el7.x86_64 13/55
    Installing : libgo-devel-4.8.5-36.el7_6.1.x86_64 14/55
    Installing : libstdc++-devel-4.8.5-36.el7_6.1.x86_64 15/55
    Installing : libmpc-devel-1.0.1-3.el7.x86_64 16/55
    Installing : libgfortran-4.8.5-36.el7_6.1.x86_64 17/55
    Installing : libkadm5-1.15.1-37.el7_6.x86_64 18/55
    Installing : cpp-4.8.5-36.el7_6.1.x86_64 19/55
    Updating : libgomp-4.8.5-36.el7_6.1.x86_64 20/55
    Installing : libobjc-4.8.5-36.el7_6.1.x86_64 21/55
    Installing : libgnat-4.8.5-36.el7_6.1.x86_64 22/55
    Installing : libverto-devel-0.2.5-4.el7.x86_64 23/55
    Installing : libgnat-devel-4.8.5-36.el7_6.1.x86_64 24/55
    Installing : libsepol-devel-2.5-10.el7.x86_64 25/55
    Installing : xz-devel-5.2.2-1.el7.x86_64 26/55
    Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64 27/55
    Installing : kernel-headers-3.10.0-957.10.1.el7.x86_64 28/55
    Installing : glibc-headers-2.17-260.el7_6.3.x86_64 29/55
    Installing : glibc-devel-2.17-260.el7_6.3.x86_64 30/55
    Installing : gcc-4.8.5-36.el7_6.1.x86_64 31/55
    Installing : gcc-objc-4.8.5-36.el7_6.1.x86_64 32/55
    Installing : libquadmath-devel-4.8.5-36.el7_6.1.x86_64 33/55
    Installing : gcc-c++-4.8.5-36.el7_6.1.x86_64 34/55
    Installing : pcre-devel-8.32-17.el7.x86_64 35/55
    Installing : libselinux-devel-2.5-14.1.el7.x86_64 36/55
    Installing : libcom_err-devel-1.42.9-13.el7.x86_64 37/55
    Installing : krb5-devel-1.15.1-37.el7_6.x86_64 38/55
    Installing : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 39/55
    Installing : gcc-objc++-4.8.5-36.el7_6.1.x86_64 40/55
    Installing : gcc-gfortran-4.8.5-36.el7_6.1.x86_64 41/55
    Installing : gcc-gnat-4.8.5-36.el7_6.1.x86_64 42/55
    Installing : gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64 43/55
    Installing : gcc-go-4.8.5-36.el7_6.1.x86_64 44/55
    Installing : libxml2-devel-2.9.1-6.el7_2.3.x86_64 45/55
    Updating : 1:openssl-1.0.2k-16.el7_6.1.x86_64 46/55
    Installing : expat-devel-2.1.0-10.el7_3.x86_64 47/55
    Cleanup : 1:openssl-1.0.2k-16.el7.x86_64 48/55
    Cleanup : krb5-libs-1.15.1-34.el7.x86_64 49/55
    Cleanup : 1:openssl-libs-1.0.2k-16.el7.x86_64 50/55
    Cleanup : libstdc++-4.8.5-36.el7.x86_64 51/55
    Cleanup : libgomp-4.8.5-36.el7.x86_64 52/55
    Cleanup : glibc-2.17-260.el7.x86_64 53/55
    Cleanup : glibc-common-2.17-260.el7.x86_64 54/55
    Cleanup : libgcc-4.8.5-36.el7.x86_64 55/55
    Verifying : gcc-objc-4.8.5-36.el7_6.1.x86_64 1/55
    Verifying : glibc-common-2.17-260.el7_6.3.x86_64 2/55
    Verifying : gcc-gfortran-4.8.5-36.el7_6.1.x86_64 3/55
    Verifying : libcom_err-devel-1.42.9-13.el7.x86_64 4/55
    Verifying : 1:gmp-devel-6.0.0-15.el7.x86_64 5/55
    Verifying : 1:openssl-1.0.2k-16.el7_6.1.x86_64 6/55
    Verifying : libgomp-4.8.5-36.el7_6.1.x86_64 7/55
    Verifying : pcre-devel-8.32-17.el7.x86_64 8/55
    Verifying : libstdc++-devel-4.8.5-36.el7_6.1.x86_64 9/55
    Verifying : cpp-4.8.5-36.el7_6.1.x86_64 10/55
    Verifying : krb5-devel-1.15.1-37.el7_6.x86_64 11/55
    Verifying : expat-devel-2.1.0-10.el7_3.x86_64 12/55
    Verifying : libxml2-devel-2.9.1-6.el7_2.3.x86_64 13/55
    Verifying : kernel-headers-3.10.0-957.10.1.el7.x86_64 14/55
    Verifying : libquadmath-devel-4.8.5-36.el7_6.1.x86_64 15/55
    Verifying : libquadmath-4.8.5-36.el7_6.1.x86_64 16/55
    Verifying : glibc-2.17-260.el7_6.3.x86_64 17/55
    Verifying : zlib-devel-1.2.7-18.el7.x86_64 18/55
    Verifying : mpfr-devel-3.1.1-4.el7.x86_64 19/55
    Verifying : keyutils-libs-devel-1.5.8-3.el7.x86_64 20/55
    Verifying : gcc-gnat-4.8.5-36.el7_6.1.x86_64 21/55
    Verifying : gcc-objc++-4.8.5-36.el7_6.1.x86_64 22/55
    Verifying : glibc-headers-2.17-260.el7_6.3.x86_64 23/55
    Verifying : glibc-devel-2.17-260.el7_6.3.x86_64 24/55
    Verifying : gcc-plugin-devel-4.8.5-36.el7_6.1.x86_64 25/55
    Verifying : libstdc++-4.8.5-36.el7_6.1.x86_64 26/55
    Verifying : libgfortran-4.8.5-36.el7_6.1.x86_64 27/55
    Verifying : libmpc-devel-1.0.1-3.el7.x86_64 28/55
    Verifying : xz-devel-5.2.2-1.el7.x86_64 29/55
    Verifying : libgo-4.8.5-36.el7_6.1.x86_64 30/55
    Verifying : libobjc-4.8.5-36.el7_6.1.x86_64 31/55
    Verifying : libmpc-1.0.1-3.el7.x86_64 32/55
    Verifying : libgcc-4.8.5-36.el7_6.1.x86_64 33/55
    Verifying : libsepol-devel-2.5-10.el7.x86_64 34/55
    Verifying : 1:openssl-devel-1.0.2k-16.el7_6.1.x86_64 35/55
    Verifying : krb5-libs-1.15.1-37.el7_6.x86_64 36/55
    Verifying : libgnat-devel-4.8.5-36.el7_6.1.x86_64 37/55
    Verifying : gcc-4.8.5-36.el7_6.1.x86_64 38/55
    Verifying : libverto-devel-0.2.5-4.el7.x86_64 39/55
    Verifying : libgnat-4.8.5-36.el7_6.1.x86_64 40/55
    Verifying : libkadm5-1.15.1-37.el7_6.x86_64 41/55
    Verifying : mpfr-3.1.1-4.el7.x86_64 42/55
    Verifying : gcc-go-4.8.5-36.el7_6.1.x86_64 43/55
    Verifying : gcc-c++-4.8.5-36.el7_6.1.x86_64 44/55
    Verifying : libselinux-devel-2.5-14.1.el7.x86_64 45/55
    Verifying : 1:openssl-libs-1.0.2k-16.el7_6.1.x86_64 46/55
    Verifying : libgo-devel-4.8.5-36.el7_6.1.x86_64 47/55
    Verifying : libgcc-4.8.5-36.el7.x86_64 48/55
    Verifying : 1:openssl-libs-1.0.2k-16.el7.x86_64 49/55
    Verifying : glibc-2.17-260.el7.x86_64 50/55
    Verifying : 1:openssl-1.0.2k-16.el7.x86_64 51/55
    Verifying : glibc-common-2.17-260.el7.x86_64 52/55
    Verifying : libgomp-4.8.5-36.el7.x86_64 53/55
    Verifying : krb5-libs-1.15.1-34.el7.x86_64 54/55
    Verifying : libstdc++-4.8.5-36.el7.x86_64 55/55

    Installed:
    expat-devel.x86_64 0:2.1.0-10.el7_3
    gcc.x86_64 0:4.8.5-36.el7_6.1
    gcc-c++.x86_64 0:4.8.5-36.el7_6.1
    gcc-gfortran.x86_64 0:4.8.5-36.el7_6.1
    gcc-gnat.x86_64 0:4.8.5-36.el7_6.1
    gcc-go.x86_64 0:4.8.5-36.el7_6.1
    gcc-objc.x86_64 0:4.8.5-36.el7_6.1
    gcc-objc++.x86_64 0:4.8.5-36.el7_6.1
    gcc-plugin-devel.x86_64 0:4.8.5-36.el7_6.1
    libxml2-devel.x86_64 0:2.9.1-6.el7_2.3
    openssl-devel.x86_64 1:1.0.2k-16.el7_6.1
    pcre-devel.x86_64 0:8.32-17.el7
    zlib-devel.x86_64 0:1.2.7-18.el7

    Dependency Installed:
    cpp.x86_64 0:4.8.5-36.el7_6.1
    glibc-devel.x86_64 0:2.17-260.el7_6.3
    glibc-headers.x86_64 0:2.17-260.el7_6.3
    gmp-devel.x86_64 1:6.0.0-15.el7
    kernel-headers.x86_64 0:3.10.0-957.10.1.el7
    keyutils-libs-devel.x86_64 0:1.5.8-3.el7
    krb5-devel.x86_64 0:1.15.1-37.el7_6
    libcom_err-devel.x86_64 0:1.42.9-13.el7
    libgfortran.x86_64 0:4.8.5-36.el7_6.1
    libgnat.x86_64 0:4.8.5-36.el7_6.1
    libgnat-devel.x86_64 0:4.8.5-36.el7_6.1
    libgo.x86_64 0:4.8.5-36.el7_6.1
    libgo-devel.x86_64 0:4.8.5-36.el7_6.1
    libkadm5.x86_64 0:1.15.1-37.el7_6
    libmpc.x86_64 0:1.0.1-3.el7
    libmpc-devel.x86_64 0:1.0.1-3.el7
    libobjc.x86_64 0:4.8.5-36.el7_6.1
    libquadmath.x86_64 0:4.8.5-36.el7_6.1
    libquadmath-devel.x86_64 0:4.8.5-36.el7_6.1
    libselinux-devel.x86_64 0:2.5-14.1.el7
    libsepol-devel.x86_64 0:2.5-10.el7
    libstdc++-devel.x86_64 0:4.8.5-36.el7_6.1
    libverto-devel.x86_64 0:0.2.5-4.el7
    mpfr.x86_64 0:3.1.1-4.el7
    mpfr-devel.x86_64 0:3.1.1-4.el7
    xz-devel.x86_64 0:5.2.2-1.el7

    Dependency Updated:
    glibc.x86_64 0:2.17-260.el7_6.3 glibc-common.x86_64 0:2.17-260.el7_6.3
    krb5-libs.x86_64 0:1.15.1-37.el7_6 libgcc.x86_64 0:4.8.5-36.el7_6.1
    libgomp.x86_64 0:4.8.5-36.el7_6.1 libstdc++.x86_64 0:4.8.5-36.el7_6.1
    openssl.x86_64 1:1.0.2k-16.el7_6.1 openssl-libs.x86_64 1:1.0.2k-16.el7_6.1

    Complete!
    [root@vmhzplinuxserver home]# rpm -qa| grep httpd
    [root@vmhzplinuxserver home]# yum install -y httpd
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package httpd.x86_64 0:2.4.6-88.el7.centos will be installed
    --> Processing Dependency: httpd-tools = 2.4.6-88.el7.centos for package: httpd-2.4.6-88.el7.centos.x86_64
    --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-88.el7.centos.x86_64
    --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.x86_64
    --> Processing Dependency: libapr-1.so.0()(64bit) for package: httpd-2.4.6-88.el7.centos.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 httpd-tools.x86_64 0:2.4.6-88.el7.centos will be installed
    ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================
    Package Arch Version Repository Size
    =================================================================================
    Installing:
    httpd x86_64 2.4.6-88.el7.centos base 2.7 M
    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
    httpd-tools x86_64 2.4.6-88.el7.centos base 90 k
    mailcap noarch 2.1.41-2.el7 base 31 k

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

    Total download size: 3.0 M
    Installed size: 10 M
    Downloading packages:
    (1/5): apr-1.4.8-3.el7_4.1.x86_64.rpm | 103 kB 00:00:00
    (2/5): apr-util-1.5.2-6.el7.x86_64.rpm | 92 kB 00:00:00
    (3/5): httpd-tools-2.4.6-88.el7.centos.x86_64.rpm | 90 kB 00:00:00
    (4/5): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:00
    (5/5): httpd-2.4.6-88.el7.centos.x86_64.rpm | 2.7 MB 00:00:01
    ---------------------------------------------------------------------------------
    Total 1.5 MB/s | 3.0 MB 00:02
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : apr-1.4.8-3.el7_4.1.x86_64 1/5
    Installing : apr-util-1.5.2-6.el7.x86_64 2/5
    Installing : httpd-tools-2.4.6-88.el7.centos.x86_64 3/5
    Installing : mailcap-2.1.41-2.el7.noarch 4/5
    Installing : httpd-2.4.6-88.el7.centos.x86_64 5/5
    Verifying : httpd-tools-2.4.6-88.el7.centos.x86_64 1/5
    Verifying : apr-1.4.8-3.el7_4.1.x86_64 2/5
    Verifying : mailcap-2.1.41-2.el7.noarch 3/5
    Verifying : httpd-2.4.6-88.el7.centos.x86_64 4/5
    Verifying : apr-util-1.5.2-6.el7.x86_64 5/5

    Installed:
    httpd.x86_64 0:2.4.6-88.el7.centos

    Dependency Installed:
    apr.x86_64 0:1.4.8-3.el7_4.1 apr-util.x86_64 0:1.5.2-6.el7
    httpd-tools.x86_64 0:2.4.6-88.el7.centos mailcap.noarch 0:2.1.41-2.el7

    Complete!
    [root@vmhzplinuxserver home]# cd /etc/httpd
    [root@vmhzplinuxserver httpd]# ls
    conf conf.d conf.modules.d logs modules run
    [root@vmhzplinuxserver httpd]# cd conf
    [root@vmhzplinuxserver conf]# ls
    httpd.conf magic
    [root@vmhzplinuxserver conf]# cp httpd.conf httpd.conf.bak
    [root@vmhzplinuxserver conf]# ls
    httpd.conf httpd.conf.bak magic
    [root@vmhzplinuxserver conf]# systemctl enable httpd
    Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
    [root@vmhzplinuxserver conf]# systemctl start httpd
    [root@vmhzplinuxserver conf]# systemctl status httpd
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: active (running) since Wed 2019-03-20 09:47:58 CST; 8s ago
    Docs: man:httpd(8)
    man:apachectl(8)
    Main PID: 15697 (httpd)
    Status: "Processing requests..."
    CGroup: /system.slice/httpd.service
    ├─15697 /usr/sbin/httpd -DFOREGROUND
    ├─15698 /usr/sbin/httpd -DFOREGROUND
    ├─15699 /usr/sbin/httpd -DFOREGROUND
    ├─15700 /usr/sbin/httpd -DFOREGROUND
    ├─15701 /usr/sbin/httpd -DFOREGROUND
    └─15702 /usr/sbin/httpd -DFOREGROUND

    Mar 20 09:47:57 vmhzplinuxserver systemd[1]: Starting The Apache HTTP Server...
    Mar 20 09:47:57 vmhzplinuxserver httpd[15697]: AH00558: httpd: Could not reli...e
    Mar 20 09:47:58 vmhzplinuxserver systemd[1]: Started The Apache HTTP Server.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@vmhzplinuxserver conf]# ls
    httpd.conf httpd.conf.bak magic
    [root@vmhzplinuxserver conf]# vim httpd.conf
    #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so 'log/access_log'
    # with ServerRoot set to '/www' will be interpreted by the
    # server as '/www/log/access_log', where as '/log/access_log' will be
    # interpreted as '/log/access_log'.

    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to specify a local disk on the
    # Mutex directive, if file-based mutexes are used. If you wish to share the
    # same ServerRoot for multiple httpd daemons, you will need to change at
    # least PidFile.
    #
    ServerRoot "/etc/httpd"

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    Include conf.modules.d/*.conf

    #
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    #
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    #
    User apache
    Group apache

    # 'Main' server configuration
    #
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    #
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    #

    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. admin@your-domain.com
    #
    ServerAdmin root@localhost

    #
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName www.example.com:80

    #
    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other
    # <Directory> blocks below.
    #
    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "/var/www/html"

    #
    # Relax access to content within /var/www.
    #
    <Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
    </Directory>

    # Further relax access to the default document root:
    <Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
    </Directory>

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>

    #
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    #
    <Files ".ht*">
    Require all denied
    </Files>

    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog "logs/error_log"

    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel warn

    <IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
    LogFormat "%h %l %u %t "%r" %>s %b" common

    <IfModule logio_module>
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined
    </IfModule>

    <IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

    </IfModule>

    #
    # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
    </Directory>

    <IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    </IfModule>

    #
    # Specify a default charset for all content served; this enables
    # interpretation of all content as UTF-8 by default. To use the
    # default browser choice (ISO-8859-1), or to allow the META tags
    # in HTML content to override this choice, comment out this
    # directive:
    #
    AddDefaultCharset UTF-8

    <IfModule mime_magic_module>
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    MIMEMagicFile conf/magic
    </IfModule>

    #
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    #

    #
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall may be used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    # Defaults if commented: EnableMMAP On, EnableSendfile Off
    #
    #EnableMMAP off
    EnableSendfile on

    # Supplemental configuration
    #
    # Load config files in the "/etc/httpd/conf.d" directory, if any.
    IncludeOptional conf.d/*.conf
    IncludeOptional conf.d/*.conf


    "httpd.conf" 360L, 11876C written
    [root@vmhzplinuxserver conf]# cat httpd.conf
    #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do. They're here only as hints or reminders. If you are unsure
    # consult the online docs. You have been warned.
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with "/" (or "drive:/" for Win32), the
    # server will use that explicit path. If the filenames do *not* begin
    # with "/", the value of ServerRoot is prepended -- so 'log/access_log'
    # with ServerRoot set to '/www' will be interpreted by the
    # server as '/www/log/access_log', where as '/log/access_log' will be
    # interpreted as '/log/access_log'.

    #
    # ServerRoot: The top of the directory tree under which the server's
    # configuration, error, and log files are kept.
    #
    # Do not add a slash at the end of the directory path. If you point
    # ServerRoot at a non-local disk, be sure to specify a local disk on the
    # Mutex directive, if file-based mutexes are used. If you wish to share the
    # same ServerRoot for multiple httpd daemons, you will need to change at
    # least PidFile.
    #
    ServerRoot "/etc/httpd"

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the functionality of a module which was built as a DSO you
    # have to place corresponding `LoadModule' lines at this location so the
    # directives contained in it are actually available _before_ they are used.
    # Statically compiled modules (those listed by `httpd -l') do not need
    # to be loaded here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    Include conf.modules.d/*.conf

    #
    # If you wish httpd to run as a different user or group, you must run
    # httpd as root initially and it will switch.
    #
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    #
    User apache
    Group apache

    # 'Main' server configuration
    #
    # The directives in this section set up the values used by the 'main'
    # server, which responds to any requests that aren't handled by a
    # <VirtualHost> definition. These values also provide defaults for
    # any <VirtualHost> containers you may define later in the file.
    #
    # All of these directives may appear inside <VirtualHost> containers,
    # in which case these default settings will be overridden for the
    # virtual host being defined.
    #

    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mailed. This address appears on some server-generated pages, such
    # as error documents. e.g. admin@your-domain.com
    #
    ServerAdmin root@localhost

    #
    # ServerName gives the name and port that the server uses to identify itself.
    # This can often be determined automatically, but we recommend you specify
    # it explicitly to prevent problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName www.example.com:80

    #
    # Deny access to the entirety of your server's filesystem. You must
    # explicitly permit access to web content directories in other
    # <Directory> blocks below.
    #
    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "/var/www/html"

    #
    # Relax access to content within /var/www.
    #
    <Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
    </Directory>

    # Further relax access to the default document root:
    <Directory "/var/www/html">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
    </Directory>

    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    <IfModule dir_module>
    DirectoryIndex index.html
    </IfModule>

    #
    # The following lines prevent .htaccess and .htpasswd files from being
    # viewed by Web clients.
    #
    <Files ".ht*">
    Require all denied
    </Files>

    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive within a <VirtualHost>
    # container, error messages relating to that virtual host will be
    # logged here. If you *do* define an error logfile for a <VirtualHost>
    # container, that host's errors will be logged there and not here.
    #
    ErrorLog "logs/error_log"

    #
    # LogLevel: Control the number of messages logged to the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    #
    LogLevel warn

    <IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
    LogFormat "%h %l %u %t "%r" %>s %b" common

    <IfModule logio_module>
    # You need to enable mod_logio.c to use %I and %O
    LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access_log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access_log" combined
    </IfModule>

    <IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to
    # exist in your server's namespace, but do not anymore. The client
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL. You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client. The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

    </IfModule>

    #
    # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
    # CGI directory exists, if you have that configured.
    #
    <Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
    </Directory>

    <IfModule mime_module>
    #
    # TypesConfig points to the file containing the list of mappings from
    # filename extension to MIME-type.
    #
    TypesConfig /etc/mime.types

    #
    # AddType allows you to add to or override the MIME configuration
    # file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress .Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented-out, then you
    # probably should define those extensions to indicate media types:
    #
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For type maps (negotiated resources):
    #AddHandler type-map var

    #
    # Filters allow you to process content before it is sent to the client.
    #
    # To parse .shtml files for server-side includes (SSI):
    # (You will also need to add "Includes" to the "Options" directive.)
    #
    AddType text/html .shtml
    AddOutputFilter INCLUDES .shtml
    </IfModule>

    #
    # Specify a default charset for all content served; this enables
    # interpretation of all content as UTF-8 by default. To use the
    # default browser choice (ISO-8859-1), or to allow the META tags
    # in HTML content to override this choice, comment out this
    # directive:
    #
    AddDefaultCharset UTF-8

    <IfModule mime_magic_module>
    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    MIMEMagicFile conf/magic
    </IfModule>

    #
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    #

    #
    # EnableMMAP and EnableSendfile: On systems that support it,
    # memory-mapping or the sendfile syscall may be used to deliver
    # files. This usually improves server performance, but must
    # be turned off when serving from networked-mounted
    # filesystems or if support for these functions is otherwise
    # broken on your system.
    # Defaults if commented: EnableMMAP On, EnableSendfile Off
    #
    #EnableMMAP off
    EnableSendfile on

    # Supplemental configuration
    #
    # Load config files in the "/etc/httpd/conf.d" directory, if any.
    IncludeOptional conf.d/*.conf

    ExtendedStatus On
    <location /server-status>
    SetHandler server-status
    Order Allow,Deny
    Allow from all
    </location>
    [root@vmhzplinuxserver conf]# systemctl restart httpd
    [root@vmhzplinuxserver conf]# systemctl status httpd
    ● httpd.service - The Apache HTTP Server
    Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
    Active: active (running) since Wed 2019-03-20 09:49:50 CST; 8s ago
    Docs: man:httpd(8)
    man:apachectl(8)
    Process: 15735 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
    Main PID: 15739 (httpd)
    Status: "Processing requests..."
    CGroup: /system.slice/httpd.service
    ├─15739 /usr/sbin/httpd -DFOREGROUND
    ├─15740 /usr/sbin/httpd -DFOREGROUND
    ├─15741 /usr/sbin/httpd -DFOREGROUND
    ├─15742 /usr/sbin/httpd -DFOREGROUND
    ├─15743 /usr/sbin/httpd -DFOREGROUND
    └─15744 /usr/sbin/httpd -DFOREGROUND

    Mar 20 09:49:50 vmhzplinuxserver systemd[1]: Starting The Apache HTTP Server...
    Mar 20 09:49:50 vmhzplinuxserver httpd[15739]: AH00558: httpd: Could not reli...e
    Mar 20 09:49:50 vmhzplinuxserver systemd[1]: Started The Apache HTTP Server.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@vmhzplinuxserver conf]# httpd -v
    Server version: Apache/2.4.6 (CentOS)
    Server built: Nov 5 2018 01:47:09
    [root@vmhzplinuxserver conf]# yum install zabbix-get.x86_64
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    No package zabbix-get.x86_64 available.
    Error: Nothing to do
    [root@vmhzplinuxserver conf]# rpm -ivh http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
    Retrieving http://repo.zabbix.com/zabbix/3.2/rhel/7/x86_64/zabbix-release-3.2-1.el7.noarch.rpm
    warning: /var/tmp/rpm-tmp.1zcZGC: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
    Preparing... ################################# [100%]
    Updating / installing...
    1:zabbix-release-3.2-1.el7 ################################# [100%]
    [root@vmhzplinuxserver conf]# yum install zabbix-get.x86_64
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    zabbix | 2.9 kB 00:00:00
    zabbix-non-supported | 951 B 00:00:00
    zabbix/x86_64/primary_db | 87 kB 00:00:00
    zabbix-non-supported/x86_64/primary | 1.6 kB 00:00:00
    zabbix-non-supported 4/4
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-get.x86_64 0:3.2.11-1.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================
    Package Arch Version Repository Size
    =================================================================================
    Installing:
    zabbix-get x86_64 3.2.11-1.el7 zabbix 241 k

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

    Total download size: 241 k
    Installed size: 972 k
    Is this ok [y/d/N]: y
    Downloading packages:
    warning: /var/cache/yum/x86_64/7/zabbix/packages/zabbix-get-3.2.11-1.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID a14fe591: NOKEY
    Public key for zabbix-get-3.2.11-1.el7.x86_64.rpm is not installed
    zabbix-get-3.2.11-1.el7.x86_64.rpm | 241 kB 00:00:00
    Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
    Importing GPG key 0xA14FE591:
    Userid : "Zabbix LLC <packager@zabbix.com>"
    Fingerprint: a184 8f53 52d0 22b9 471d 83d0 082a b56b a14f e591
    Package : zabbix-release-3.2-1.el7.noarch (installed)
    From : /etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
    Is this ok [y/N]: y
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Warning: RPMDB altered outside of yum.
    Installing : zabbix-get-3.2.11-1.el7.x86_64 1/1
    Verifying : zabbix-get-3.2.11-1.el7.x86_64 1/1

    Installed:
    zabbix-get.x86_64 0:3.2.11-1.el7

    Complete!
    [root@vmhzplinuxserver conf]# zabbix_get -V
    zabbix_get (Zabbix) 3.2.11
    Revision 76339 27 December 2017, compilation time: Dec 27 2017 15:13:43

    Copyright (C) 2017 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    [root@vmhzplinuxserver conf]# pwd
    /etc/httpd/conf
    [root@vmhzplinuxserver conf]# cd /home
    [root@vmhzplinuxserver home]# ls
    [root@vmhzplinuxserver home]# wget https://github.com/lorf/zapache/archive/master.zip
    --2019-03-20 09:53:13-- https://github.com/lorf/zapache/archive/master.zip
    Resolving github.com (github.com)... 13.250.177.223, 13.229.188.59, 52.74.223.119
    Connecting to github.com (github.com)|13.250.177.223|:443... connected.
    HTTP request sent, awaiting response... 302 Found
    Location: https://codeload.github.com/lorf/zapache/zip/master [following]
    --2019-03-20 09:53:14-- https://codeload.github.com/lorf/zapache/zip/master
    Resolving codeload.github.com (codeload.github.com)... 13.250.162.133, 54.251.140.56, 13.229.189.0
    Connecting to codeload.github.com (codeload.github.com)|13.250.162.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: unspecified [application/zip]
    Saving to: ‘master.zip’

    [ <=> ] 8,626 --.-K/s in 0.05s

    2019-03-20 09:53:15 (162 KB/s) - ‘master.zip’ saved [8626]

    [root@vmhzplinuxserver home]# ll
    total 12
    -rw-r--r-- 1 root root 8626 Mar 20 09:53 master.zip
    [root@vmhzplinuxserver home]# yum install unzip
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package unzip.x86_64 0:6.0-19.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================
    Package Arch Version Repository Size
    =================================================================================
    Installing:
    unzip x86_64 6.0-19.el7 base 170 k

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

    Total download size: 170 k
    Installed size: 365 k
    Is this ok [y/d/N]: y
    Downloading packages:
    unzip-6.0-19.el7.x86_64.rpm | 170 kB 00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : unzip-6.0-19.el7.x86_64 1/1
    Verifying : unzip-6.0-19.el7.x86_64 1/1

    Installed:
    unzip.x86_64 0:6.0-19.el7

    Complete!
    [root@vmhzplinuxserver home]# yum install zip
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: centos.ustc.edu.cn
    * extras: centos.communilink.net
    * updates: centos.communilink.net
    Resolving Dependencies
    --> Running transaction check
    ---> Package zip.x86_64 0:3.0-11.el7 will be installed
    --> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================
    Package Arch Version Repository Size
    =================================================================================
    Installing:
    zip x86_64 3.0-11.el7 base 260 k

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

    Total download size: 260 k
    Installed size: 796 k
    Is this ok [y/d/N]: y
    Downloading packages:
    zip-3.0-11.el7.x86_64.rpm | 260 kB 00:00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : zip-3.0-11.el7.x86_64 1/1
    Verifying : zip-3.0-11.el7.x86_64 1/1

    Installed:
    zip.x86_64 0:3.0-11.el7

    Complete!
    [root@vmhzplinuxserver home]# ll
    total 12
    -rw-r--r-- 1 root root 8626 Mar 20 09:53 master.zip
    [root@vmhzplinuxserver home]# unzip master.zip
    Archive: master.zip
    24a764b2e224f9b8d0a6bc94dcadd7568b2fe650
    creating: zapache-master/
    inflating: zapache-master/README.md
    inflating: zapache-master/httpd-server-status.conf.sample
    inflating: zapache-master/userparameter_zapache.conf.sample
    inflating: zapache-master/zapache
    inflating: zapache-master/zapache-template-active.xml
    inflating: zapache-master/zapache-template.xml
    [root@vmhzplinuxserver home]# ls
    master.zip zapache-master
    [root@vmhzplinuxserver home]# cd zapache-master
    [root@vmhzplinuxserver zapache-master]# ls
    httpd-server-status.conf.sample zapache
    README.md zapache-template-active.xml
    userparameter_zapache.conf.sample zapache-template.xml
    [root@vmhzplinuxserver zapache-master]# ll
    total 124
    -rw-r--r-- 1 root root 676 Apr 22 2016 httpd-server-status.conf.sample
    -rw-r--r-- 1 root root 1780 Apr 22 2016 README.md
    -rw-r--r-- 1 root root 224 Apr 22 2016 userparameter_zapache.conf.sample
    -rwxr-xr-x 1 root root 6110 Apr 22 2016 zapache
    -rw-r--r-- 1 root root 52258 Apr 22 2016 zapache-template-active.xml
    -rw-r--r-- 1 root root 52024 Apr 22 2016 zapache-template.xml
    [root@vmhzplinuxserver zapache-master]# cat httpd-server-status.conf.sample
    #
    # This is a sample Apache config file to setup status page.
    # Put it in /etc/httpd/conf.d/ or otherwise integrate with Apache conf.
    #

    #
    # ExtendedStatus controls whether Apache will generate "full" status
    # information (ExtendedStatus On) or just basic information (ExtendedStatus
    # Off) when the "server-status" handler is called. The default is Off.
    #
    ExtendedStatus On

    #
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # Change the ".example.com" to match your domain to enable.
    #
    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost
    </Location>
    [root@vmhzplinuxserver zapache-master]# cp userparameter_zapache.conf.sample /etc/zabbix/zabbix_agentd.d/
    [root@vmhzplinuxserver zapache-master]# cd /etc/zabbix/zabbix_agentd.d/
    [root@vmhzplinuxserver zabbix_agentd.d]# ls
    userparameter_mysql.conf userparameter_zapache.conf.sample
    [root@vmhzplinuxserver zabbix_agentd.d]# ll
    total 8
    -rw-r--r--. 1 root root 1531 Oct 1 16:41 userparameter_mysql.conf
    -rw-r--r-- 1 root root 224 Mar 20 09:54 userparameter_zapache.conf.sample
    [root@vmhzplinuxserver zabbix_agentd.d]# mv userparameter_zapache.conf.sample userparameter_zapache.conf
    [root@vmhzplinuxserver zabbix_agentd.d]# ll
    total 8
    -rw-r--r--. 1 root root 1531 Oct 1 16:41 userparameter_mysql.conf
    -rw-r--r-- 1 root root 224 Mar 20 09:54 userparameter_zapache.conf
    [root@vmhzplinuxserver zabbix_agentd.d]# cat userparameter_zapache.conf
    #
    # This is a sample zabbix_agentd config file.
    # Put it to /etc/zabbix_agentd.conf.d or otherwise integrate into agent config.
    # Edit to your needs.
    #
    UserParameter=zapache[*],/var/lib/zabbixsrv/externalscripts/zapache $1
    [root@vmhzplinuxserver zabbix_agentd.d]# vim userparameter_zapache.conf
    #
    # This is a sample zabbix_agentd config file.
    # Put it to /etc/zabbix_agentd.conf.d or otherwise integrate into agent config.
    # Edit to your needs.
    #
    UserParameter=zapache[*],/var/lib/zabbixsrv/externalscripts/zapache $1
    ~
    "userparameter_zapache.conf" 6L, 210C written
    [root@vmhzplinuxserver zabbix_agentd.d]# cat userparameter_zapache.conf
    #
    # This is a sample zabbix_agentd config file.
    # Put it to /etc/zabbix_agentd.conf.d or otherwise integrate into agent config.
    # Edit to your needs.
    #
    UserParameter=zapache[*],/etc/zabbix/scripts/zapache $1
    [root@vmhzplinuxserver zabbix_agentd.d]# cd ..
    [root@vmhzplinuxserver zabbix]# ls
    zabbix_agentd.conf zabbix_agentd.d
    [root@vmhzplinuxserver zabbix]# mkdir scripts
    [root@vmhzplinuxserver zabbix]# ll
    total 12
    drwxr-xr-x 2 root root 6 Mar 20 09:56 scripts
    -rw-r--r-- 1 root root 10752 Mar 20 09:25 zabbix_agentd.conf
    drwxr-xr-x. 2 root root 70 Mar 20 09:55 zabbix_agentd.d
    [root@vmhzplinuxserver zabbix]# ls
    scripts zabbix_agentd.conf zabbix_agentd.d
    [root@vmhzplinuxserver zabbix]# cd /home
    [root@vmhzplinuxserver home]# cd zapache-master
    [root@vmhzplinuxserver zapache-master]# ls
    httpd-server-status.conf.sample zapache
    README.md zapache-template-active.xml
    userparameter_zapache.conf.sample zapache-template.xml
    [root@vmhzplinuxserver zapache-master]# cp zapache /etc/zabbix/scripts/zapache
    [root@vmhzplinuxserver zapache-master]# cd /etc/zabbix/scripts
    [root@vmhzplinuxserver scripts]# ll
    total 8
    -rwxr-xr-x 1 root root 6110 Mar 20 09:56 zapache
    [root@vmhzplinuxserver scripts]# chown root.zabbix /etc/zabbix/scripts/zapache
    [root@vmhzplinuxserver scripts]# ll
    total 8
    -rwxr-xr-x 1 root zabbix 6110 Mar 20 09:56 zapache
    [root@vmhzplinuxserver scripts]# systemctl restart zabbix-agent
    [root@vmhzplinuxserver scripts]# systemctl restart zabbix-agent
    [root@vmhzplinuxserver scripts]# cd /tmp
    [root@vmhzplinuxserver tmp]# chmod a+rwx -R /tmp
    [root@vmhzplinuxserver tmp]# systemctl restart zabbix-agent
    [root@vmhzplinuxserver tmp]# systemctl status zabbix-agent
    ● zabbix-agent.service - Zabbix Agent
    Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
    Active: active (running) since Wed 2019-03-20 09:58:19 CST; 5s ago
    Process: 15929 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=0/SUCCESS)
    Process: 15933 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
    Main PID: 15935 (zabbix_agentd)
    CGroup: /system.slice/zabbix-agent.service
    ├─15935 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
    ├─15936 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
    ├─15937 /usr/sbin/zabbix_agentd: listener #1 [waiting for connectio...
    ├─15938 /usr/sbin/zabbix_agentd: listener #2 [waiting for connectio...
    ├─15939 /usr/sbin/zabbix_agentd: listener #3 [waiting for connectio...
    └─15940 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]

    Mar 20 09:58:19 vmhzplinuxserver systemd[1]: Stopped Zabbix Agent.
    Mar 20 09:58:19 vmhzplinuxserver systemd[1]: Starting Zabbix Agent...
    Mar 20 09:58:19 vmhzplinuxserver systemd[1]: PID file /run/zabbix/zabbix_agen....
    Mar 20 09:58:19 vmhzplinuxserver systemd[1]: Started Zabbix Agent.
    Hint: Some lines were ellipsized, use -l to show in full.
    [root@vmhzplinuxserver tmp]# cd /var/log/zabbix
    [root@vmhzplinuxserver zabbix]# ls
    zabbix_agentd.log zabbix_agentd.log-20190210.gz zabbix_agentd.log-20190217
    [root@vmhzplinuxserver zabbix]# tailf zabbix_agentd.log
    15935:20190320:095819.240 IPv6 support: YES
    15935:20190320:095819.240 TLS support: YES
    15935:20190320:095819.240 **************************
    15935:20190320:095819.240 using configuration file: /etc/zabbix/zabbix_agentd.conf
    15935:20190320:095819.240 agent #0 started [main process]
    15936:20190320:095819.241 agent #1 started [collector]
    15937:20190320:095819.241 agent #2 started [listener #1]
    15940:20190320:095819.242 agent #5 started [active checks #1]
    15938:20190320:095819.243 agent #3 started [listener #2]
    15939:20190320:095819.243 agent #4 started [listener #3]
    ^C
    [root@vmhzplinuxserver zabbix]# curl http://localhost/server-status?auto
    Total Accesses: 38
    Total kBytes: 71
    Uptime: 564
    ReqPerSec: .0673759
    BytesPerSec: 128.908
    BytesPerReq: 1913.26
    BusyWorkers: 1
    IdleWorkers: 7
    Scoreboard: ____W___........................................................................................................................................................................................................................................................

  • 相关阅读:
    java经常出现的异常
    后台采用springmvc框架 前台bootstrap 实现对话框编辑信息
    List集合与Array数组之间的互相转换
    freemarker 设置文本内容超过一定长度 用省略号代替
    bootstrap实现多个下拉框同时搜索
    jquery 循环遍历选中的多选复选框checkbox
    同时对数据库进行更新,添加与删除操作
    获取页面内容封装成json对象
    前台bootstrap按钮动态添加与删除
    set 遍历
  • 原文地址:https://www.cnblogs.com/tiantom/p/10563166.html
Copyright © 2011-2022 走看看