您好,登錄后才能下訂單哦!
yum -y install 包名(支持*) :自動選擇y,全自動
yum install 包名(支持*) :手動選擇y or n
yum remove 包名(不支持*)
rpm -ivh 包名(支持*):安裝rpm包
rpm -e 包名(不支持*):卸載rpm包
[root@nagios ~]# /etc/init.d/httpd status
Not Found
The requested URL /server-status was not found on this server.
[root@nagios ~]# apachectl configtest
Syntax OK
用apachectl configtest 測試配置是否正確
完成以上,就重啟httpd
vi 1gg 跳到第一行 或 gg
shift+g 跳到最后一行
nagios 登入無反應
參看錯誤日志
[root@nagios httpd]# vi /var/log/httpd/error_log
[Wed Jan 28 13:15:48 2015] [error] [client 192.168.157.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Wed Jan 28 13:15:48 2015] [error] [client 192.168.157.1] access to /nagios failed, reason: verification of user id 'nagiosadmin' not configured
查看htpasswd.users
[root@nagios httpd]# ls -ual /usr/local/nagios/etc/htpasswd.user
-rw-r--r--. 1 root root 26 Jan 27 17:25 /usr/local/nagios/etc/htpasswd.user
確認文件缺少s 應該是htpasswd.users
重新登入后 能夠正常正常
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。