{"id":63517,"date":"2025-04-29T11:40:14","date_gmt":"2025-04-29T03:40:14","guid":{"rendered":"https:\/\/fwq.ai\/blog\/63517\/"},"modified":"2025-04-29T11:40:14","modified_gmt":"2025-04-29T03:40:14","slug":"linux%e6%80%8e%e4%b9%88%e6%9f%a5%e7%9c%8bnginx%e6%98%af%e5%90%a6%e5%90%af%e5%8a%a8-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/63517\/","title":{"rendered":"linux\u600e\u4e48\u67e5\u770bnginx\u662f\u5426\u542f\u52a8"},"content":{"rendered":"<p><strong>\u5982\u4f55\u68c0\u67e5  \u4e2d\u7684  \u662f\u5426\u5df2\u542f\u52a8<\/strong><\/p>\n<p>\u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5 Nginx \u662f\u5426\u6b63\u5728\u8fd0\u884c\uff1a<\/p>\n<pre>systemctl status nginx<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u6267\u884c\u6b64\u547d\u4ee4\u540e\uff0c\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\u4e4b\u4e00\uff1a<\/p>\n<p><strong>\u5982\u679c Nginx \u5df2\u542f\u52a8\uff1a<\/strong><\/p>\n<pre>\u25cf nginx.service - A high performance web server and a reverse proxy server\n   Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\n   Active: active (running) since Fri 2023-02-10 16:23:48 PST; 4 days ago\n Main PID: 2964 (nginx)\n   CGroup: \/system.slice\/nginx.service\n           \u251c\u25002964 nginx: master process \/usr\/sbin\/nginx -g daemon off;\n           \u2514\u25002965 nginx: worker process<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u5982\u679c Nginx \u5df2\u505c\u6b62\uff1a<\/strong><\/p>\n<pre>\u25cf nginx.service - A high performance web server and a reverse proxy server\n   Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled)\n   Active: inactive (dead) since Fri 2023-02-10 16:23:48 PST; 4 days ago\n Main PID: 2964 (code=exited, status=0\/SUCCESS)<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u8f93\u51fa\u89e3\u91ca\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>Loaded:<\/strong> \u6307\u793a nginx \u670d\u52a1\u662f\u5426\u5df2\u52a0\u8f7d\u5230\u7cfb\u7edf\u4e2d\u3002<\/li>\n<li> <strong>Active:<\/strong> \u6307\u793a nginx \u670d\u52a1\u5f53\u524d\u662f\u5426\u6b63\u5728\u8fd0\u884c\u3002<\/li>\n<li> <strong>Main PID:<\/strong> \u663e\u793a nginx \u4e3b\u8fdb\u7a0b\u7684\u8fdb\u7a0b ID\u3002<\/li>\n<li> <strong>CGroup:<\/strong> \u6307\u793a nginx \u8fdb\u7a0b\u6240\u5c5e\u7684\u63a7\u5236\u7ec4\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u60a8\u770b\u5230 &#8220;Active: inactive (dead)&#8221; \u6d88\u606f\uff0c\u5219\u8868\u793a Nginx \u5df2\u505c\u6b62\u3002\u5982\u679c\u60a8\u770b\u5230 &#8220;Active: active (running)&#8221; \u6d88\u606f\uff0c\u5219\u8868\u793a Nginx \u6b63\u5728\u8fd0\u884c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u67e5\u770b\u662f\u5426\u542f\u52a8\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8FDCServers\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u68c0\u67e5 \u4e2d\u7684 \u662f\u5426\u5df2\u542f\u52a8 \u5728 Linux \u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5 Nginx \u662f\u5426\u6b63\u5728\u8fd0\u884c\uff1a systemctl status nginx \u767b\u5f55\u540e\u590d\u5236 \u6267\u884c\u6b64\u547d\u4ee4\u540e\uff0c\u60a8\u5c06\u770b\u5230\u4ee5\u4e0b\u8f93\u51fa\u4e4b\u4e00\uff1a \u5982\u679c Nginx \u5df2\u542f\u52a8\uff1a \u25cf nginx.service &#8211; A high performance web server and a reverse proxy server Loaded: loaded (\/lib\/systemd\/system\/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2023-02-10 16:23:48 PST; 4 days ago Main PID: 2964 (nginx) CGroup: \/system.slice\/nginx.service \u251c\u25002964 nginx: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-63517","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=63517"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/63517\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=63517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=63517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=63517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}