Nginx no longer starts. nginx.service failed cause a configured resource limit was exceeded

Asked 2 years ago, Updated 2 years ago, 50 views

#systemctl start nginx.service

Job for nginx.service failed cause a configured resource limit was
exceeded.See "systemctl status nginx.service" and "journalctl-exe"
for details.

#systemctl status nginx.service

● nginx.service-nginx-high performance web server Loaded:
loaded(/usr/lib/systemd/system/nginx.service;enabled;vendor preset:
disabled)
Active:failed (Result:resources) since

#journalctl-exe

-- The result is failed.
-- systemd[1]: Failed to start Cleanup of Temporary Directors.
-- Subject: Unit systemd-tmpfiles-clean.service has failed
-- Defined-By:systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

#systemctl status systemd-tmpfiles-clean.service

●systemd-tmpfiles-clean.service-Cleanup of Temporary Directors
loaded:loaded
(/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static;
vendor preset:disabled) Active:failed (Result:start-limit) since
Date; 1 day 2hago
Docs:man:tmpfiles.d(5)
man:systemd-tmpfiles(8)Process:12692ExecStart=/usr/bin/systemd-tmpfiles--clean(code=exited,
status=0/SUCCESS)Main PID: 12692 (code=exited, status=0/SUCCESS)

Date systemd[1]: Starting Cleanup of Temporary Directors...
Date systemd[1]: Starting Cleanup of Temporary Directories...

#less/usr/lib/systemd/systemd-tmpfiles-clean.service

·I don't remember editing it, so I think it will remain the default

Unit Description=Cleanup of Temporary Directors
Documentation=man:tmpfiles.d(5)man:systemd-tmpfiles(8)
DefaultDependencies=no Conflicts=shutdown.target
After=systemd-readahead-collect.service
systemd-readahead-replay.service local-fs.target time-sync.target
Before=shutdown.target

Service Type=oneshotExecStart=/usr/bin/systemd-tmpfiles --clean
IOSchedulingClass=idle

environment
·Nginx
·CentOS 7

centos nginx

2022-09-29 22:45

1 Answers

After rebooting the operating system, you can now boot nginx.

This post was transcribed from @re9's own additions to the body of the question.


2022-09-29 22:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.