安装nagios

第二部分、apache的安装

  615  tar zxvf httpd-2.2.9.tar.gz
  616  cd httpd-2.2.9
  617   ./configure --prefix=/usr/local/apache2/ --sysconfdir=/usr/local/apache2/etc/ --with-included-apr --enable-so --enable-deflate=shared --enable-expires=shared --enable-rewrite=shared
  618  make
  619  make install

 

遇到那个错误,重新编译zlib

----------

  606  tar zxvf zlib-1.2.3.tar.gz
  607  cd zlib-1.2.3
  608  CFLAGS="-O3 -fPIC" ./configure
  609  make
  610  make install

第三部分、php的安装

 ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-libxml-dir=/usr/local/libxml2
make

 

make install

 安装php需要这个libxml2

  477  tar zxvf libxml2-2.6.32.tar.gz
  478  cd libxml2-2.6.32
  479  ./configure --prefix=/usr/local/libxml2
  480  make
  481  make install

 

用户名和密码 ,apache权限访问,添加

/usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd ixdba 

转载于:https://www.cnblogs.com/bluewelkin/p/4323425.html

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值