今天用自己写的抓取器抓pexels的图片,运行一段时间后程序自动停止了,查看Console出现了如题的错误提示。接下来寻找解决办法吧:
尝试一:更改用户组权限
You can find the user that your webserver is using by executing
ps aux | grep httpd
if httpd doesn’t show any information, you can try using
ps aux | grep apache
There should also be a user defined in your httpd.conf file.
One way to find this is
egrep -iw --color=auto 'user|group' /path/to/httpd/conf
以上代码查看目前用户组。CentOS没有www-data用户组,可使用apache代替。