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