Filebeat 服务不会在 RHEL 7 上启动
Filebeat Service will not start on RHEL 7
我的 Filebeat 安装有 trouble/problem。
当我尝试以“service filebeat start
”开头时,它显示 "Starting Filebeat"。在“service filebeat status
”之后我得到 4 个 PID (直到这里一切看起来 "normal"):
[root@(Server) run]# service filebeat status
Filebeat is running with pid: 30650 30657 30658 30659
但是查看PID后发现不是运行:
[root@(Server) run]# ps -ef | grep 30650
root 30665 31360 0 16:27 pts/0 00:00:00 grep --color=auto 30650
尝试使用 systemctl 启动它没有帮助:
[root@(Server) run]# systemctl start filebeat
Job for filebeat.service failed because a configured resource limit was exceeded. See "systemctl status filebeat.service" and "journalctl -xe" for details.
状态显示:
[root@Server run]# systemctl status filebeat
● filebeat.service - LSB: start and stop filebeat
Loaded: loaded (/etc/rc.d/init.d/filebeat; bad; vendor preset: disabled)
Active: failed (Result: resources) since Tue 2017-09-26 16:30:33 CEST; 1min 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 32118 ExecStart=/etc/rc.d/init.d/filebeat start (code=exited, status=0/SUCCESS)
Sep 26 16:30:33 Server... systemd[1]: Starting LSB: start and stop filebeat...
Sep 26 16:30:33 Server... filebeat[32118]: Starting Filebeat
Sep 26 16:30:33 Server... su[32119]: (to user) root on none
Sep 26 16:30:33 Server... systemd[1]: PID file /var/run/filebeat.pid not readable (yet?) after start.
Sep 26 16:30:33 Server... systemd[1]: Failed to start LSB: start and stop filebeat.
Sep 26 16:30:33 Server... systemd[1]: Unit filebeat.service entered failed state.
Sep 26 16:30:33 Server... systemd[1]: filebeat.service failed.
有人知道吗?
此致
问题是 "chown permissions"。我不是以 root 身份安装 filebeat,并且 "data" 目录具有 root 用户和组所有权。更改后,它会在开机后自动运行并启动。
此致
我的 Filebeat 安装有 trouble/problem。
当我尝试以“service filebeat start
”开头时,它显示 "Starting Filebeat"。在“service filebeat status
”之后我得到 4 个 PID (直到这里一切看起来 "normal"):
[root@(Server) run]# service filebeat status
Filebeat is running with pid: 30650 30657 30658 30659
但是查看PID后发现不是运行:
[root@(Server) run]# ps -ef | grep 30650
root 30665 31360 0 16:27 pts/0 00:00:00 grep --color=auto 30650
尝试使用 systemctl 启动它没有帮助:
[root@(Server) run]# systemctl start filebeat
Job for filebeat.service failed because a configured resource limit was exceeded. See "systemctl status filebeat.service" and "journalctl -xe" for details.
状态显示:
[root@Server run]# systemctl status filebeat
● filebeat.service - LSB: start and stop filebeat
Loaded: loaded (/etc/rc.d/init.d/filebeat; bad; vendor preset: disabled)
Active: failed (Result: resources) since Tue 2017-09-26 16:30:33 CEST; 1min 41s ago
Docs: man:systemd-sysv-generator(8)
Process: 32118 ExecStart=/etc/rc.d/init.d/filebeat start (code=exited, status=0/SUCCESS)
Sep 26 16:30:33 Server... systemd[1]: Starting LSB: start and stop filebeat...
Sep 26 16:30:33 Server... filebeat[32118]: Starting Filebeat
Sep 26 16:30:33 Server... su[32119]: (to user) root on none
Sep 26 16:30:33 Server... systemd[1]: PID file /var/run/filebeat.pid not readable (yet?) after start.
Sep 26 16:30:33 Server... systemd[1]: Failed to start LSB: start and stop filebeat.
Sep 26 16:30:33 Server... systemd[1]: Unit filebeat.service entered failed state.
Sep 26 16:30:33 Server... systemd[1]: filebeat.service failed.
有人知道吗?
此致
问题是 "chown permissions"。我不是以 root 身份安装 filebeat,并且 "data" 目录具有 root 用户和组所有权。更改后,它会在开机后自动运行并启动。
此致