您好,登錄后才能下訂單哦!
安裝組件:Yum –y instsll httpd gcc glibc glibc-common* gd* php php-mysql mysql mysql-server
添加用戶與組:
useradd nagios
groupadd nagios
useradd –G nagios nagios
安裝nagios:
Tar zxvf nagios-3.2.1.tar.gz
Cd nagios-3.2.1
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios
Make all
make install Make install-init Make install-commmode Make-install-config Make install-webconf vi /usr/local/apache2/conf/httpd.conf ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin <Directory "/usr/local/nagios/sbin"> Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user </Directory> Alias /nagios /usr/local/nagios/share <Directory "/usr/local/nagios/share"> Options None AllowOverride None Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd Require valid-user </Directory> /usr/local/apahce/bin/apachectl restart //重啟apache添加apache支持
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。