{"id":158198,"date":"2020-09-23T02:46:27","date_gmt":"2020-09-22T18:46:27","guid":{"rendered":"http:\/\/4563.org\/?p=158198"},"modified":"2020-09-23T02:46:27","modified_gmt":"2020-09-22T18:46:27","slug":"%e5%86%9b%e5%93%a5lnmp1-7%e9%87%8d%e5%90%af%e5%90%8enginx%e6%97%a0%e6%b3%95%e8%87%aa%e5%90%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=158198","title":{"rendered":"\u519b\u54e5lnmp1.7\u91cd\u542f\u540enginx\u65e0\u6cd5\u81ea\u542f"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>yxw886<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u519b\u54e5lnmp1.7\u91cd\u542f\u540enginx\u65e0\u6cd5\u81ea\u542f<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 yxw886 \u4e8e 2020-9-23 01:09 \u7f16\u8f91 <\/p>\n<p> \u4e00\u5f00\u59cb\u90fd\u662f\u6b63\u5e38\u7684\uff0c\u670d\u52a1\u5668\u91cd\u542fnginx\u8fd8\u4f1a\u81ea\u52a8\u542f\u52a8\uff0c\u7a81\u7136\u4eca\u5929\u91cd\u542f\u670d\u52a1\u5668\uff0c\u53d1\u73b0\u7f51\u7ad9\u6253\u4e0d\u5f00\u4e86\uff0csystemctl status nginx\uff0c\u63d0\u793a<br \/>  \u25cf nginx.service &#8211; The NGINX HTTP and reverse proxy server<br \/>  &nbsp; &nbsp;Loaded: loaded (\/etc\/systemd\/system\/nginx.service; enabled; vendor preset: disabled)<br \/>  &nbsp; &nbsp;Active: failed (Result: exit-code) since Wed 2020-09-23 00:27:22 CST; 1min 17s ago<br \/>  Process: 1632 ExecStop=\/bin\/kill -s QUIT $MAINPID (code=exited, status=1\/FAILURE)<br \/>   Main PID: 1095 (code=killed, signal=KILL)<\/p>\n<p>  Sep 23 00:27:22 web.novalocal kill: -q, &#8211;queue &lt;sig&gt;&nbsp; &nbsp;&nbsp; &nbsp;use sigqueue(2) rather than kill(2)<br \/>  Sep 23 00:27:22 web.novalocal kill: -p, &#8211;pid&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;print pids without signaling them<br \/>  Sep 23 00:27:22 web.novalocal kill: -l, &#8211;list [=&lt;signal&gt;] list signal names, or convert one to a name<br \/>  Sep 23 00:27:22 web.novalocal kill: -L, &#8211;table&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;list signal names and numbers<br \/>  Sep 23 00:27:22 web.novalocal kill: -h, &#8211;help&nbsp; &nbsp;display this help and exit<br \/>  Sep 23 00:27:22 web.novalocal kill: -V, &#8211;versionoutput version information and exit<br \/>  Sep 23 00:27:22 web.novalocal kill: For more details see kill(1).<br \/>  Sep 23 00:27:22 web.novalocal systemd: nginx.service: control process exited, code=exited status=1<br \/>  Sep 23 00:27:22 web.novalocal systemd: Unit nginx.service entered failed state.<br \/>  Sep 23 00:27:22 web.novalocal systemd: nginx.service failed.<\/p>\n<p>  \u4f7f\u7528nginx -t\uff0c\u68c0\u67e5\u6ca1\u95ee\u9898<br \/>  nginx: the configuration file \/usr\/local\/nginx\/conf\/nginx.conf syntax is ok<br \/>  nginx: configuration file \/usr\/local\/nginx\/conf\/nginx.conf test is successful<\/p>\n<p>  \u8f93\u5165journalctl -xe\uff0c\u5411\u4e0a\u7ffb\u51e0\u9875\uff0c\u770b\u5230\uff1a<br \/>  Sep 23 00:27:22 web.novalocal systemd: Starting (null)&#8230;<br \/>  &#8212; Subject: Unit selinux.service has begun start-up<br \/>  &#8212; Defined-By: systemd<br \/>  &#8212; Support: http:\/\/lists.freedesktop.org\/mailman\/listinfo\/systemd-devel<br \/>  &#8212; <br \/>  &#8212; Unit selinux.service has begun starting up.<br \/>  Sep 23 00:27:22 web.novalocal systemd: nginx.service: main process exited, code=killed, status=9\/KILL<br \/>  Sep 23 00:27:22 web.novalocal kill: Usage:<br \/>  Sep 23 00:27:22 web.novalocal kill: kill  &lt;pid|name&gt; [&#8230;]<br \/>  Sep 23 00:27:22 web.novalocal kill: Options:<br \/>  Sep 23 00:27:22 web.novalocal kill: -a, &#8211;all&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;do not restrict the name-to-pid conversion to processes<br \/>  Sep 23 00:27:22 web.novalocal kill: with the same uid as the present process<br \/>  Sep 23 00:27:22 web.novalocal kill: -s, &#8211;signal &lt;sig&gt;&nbsp; &nbsp;send specified signal<br \/>  Sep 23 00:27:22 web.novalocal kill: -q, &#8211;queue &lt;sig&gt;&nbsp; &nbsp;&nbsp; &nbsp;use sigqueue(2) rather than kill(2)<br \/>  Sep 23 00:27:22 web.novalocal kill: -p, &#8211;pid&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;print pids without signaling them<br \/>  Sep 23 00:27:22 web.novalocal kill: -l, &#8211;list [=&lt;signal&gt;] list signal names, or convert one to a name<br \/>  Sep 23 00:27:22 web.novalocal kill: -L, &#8211;table&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;list signal names and numbers<br \/>  Sep 23 00:27:22 web.novalocal kill: -h, &#8211;help&nbsp; &nbsp;display this help and exit<br \/>  Sep 23 00:27:22 web.novalocal kill: -V, &#8211;versionoutput version information and exit<br \/>  Sep 23 00:27:22 web.novalocal kill: For more details see kill(1).<br \/>  Sep 23 00:27:22 web.novalocal systemd: nginx.service: control process exited, code=exited status=1<br \/>  Sep 23 00:27:22 web.novalocal systemd: Unit nginx.service entered failed state.<br \/>  Sep 23 00:27:22 web.novalocal systemd: nginx.service failed.<br \/>  Sep 23 00:27:22 web.novalocal cloud-init: Cloud-init v. 0.7.9 running &#8216;modules:final&#8217; at Tue, 22 Sep 2020 16:27:22 +0000. Up 12.09 seconds.<br \/>  Sep 23 00:27:22 web.novalocal systemd: Started Dynamic System Tuning Daemon.<br \/>  &#8212; Subject: Unit tuned.service has finished start-up<br \/>  &#8212; Defined-By: systemd<br \/>  &#8212; Support: http:\/\/lists.freedesktop.org\/mailman\/listinfo\/systemd-devel<br \/>  &#8212; <br \/>  &#8212; Unit tuned.service has finished starting up.<br \/>  &#8212; <br \/>  &#8212; The start-up result is done.<\/p>\n<p>  \u624b\u52a8\u8f93\u5165 systemctl start nginx\uff0c\u53ef\u4ee5\u542f\u52a8\uff0c\u7f51\u7ad9\u53ef\u4ee5\u6b63\u5e38\u6253\u5f00\uff0c\u8f93\u5165systemctl status nginx\uff0c\u63d0\u793a\uff1a<br \/>  \u25cf nginx.service &#8211; The NGINX HTTP and reverse proxy server<br \/>  &nbsp; &nbsp;Loaded: loaded (\/etc\/systemd\/system\/nginx.service; enabled; vendor preset: disabled)<br \/>  &nbsp; &nbsp;Active: active (running) since Wed 2020-09-23 00:41:20 CST; 4s ago<br \/>  Process: 1632 ExecStop=\/bin\/kill -s QUIT $MAINPID (code=exited, status=1\/FAILURE)<br \/>  Process: 2738 ExecStart=\/usr\/local\/nginx\/sbin\/nginx -c \/usr\/local\/nginx\/conf\/nginx.conf (code=exited, status=0\/SUCCESS)<br \/>   Main PID: 2739 (nginx)<br \/>  &nbsp; &nbsp; Tasks: 5<br \/>  &nbsp; &nbsp;Memory: 82.5M<br \/>  &nbsp; &nbsp;CGroup: \/system.slice\/nginx.service<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u251c\u25002739 nginx: master process \/usr\/local\/nginx\/sbin\/nginx -c \/usr\/local\/nginx\/conf\/nginx.conf<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u251c\u25002740 nginx: worker process<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u251c\u25002741 nginx: worker process<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u251c\u25002742 nginx: worker process<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;\u2514\u25002743 nginx: worker process<\/p>\n<p>  Sep 23 00:41:20 web.novalocal systemd: Starting The NGINX HTTP and reverse proxy server&#8230;<br \/>  Sep 23 00:41:20 web.novalocal systemd: Started The NGINX HTTP and reverse proxy server.<\/p>\n<p>  \u6709\u5927\u795e\u77e5\u9053\u4ec0\u4e48\u539f\u56e0\u5417\uff1f  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>16qf<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u4e0d\u77e5\u9053\uff0c\u7d2b\u85af\u5e03\u4e01\uff0c\u697c\u4e0b\u89e3\u7b54\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>caddy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6ca1\u770b\u4f60\u65e5\u5fd7\uff0c\u8fd9\u6837\u770b\u65e5\u5fd7\u770b\u5f97\u773c\u82b1\uff0c\u7cfb\u7edf\u76f4\u63a5\u770b\uff0c\u9519\u8bef\u90e8\u5206\u662f\u53ef\u4ee5\u6807\u7ea2<\/p>\n<p>  \u8bd5\u4e0b\u91cd\u6fc0\u6d3b\u770b\u770b<\/p>\n<p>  systemctl enable nginx.service\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>llyang<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tsystemctl enable nginx<br \/>  reboot<br \/>  systemctl status nginx<br \/>  \u770b\u770b\u5565\u60c5\u51b5\uff0c\u7406\u8bba\u4e0a\u5e94\u8be5\u6ca1\u95ee\u9898<\/p>\n<p>  \u5982\u679c\u4e0d\u884c\uff0c\u67e5\u770blog\u62a5\u544a:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yxw886<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tcaddy \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-9-23 01:20<br \/>  \u6ca1\u770b\u4f60\u65e5\u5fd7\uff0c\u8fd9\u6837\u770b\u65e5\u5fd7\u770b\u5f97\u773c\u82b1\uff0c\u7cfb\u7edf\u76f4\u63a5\u770b\uff0c\u9519\u8bef\u90e8\u5206\u662f\u53ef\u4ee5\u6807\u7ea2<\/p>\n<p>  \u8bd5\u4e0b\u91cd\u6fc0\u6d3b\u770b\u770b<\/p>\n<p> \u8f93\u5165systemctl enable nginx.service\u540e\uff0c\u91cd\u542f\uff0c\u8fd8\u662f\u4e0d\u4f1a\u81ea\u542f<br \/>  https:\/\/img.ams1.imgbed.xyz\/2020\/09\/23\/OqTl.jpg<br \/>  https:\/\/img.ams1.imgbed.xyz\/2020\/09\/23\/OaJr.jpg\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>yxw886<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tllyang \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-9-23 01:35<br \/>  systemctl enable nginx<br \/>  reboot<br \/>  systemctl status nginx<\/p>\n<p> \u8bd5\u8fc7\uff0c\u8fd8\u662f\u4e0d\u884c\uff0c\u662f\u67e5\u770b\/usr\/local\/nginx\/logs\/error.log\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>benetton<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u68c0\u67e5\u4e00\u4e0bLOG\u6863\u662f\u5426\u592a\u5927 \u7a7a\u95f4\u6ee1\u4e86 \u4e5f\u4f1a\u8fd9\u6837\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>yxw886 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u519b\u54e5&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/158198"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=158198"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/158198\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=158198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=158198"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=158198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}