亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

搭建nagios監控

發布時間:2020-07-03 18:42:13 來源:網絡 閱讀:301 作者:xinerwener 欄目:移動開發

[root@localhost nagios]# tar zxvf nagios-3.2.0.tar.gz
[root@localhost nagios-3.2.0]# pwd
/root/nagios/nagios-3.2.0
[root@localhost nagios-3.2.0]# ./configure --prefix=/usr/local/nagios/
[root@localhost nagios-3.2.0]# make all && make install
[root@localhost nagios-3.2.0]# make install-init
[root@localhost nagios-3.2.0]# make install-commandmode
[root@localhost nagios-3.2.0]# make install-config

[root@localhost nagios]# tar -zxvf nagios-plugins-1.4.14.tar.gz
[root@localhost nagios]# cd nagios-plugins-1.4.14
[root@localhost nagios-plugins-1.4.14]# ./configure --prefix=/usr/local/nagios/
[root@localhost nagios-plugins-1.4.14]# make && make install

[root@localhost nagios]# tar jxvf nagios-cn-3.2.0.tar.bz2
[root@localhost nagios]# cd nagios-cn-3.2.0
[root@localhost nagios-cn-3.2.0]# ./configure
[root@localhost nagios-cn-3.2.0]# make all && make install

[root@localhost nagios]# tar zxvf httpd-2.2.22.tar.gz
[root@localhost httpd-2.2.22]# mkdir /usr/local/apache2
[root@localhost httpd-2.2.22]# ./configure --prefix=/usr/local/apache2
[root@localhost httpd-2.2.22]# make && make install

[root@localhost nagios]# cd php-5.3.20
[root@localhost php-5.3.20]# mkdir /usr/local/php
[root@localhost php-5.3.20]# ./configure --prefix=/usr/local/php/ --with-apxs2=/usr/local/apache2/bin/apxs
[root@localhost php-5.3.20]# make && make install


User nagios
Group nagios
<IfModule dir_module>
   DirectoryIndex index.html index.php
</IfModule>

AddType application/x-httpd-php .php

#setting for nagios
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
       <Directory "/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
       </Directory>

Alias /nagios "/usr/local/nagios/share"
       <Directory "/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
       </Directory>


[root@localhost conf]# /usr/local/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd yangqing
New password:
Re-type new password:
Adding password for user ixdba

[root@localhost nagios]# /etc/init.d/nagios start

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

鄂州市| 越西县| 和顺县| 长顺县| 花莲县| 白水县| 冕宁县| 宜春市| 教育| 望城县| 汉寿县| 右玉县| 屏东市| 台州市| 通江县| 石景山区| 阿瓦提县| 南皮县| 团风县| 海南省| 白玉县| 乌恰县| 山西省| 迁安市| 温泉县| 巨鹿县| 邯郸县| 比如县| 巴青县| 徐州市| 泰来县| 中宁县| 永善县| 庐江县| 鹿泉市| 唐河县| 梅河口市| 天气| 合江县| 屏东县| 双鸭山市|