{"id":18053,"date":"2024-11-18T16:32:49","date_gmt":"2024-11-18T08:32:49","guid":{"rendered":"https:\/\/fwq.ai\/blog\/18053\/"},"modified":"2024-11-18T16:32:49","modified_gmt":"2024-11-18T08:32:49","slug":"nginx%e6%80%8e%e4%b9%88%e5%90%af%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/18053\/","title":{"rendered":"nginx\u600e\u4e48\u542f\u7528"},"content":{"rendered":"<blockquote><p>\n  nginx\uff08\u4e00\u79cd\u6d41\u884c\u7684\u5f00\u6e90 web \u670d\u52a1\u5668\uff09\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\uff1alinux\uff1a\u5b89\u88c5 nginx\uff0c\u542f\u52a8\u670d\u52a1\uff0c\u68c0\u67e5\u670d\u52a1\u72b6\u6001\u3002windows\uff1a\u4e0b\u8f7d nginx\uff0c\u5b89\u88c5\uff0c\u542f\u52a8 nginx manager\uff0c\u8bbf\u95ee\u9ed8\u8ba4\u9875\u9762\u8fdb\u884c\u9a8c\u8bc1\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052720542513363.jpg\" class=\"aligncenter\" title=\"nginx\u600e\u4e48\u542f\u7528\u63d2\u56fe\" alt=\"nginx\u600e\u4e48\u542f\u7528\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u542f\u7528 Nginx<\/strong><\/p>\n<p>Nginx \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u5f00\u6e90 Web \u670d\u52a1\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\u5b83\uff1a<\/p>\n<p><strong>\u57fa\u4e8e Linux\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 Nginx\uff1a<\/strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 Nginx\u3002\u4f8b\u5982\uff0c\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo apt-get install \u3002\u5728 Red Hat\/CentOS \u4e0a\uff0c\u8fd0\u884c sudo yum install nginx\u3002<\/li>\n<li> <strong>\u542f\u52a8 Nginx\uff1a<\/strong>\u542f\u52a8 Nginx \u670d\u52a1\u3002\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo systemctl start nginx\u3002\u5728 Red Hat\/CentOS \u4e0a\uff0c\u8fd0\u884c sudo systemctl start nginx\u3002<\/li>\n<li> <strong>\u9a8c\u8bc1\u662f\u5426\u542f\u7528\uff1a<\/strong>\u68c0\u67e5 Nginx \u670d\u52a1\u662f\u5426\u5df2\u542f\u52a8\u3002\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo systemctl status nginx\u3002\u5728 Red Hat\/CentOS \u4e0a\uff0c\u8fd0\u884c sudo systemctl status nginx\u3002\u60a8\u5e94\u8be5\u4f1a\u770b\u5230\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u5185\u5bb9\u7684\u8f93\u51fa\uff1a<\/li>\n<\/ol>\n<pre>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 Sun 2022-08-07 11:34:10 UTC; 1 weeks 0 days ago<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u57fa\u4e8e Windows\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u4e0b\u8f7d Nginx\uff1a<\/strong>\u4ece Nginx \u5b98\u7f51\u4e0b\u8f7d Windows \u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/li>\n<li> <strong>\u5b89\u88c5 Nginx\uff1a<\/strong>\u6309\u7167\u5b89\u88c5\u5411\u5bfc\u8fdb\u884c\u5b89\u88c5\u3002<\/li>\n<li> <strong>\u542f\u52a8 Nginx\uff1a<\/strong>\u5b89\u88c5\u540e\uff0c\u5728\u5f00\u59cb\u83dc\u5355\u4e2d\u627e\u5230 Nginx Manager \u5e94\u7528\u7a0b\u5e8f\uff0c\u7136\u540e\u5355\u51fb\u201c\u542f\u52a8\u201d\u6309\u94ae\u3002<\/li>\n<li> <strong>\u9a8c\u8bc1\u662f\u5426\u542f\u7528\uff1a<\/strong>\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee Nginx \u9ed8\u8ba4\u9875\u9762\uff08\u901a\u5e38\u662f http:\/\/localhost\uff09\u3002\u60a8\u5e94\u8be5\u4f1a\u770b\u5230 Nginx \u6b22\u8fce\u9875\u3002<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u542f\u7528\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx\uff08\u4e00\u79cd\u6d41\u884c\u7684\u5f00\u6e90 web \u670d\u52a1\u5668\uff09\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\uff1alinux\uff1a\u5b89\u88c5 nginx\uff0c\u542f\u52a8\u670d\u52a1\uff0c\u68c0\u67e5\u670d\u52a1\u72b6\u6001\u3002windows\uff1a\u4e0b\u8f7d nginx\uff0c\u5b89\u88c5\uff0c\u542f\u52a8 nginx manager\uff0c\u8bbf\u95ee\u9ed8\u8ba4\u9875\u9762\u8fdb\u884c\u9a8c\u8bc1\u3002 \u5982\u4f55\u542f\u7528 Nginx Nginx \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u5f00\u6e90 Web \u670d\u52a1\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\u5b83\uff1a \u57fa\u4e8e Linux\uff1a \u5b89\u88c5 Nginx\uff1a\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5 Nginx\u3002\u4f8b\u5982\uff0c\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo apt-get install \u3002\u5728 Red Hat\/CentOS \u4e0a\uff0c\u8fd0\u884c sudo yum install nginx\u3002 \u542f\u52a8 Nginx\uff1a\u542f\u52a8 Nginx \u670d\u52a1\u3002\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo systemctl start nginx\u3002\u5728 Red Hat\/CentOS \u4e0a\uff0c\u8fd0\u884c sudo systemctl start nginx\u3002 \u9a8c\u8bc1\u662f\u5426\u542f\u7528\uff1a\u68c0\u67e5 Nginx \u670d\u52a1\u662f\u5426\u5df2\u542f\u52a8\u3002\u5728 Debian\/Ubuntu \u4e0a\uff0c\u8fd0\u884c sudo systemctl [&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-18053","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18053","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=18053"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/18053\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=18053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=18053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=18053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}