重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

编译安装nagios-创新互联

#安装nagios

成都创新互联公司-专业网站定制、快速模板网站建设、高性价比牙克石网站开发、企业建站全套包干低至880元,成熟完善的模板库,直接使用。一站式牙克石网站制作公司更省心,省钱,快速模板网站建设找我们,业务覆盖牙克石地区。费用合理售后完善,10多年实体公司更值得信赖。

useradd -s /sbin/nologin nagios

mkdir /usr/local/nagios

chown -R nagios.nagios /usr/local/nagios

tar zxvf nagios.tar.gz

cd nagios

./configure --prefix=/usr/local/nagios/

make all

make install

make install-init

make install-commandmode

make install-config

#安装nagios插件

tar zxvf nagios-plugins.tar.gz

cd nagios-plusing

./configure --prefix=/usr/local/nagios

make

make install

#安装apapche

tar zxvf httpd.tar.gz

cd httpd

./configure --prefix=/usr/local/apache2

make

make install

#安装php

yum --disablerepo=\* --enablerepo=c5-media -y install libxml2-devel

tar zxvf php.tar.gz

cd php

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs

make

make install

#修改apache配置文件

User nagios

Group nagios

DirectoryIndex index.html index.php

AddType application/x-httpd-php .php

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

  AuthType Basic

  options ExecCGI

  Allowoverride none

  order allow,deny

  allow from all

  AuthName "Nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

Alias /nagios "/usr/local/nagios/share"

  AuthType Basic

  options none

  Allowoverride none

  order allow,deny

  allow from all

  AuthName "Nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

#创建认证文件

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

//创建一个nagios的用户

#启动相关服务

service nagios start

/usr/local/apache2/bin/apachectl start

#访问管理页面

http://ip/nagios

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


本文题目:编译安装nagios-创新互联
文章源于:http://cqcxhl.com/article/pegso.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP