{"id":1580,"date":"2024-02-11T23:00:57","date_gmt":"2024-02-11T14:00:57","guid":{"rendered":"https:\/\/www.jellyfishjelly.net\/?p=1580"},"modified":"2024-02-11T23:00:57","modified_gmt":"2024-02-11T14:00:57","slug":"post-1580","status":"publish","type":"post","link":"https:\/\/www.jellyfishjelly.net\/?p=1580","title":{"rendered":"nginx\u30bd\u30fc\u30b9\u7248\u3092\u5c0e\u5165\u3059\u308b\u969b\u306e\u6ce8\u610f\u4e8b\u9805"},"content":{"rendered":"\n<p>systemd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068logrotate\u306e\u8a2d\u5b9a\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\u306e\u3067\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#Systemd\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u4f8b\uff08\/usr\/lib\/systemd\/system\/nginx.service\uff09\n&#91;Unit]\nDescription=nginx - high performance web server\nDocumentation=http:\/\/nginx.org\/en\/docs\/\nAfter=network-online.target remote-fs.target nss-lookup.target\nWants=network-online.target\n\n&#91;Service]\nType=forking\nPIDFile=\/var\/run\/nginx.pid\nExecStartPre=\/usr\/sbin\/nginx -t\nExecStart=\/usr\/sbin\/nginx -c \/etc\/nginx\/nginx.conf\nExecReload=\/usr\/sbin\/nginx -s reload\nExecStop=\/bin\/sh -c \"\/bin\/kill -s TERM $(\/bin\/cat \/var\/run\/nginx.pid)\"\n\n&#91;Install]\nWantedBy=multi-user.target<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#logrotate\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4f8b\uff08\/etc\/logrotate.d\/nginx\uff09\n\/var\/log\/nginx\/*log {\n    create 0640 nginx root\n    weekly\n    rotate 5\n    missingok\n    notifempty\n    compress\n    sharedscripts\n    postrotate\n                if &#91; -f \/var\/run\/nginx.pid ]; then\n                        kill -USR1 `cat \/var\/run\/nginx.pid`\n                fi\n    endscript\n}<\/code><\/pre>\n\n\n\n<p>\u3042\u3068\u3001nextcloud\u306ecron\u304c\u6b7b\u3093\u3067\u305f\u3002\u539f\u56e0\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u306e\u969b\u306b\/var\/lib\/nginx\u306bchdir\u4f7f\u7528\u3068\u3057\u3066\u3044\u308b\u304c\u305d\u3093\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u7121\u3044\u3068\u3044\u3046\u3053\u3068\u3060\u3063\u305f\u306e\u3067\u3068\u308a\u3042\u3048\u305a\u5f53\u8a72\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3066\u5fa9\u6d3b\u3055\u305b\u3066\u307e\u3059\u3002<br>\u3053\u306e\u73fe\u8c61\u3001nextcloud\u521d\u56de\u8d77\u52d5\u6642\u304b\u3089\u305a\u3063\u3068\u3060\u3063\u305f\u306e\u3067siteguard\u306e\u5c0e\u5165\u3068\u306f\u7121\u95a2\u4fc2\u305d\u3046\u3002\u4ed6\u306e\u74b0\u5883\u3067\u306f\u305d\u3082\u305d\u3082\/var\/lib\/nginx\u306a\u3093\u304b\u7121\u304f\u3066\u3082\u666e\u901a\u306b\u52d5\u304f\u306e\u3060\u3051\u3069\u30fb\u30fb\u30fb\u4f55\u304b\u5909\u308f\u3063\u305f\u304b\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>systemd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068logrotate\u306e\u8a2d\u5b9a\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\u306e\u3067\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u3042\u3068\u3001nextcloud\u306ecron\u304c\u6b7b\u3093\u3067\u305f\u3002\u539f\u56e0\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u5b9f\u884c\u306e\u969b\u306b\/var\/lib\/nginx\u306bchdir\u4f7f\u7528\u3068\u3057\u3066 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[6],"tags":[28,31],"class_list":["post-1580","post","type-post","status-publish","format-standard","hentry","category-lin","tag-linux","tag-nginx"],"_links":{"self":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/1580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1580"}],"version-history":[{"count":0,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=\/wp\/v2\/posts\/1580\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jellyfishjelly.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}