欢迎来到天天文库
浏览记录
ID:40525361
大小:93.41 KB
页数:18页
时间:2019-08-04
《FreeBSD8.2架设Nagios监控服务器(Mysql主从服务器监控)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、FreeBSD8.2+Nagios(Mysql主从服务器监控)安装FreeBSD8.2的主机:1–>IP:192.168.0.50所需软件:autoconf-2.61.tar.gzfreetype-2.3.5.tar.gzgd-2.0.35.tar.gzhttpd-2.2.17.tar.gzjpegsrc.v6b.tar.gzlibmcrypt-2.5.8.tar.gzlibpng-1.2.31.tar.gzlibxml2-2.6.30.tar.gzmysql-5.1.56.tar.gznagios-3.2.0.tar.gznagios-plugins-1.4.
2、14.tar.gznrpe-2.8.1.tar.gzphp-5.3.6.tar.gzzlib-1.2.3.tar.gz首先搭建LAMP环境:********INSTALLlibxml2*********#tarzxvflibxml2-2.6.30.tar.gz#cdlibxml2-2.6.30#./configure--prefix=/usr/local/libxml2#make&&makeinstall********INSTALLlibmcrypt*********#tarzxvflibmcrypt-2.5.8.tar.gz#cdlibmcrypt-2.5.
3、8#./configure--prefix=/usr/local/libmcrypt#make&&makeinstall********INSTALLzlib*********#tarzxvfzlib-1.2.3.tar.gz#cdzlib-1.2.3#./configure--prefix=/usr/local/zlib#make&&makeinstall********INSTALLlibpng*********#tarzxvflibpng-1.2.31.tar.gz#cdlibpng-1.2.31#./configure--prefix=/usr/loca
4、l/libpng#make&&makeinstall#ln-s/usr/local/libpng/include/pngconf.h/usr/include#ln-s/usr/local/libpng/include/png.h/usr/include********INSTALLjpeg*********#mkdir/usr/local/jpeg6#mkdir/usr/local/jpeg6/bin#mkdir/usr/local/jpeg6/lib#mkdir/usr/local/jpeg6/include#mkdir-p/usr/local/jpeg6/m
5、an/man1#tarzxvfjpegsrc.v6b.tar.gz#cdjpeg-6b#./configure--prefix=/usr/local/jpeg6/--enable-shared--enable-static#make&&makeinstall********INSTALLautoconf*********#tarzxvfautoconf-2.61.tar.gz#cdautoconf-2.61#./configure#make&&makeinstall{#./configure遇到的问题configure:error:perlisnotfound#
6、sysinstall把perl-5给安装上即可。}#sysinstall安装freetype和libmng。********INSTALLgd*********#tarzxvfgd-2.0.35.tar.gz#cdgd-2.0.35#./configure--prefix=/usr/local/gd2/--with-zlib=/usr/local/zlib/--with-jpeg=/usr/local/jpeg6/--with-png=/usr/local/libpng/#make&&makeinstall********INSTALL*********#
7、tarzxvfhttpd-2.2.17.tar.gz#cdhttpd-2.2.17#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--with-z=/usr/local/zlib/--with-included-apr--enable-so--enable-deflate=shared--enable-expires=shared--enable-rewrite=shared--enable-static-support#make&&makeinstall********INST
8、ALLMysql****
此文档下载收益归作者所有