云应用与云安全之Nagios的安装和配置常见错误(上)

环境配置

配置本地yum源检查依赖环境:# yum -y install gccglibcglibc-common php php-gdperlhttpd gdgd-developensslopenssl-devel如果gd-devel未安装成功不影响。

1.出现问题:

Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"


 One of the configured repositories failed (未知),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

如下;

解决:检查网络配置是否正常

在linux下ping一下看看是不是网络链接正常。出现这种原因就是一般网络没链接好。那修改一下dns,找到/etc/sysconfig/network-scripts/ifcfg-ens33进行如下修改

检查网络是否ping通

成功后再运行命令

2.出现问题:/var/run/yum.pid 已被锁定,PID 为 4121 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存:164 M RSS (1.0 GB VSZ)
    已启动: Wed May 25 14:27:33 2022 - 03:05之前
    状态  :睡眠中,进程ID:4121

解决方法: rm -f /var/run/yum.pid

 成功

创建ngaios用户和组

 

 xshell上传并解压软件包

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值