分类: LINUX
2009-12-04 16:45:57
1.安装所需要的包
a.zlib/zilb-devel
b.libpng/libpng-devel
c.freetype/freetype-devel
d.Fontconfig/fontconfig-devel
e.libxml2/libxml-devel
f.libjpeg/libjpeg-devel
g.gd
2.安装Apache
tar zxvf httpd-2.2.14.tar.gz
cd httpd-2.2.14
./configure --prefix=/usr/local/apache --enable-so
make
make install
vi /usr/local/apache/conf/httpd.conf
添加如下内容:
ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
/usr/local/apache/bin/apachectl start
3.安装nagios useradd nagios –s /sbin/nologin
tar zxvf nagios-3.2.0.tar.gz
cd nagios-3.2.0
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
make all
make install
make install-commandmode
%3