Smokeping配置完成之后出现Software error解决办法

下面是在浏览器中输入http://localhost/smokeping点击回车之后出现的错误:

Software error:

ERROR: creating /usr/local/smokeping/cache/Other: No such file or directory

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

在网络上轻易就搜索到了解决办法:

关闭SElinux防火墙设置。(以下内容出自:孤星雨的博客文章

查看SELinux状态:

1、/usr/sbin/sestatus -v      ##如果SELinux status参数为enabled即为开启状态

SELinux status:                 enabled

2、getenforce                 ##也可以用这个命令检查

关闭SELinux:

1、临时关闭(不用重启机器):

setenforce 0                  ##设置SELinux 成为permissive模式

                              ##setenforce 1 设置SELinux 成为enforcing模式

2、修改配置文件需要重启机器:

修改/etc/selinux/config 文件

将SELINUX=enforcing改为SELINUX=disabled

重启机器即可

 这之后,再把smokeping文件夹下的ver/ cache/ data/这三个文件夹的权限设置位777(谨慎操作),现在可以无忧访问了。

原文地址:https://www.cnblogs.com/ericwonne1996wangqifan/p/8854787.html