8月 02 17:59:43 gz-cs-gpu-3-104 systemd[1]: Can’t open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
8月 02 17:59:43 gz-cs-gpu-3-104 zabbix_agentd[30933]: zabbix_agentd [30942]: cannot open “/var/log/zabbix/zabbix_agentd.log”: [2] No such file or directory
8月 02 17:59:43 gz-cs-gpu-3-104 systemd[1]: Daemon never wrote its PID file. Failing.
8月 02 17:59:43 gz-cs-gpu-3-104 systemd[1]: Failed to start Zabbix Agent.
– Subject: Unit zabbix-agent.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit zabbix-agent.service has failed.
– The result is failed.
8月 02 17:59:43 gz-cs-gpu-3-104 systemd[1]: Unit zabbix-agent.service entered failed state.
8月 02 17:59:43 gz-cs-gpu-3-104 systemd[1]: zabbix-agent.service failed.
8月 02 17:59:46 gz-cs-gpu-3-104 systemd[1]: Removed slice User Slice of zabbix.
– Subject: Unit user-996.slice has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit user-996.slice has finished shutting down.
8月 02 17:59:46 gz-cs-gpu-3-104 kubelet[3101]: E0802 17:59:46.702184 3101 dns.go:157] “Nameserver limits exceeded” err="Nameserver limits were exceeded, some nameservers have been omitted, the applied
8月 02 17:59:48 gz-cs-gpu-3-104 polkitd[1365]: Registered Authentication Agent for unix-process:31997:1381929198 (system bus name :1.1999165 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /or
8月 02 17:59:48 gz-cs-gpu-3-104 systemd[1]: Stopped Zabbix Agent.
– Subject: Unit zabbix-agent.service has finished shutting down
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit zabbix-agent.service has finished shutting down.
8月 02 17:59:48 gz-cs-gpu-3-104 systemd[1]: Starting Zabbix Agent…
– Subject: Unit zabbix-agent.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit zabbix-agent.service has begun starting up.
8月 02 17:59:48 gz-cs-gpu-3-104 systemd[1]: Can’t open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
8月 02 17:59:48 gz-cs-gpu-3-104 zabbix_agentd[32011]: zabbix_agentd [32013]: cannot open “/var/log/zabbix/zabbix_agentd.log”: [2] No such file or directory
8月 02 17:59:48 gz-cs-gpu-3-104 systemd[1]: Daemon never wrote its PID file. Failing.
8月 02 17:59:48 gz-cs-gpu-3-104 systemd[1]: Failed to start Zabbix Agent.
发现是没有权限创建log文件,这个log文件是配置文件指定,要提前创建目录和文件以及权限所属配置zabbix,我这里是/var/log/zabbix/zabbix\_agentd.log
>
> mkdir /var/log/zabbix && touch /var/log/zabbix/zabbix\_agentd.log && chown -R zabbix:zabbix /var/log/zabbix
### 最后的话
最近很多小伙伴找我要Linux学习资料,于是我翻箱倒柜,整理了一些优质资源,涵盖视频、电子书、PPT等共享给大家!
### 资料预览
给大家整理的视频资料:
![](https://img-blog.csdnimg.cn/img_convert/dd2f3107f07cc1f2c405275e5e78b57a.png)
给大家整理的电子书资料:
![](https://img-blog.csdnimg.cn/img_convert/9b44cd051c994df15c44ae6875a5fe2b.png)
**如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!**
**网上学习资料一大堆,但如果学到的知识不成体系,遇到问题时只是浅尝辄止,不再深入研究,那么很难做到真正的技术提升。**
**[需要这份系统化的资料的朋友,可以点击这里获取!](https://bbs.csdn.net/topics/618542503)**
**一个人可以走的很快,但一群人才能走的更远!不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**