Chinaunix首页 | 论坛 | 博客
  • 博客访问: 313158
  • 博文数量: 103
  • 博客积分: 1590
  • 博客等级: 上尉
  • 技术积分: 1075
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-02 10:17
文章分类

全部博文(103)

文章存档

2013年(32)

2012年(7)

2010年(64)

我的朋友

分类: LINUX

2010-02-26 16:55:24

1)下载相关软件
apache                  #
GD库(1.63以上) #
zlib                        #
pnglib                    #
jpeglib                   #
安装 libtool
#wget:
#./configure
#make
#make install
安装jpeg6
tar -zxvf jpegsrc.v6b.tar.gz
mkdir -p /usr/local/jpeg6//bin/cjpeg
mkdir /usr/local/jpeg6/man
mkdir /usr/local/jpeg6/man/man1
./configure --prefix=/usr/local/jpeg6/
make
make install
安装libpng
# cd /tmp
# tar -zxf libpng-1.2.8.tar.gz
# cd libpng-1.2.8
# cp scrīpts/makefile.std makefile
# make; make install
安装 freetype
# cd /root/soft
# tar -zxf freetype-2.1.10.tar.gz
# cd freetype-2.1.10
# ./configure --prefix=/usr/local/freetype
# make;make install
安装最新的GD库 
# cd /tmp
# tar -zxf gd-2.0.33.tar.gz
# cd gd-2.0.33
# ./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg6/ --with-png --with-zlib --with-freetype=/usr/local/freetype/
 ./configure --with-jpeg=/usr/local/jpeg6/ --with-png --with-zlib --with-freetype=/usr/local/freetype/ (ok最好不要指定prefix以免编译pho时找不到gd)
# make; make install
##
rrdtool:
首先你要先安装,libart-2.0,libpng,freetype2
然后ln -s /usr/local/include/libart-2.0 /usr/include/libart-2.0 (关键)
ln -s /usr/local/include/freetype2 /usr/include/freetype2
##
nagios_soft]# tar -zxvf libart_lgpl-2.3.17.tar.gz
./configure
make
make install
## rrdtool
tar -zxvf rrdtool-1.2.30.tar.gz
继续安装
#./configure --prefix=$INSTALL_DIR --disable-tcl
#make clean
#make
#make install
##php5.3
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib --with-gd=/usr/local/gd2 --with-libdir=lib64  --enable-track-vars --with-xml --with-mysql --with-zlib-dir=/usr/local
出错时Unable to find libgd.(a|so) anywhere under /usr/local/gd2
#cp /usr/local/gd2/lib/* /usr/local/gd2/
###
(文档)
tar zxf pnp4nagios-0.6.2.tar.gz
cd pnp4nagios-0.6.2
./configure
make all && make install && make install-init && make install-config && make fullinstall
###
make[1]: Entering directory `/home/taohx/nagios_soft/pnp4nagios-0.6.2/sample-config'
/usr/bin/install -c -m 644 httpd.conf /etc/httpd/conf.d/pnp4nagios.conf
/usr/bin/install: cannot create regular file `/etc/httpd/conf.d/pnp4nagios.conf': No such file or directory
/usr/bin/install -c -m 644 ./sample-config/httpd.conf  /usr/local/apache/conf.d/pnp4nagios.conf (手动执行)
cp /usr/local/pnp4nagios/etc/npcd.cfg-sample /usr/local/pnp4nagios/etc/npcd.cfg
vim /usr/local/nagios/etc/nagios.cfg
### taohx pnp4nagios 2010-02-19
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
## vim /usr/local/nagios/etc/objects/templates.cfg
define host {
   name       host-pnp
   action_url /pnp4nagios/?host=$HOSTNAME$&srv=_HOST_
   register   0
}
define service {
   name       srv-pnp
   action_url /pnp4nagios/?host=$HOSTNAME$&srv=$SERVICEDESC$
   register   0
}
### apache rewrite模块
 /usr/local/apache/bin/apxs -i -a -c ./modules/mappers/mod_rewrite.c  
确认httpd.conf中已经包含mod_rewrite.so的加载语句,如下:
LoadModule rewrite_module modules/mod_rewrite.so
单击太阳时无法出现图像

mv install.php install_bk.php
阅读(997) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~