
[code]

    # systemctl start nginx.service
    
[/code]

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

* * *
[code]

    # systemctl status nginx.service
    
[/code]

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

* * *
[code]

    # journalctl -xe
    
[/code]

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

* * *
[code]

    # systemctl status systemd-tmpfiles-clean.service
    
[/code]

> ● systemd-tmpfiles-clean.service - Cleanup of Temporary Directories  
>  Loaded: loaded  
>  (/usr/lib/systemd/system/systemd-tmpfiles-clean.service; static;  
>  vendor preset: disabled) Active: failed (Result: start-limit) since  
>  日付; 1 day 2h ago  
>  Docs: man:tmpfiles.d(5)  
>  man:systemd-tmpfiles(8) Process: 12692 ExecStart=/usr/bin/systemd-tmpfiles
> --clean (code=exited,  
>  status=0/SUCCESS) Main PID: 12692 (code=exited, status=0/SUCCESS)
>
> 日付 systemd[1]: Starting Cleanup of Temporary Directories...  
>  日付 systemd[1]: Starting Cleanup of Temporary Directories...

* * *
[code]

    # less /usr/lib/systemd/system/systemd-tmpfiles-clean.service
    
[/code]

・編集した覚えはないので、多分デフォルトのままだと思います

> [Unit] Description=Cleanup of Temporary Directories  
>  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=oneshot ExecStart=/usr/bin/systemd-tmpfiles --clean  
>  IOSchedulingClass=idle

* * *

**環境**  
・Nginx  
・CentOS7


CC BY-SA 4.0
2018-07-26T08:53:17.147
46990
2020-07-14T15:04:05.360
2019-09-06T02:32:49.103
3060
7886
question
centos nginx
Nginxが起動しなくなりました。nginx.service failed because a configured resource limit was exceeded


とりあえずOS再起動したら、nginx起動できるようになりました。

* * *

この投稿は @re9 さん自身による質問本文への追記内容から転記しました。


CC BY-SA 4.0
2019-09-06T02:27:12.733
57887
2019-09-06T02:27:12.733
3060
46990
answer