安装组件
本文讲述的是:Redhat配置nagios。返回大纲。
Apache、gcc glibc glibc-common gd-devel、 openssl、openssl-devel(open安装未列出)
net-snmp-libs net-snmp-devel net-snmp net-snmp-utils
安装apache、gcc
(由于rpm的依赖关系太烦人,配置yum,舒服多了,具体请见使用YUM安装LAMP全过程)
- [root@localhost ~]# yum install httpd
- ……
- Downloading Packages:
- (1/4): apr-util-1.2.7-7.e 100% |=========================| 76 kB 00:00
- (2/4): apr-1.2.7-11.i386. 100% |=========================| 123 kB 00:00
- (3/4): httpd-2.2.3-11.el5 100% |=========================| 1.1 MB 00:01
- (4/4): postgresql-libs-8. 100% |=========================| 196 kB 00:00
- warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186
- Importing GPG key 0x37017186 "Red Hat, Inc. (release key) " from http://10.155.2.75/Server/RPM-GPG-KEY-redhat-release
- Is this ok [y/N]: y
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: apr ######################### [1/4]
- Installing: postgresql-libs ######################### [2/4]
- Installing: apr-util ######################### [3/4]
- Installing: httpd ######################### [4/4]
- ……
- [root@localhost ~]# yum install gcc
- ……
- Downloading Packages:
- (1/5): libgomp-4.1.2-42.e 100% |=========================| 82 kB 00:00
- (2/5): glibc-headers-2.5- 100% |=========================| 610 kB 00:00
- (3/5): glibc-devel-2.5-24 100% |=========================| 2.0 MB 00:02
- (4/5): gcc-4.1.2-42.el5.i 100% |=========================| 5.2 MB 00:07
- (5/5): kernel-headers-2.6 100% |=========================| 843 kB 00:01
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing: libgomp ######################### [1/5]
- Installing: kernel-headers ######################### [2/5]
- Installing: glibc-headers ######################### [3/5]
- Installing: glibc-devel ######################### [4/5]
- Installing: gcc ######################### [5/5]
- Installed: gcc.i386 0:4.1.2-42.el5
- Dependency Installed: glibc-devel.i386 0:2.5-24 glibc-headers.i386 0:2.5-24 kernel-headers.i386 0:2.6.18-92.el5 libgomp.i386 0:4.1.2-42.el5
Complete!
- [root@localhost ~]# yum install glibc glibc-common gd-devel
- ……
- Running Transaction
- Installing: zlib-devel ####################### [ 1/12]
- Installing: freetype-devel ####################### [ 2/12]
- Installing: fontconfig-devel ####################### [ 3/12]
- Installing: libpng-devel ####################### [ 4/12]
- Installing: libXau-devel ####################### [ 5/12]
- Installing: libjpeg-devel ####################### [ 6/12]
- Installing: xorg-x11-proto-devel ####################### [ 7/12]
- Installing: libX11-devel ####################### [ 8/12]
- Installing: libXpm-devel ####################### [ 9/12]
- Installing: libXdmcp-devel ####################### [10/12]
- Installing: mesa-libGL-devel ####################### [11/12]
- Installing: gd-devel ####################### [12/12]
- Installed: gd-devel.i386 0:2.0.33-9.4.el5_1.1
- Dependency Installed: fontconfig-devel.i386 0:2.4.1-7.el5 freetype-devel.i386 0:2.2.1-19.el5 libX11-devel.i386 0:1.0.3-9.el5 libXau-devel.i386 0:1.0.1-3.1 libXdmcp-devel.i386 0:1.0.1-2.1 libXpm-devel.i386 0:3.5.5-3 libjpeg-devel.i386 0:6b-37 libpng-devel.i386 2:1.2.10-7.1.el5_0.1 mesa-libGL-devel.i386 0:6.5.1-7.5.el5 xorg-x11-proto-devel.i386 0:7.1-9.fc6 zlib-devel.i386 0:1.2.3-3
Complete!
【编辑推荐】