您好,登錄后才能下訂單哦!
安裝組件: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支持
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。