{"id":10833,"date":"2023-08-24T02:55:01","date_gmt":"2023-08-23T18:55:01","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=10833"},"modified":"2023-08-24T02:55:01","modified_gmt":"2023-08-23T18:55:01","slug":"tywgjkcjsysx","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/10833.html","title":{"rendered":"\u901a\u7528\u7f51\u5173\u63a5\u53e3CGI\uff1a\u4ecb\u7ecd\u4e0e\u5b9e\u73b0"},"content":{"rendered":"

\u3000\u3000\u901a\u7528\u7f51\u5173\u63a5\u53e3CGI\uff08Common Gateway Interface\uff0cCGI\uff09\u662f\u4e00\u79cd\u7f51\u7edc\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u6280\u672f\u6807\u51c6\uff0c\u7528\u4e8e\u5b9e\u73b0\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u7684\u4ea4\u4e92\u3002\u5b83\u80fd\u591f\u5e2e\u52a9\u7f51\u7edc\u670d\u52a1\u5668\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0c\u5e76\u8fd4\u56de\u54cd\u5e94\u7ed3\u679c\u3002CGI\u4e3a\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u63d0\u4f9b\u4e86\u4e00\u79cd\u53ef\u9760\u7684\u6c9f\u901a\u6e20\u9053\uff0c\u80fd\u591f\u6709\u6548\u5730\u5904\u7406\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0c\u63d0\u5347\u4e86\u7f51\u7edc\u5e94\u7528\u7684\u6548\u7387\u3002<\/p>\n

\u4e00\u3001CGI\u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n

\u3000\u3000CGI\u7684\u5de5\u4f5c\u539f\u7406\u662f\uff1a\u5ba2\u6237\u7aef\u53d1\u51fa\u4e00\u4e2aHTTP\u8bf7\u6c42\uff0c\u7f51\u7edc\u670d\u52a1\u5668\u6536\u5230\u8bf7\u6c42\u540e\uff0c\u4f1a\u5c06\u8bf7\u6c42\u53d1\u9001\u7ed9CGI\u7a0b\u5e8f\uff0cCGI\u7a0b\u5e8f\u5904\u7406\u5b8c\u8bf7\u6c42\u540e\uff0c\u5c06\u5904\u7406\u7ed3\u679c\u53d1\u9001\u7ed9\u7f51\u7edc\u670d\u52a1\u5668\uff0c\u7f51\u7edc\u670d\u52a1\u5668\u6700\u7ec8\u5c06\u5904\u7406\u7ed3\u679c\u8fd4\u56de\u7ed9\u5ba2\u6237\u7aef\u3002CGI\u7684\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n

\"CGI\u5de5\u4f5c\u539f\u7406\u56fe\"<\/p>\n

\u3000\u3000\u56fe1\uff1aCGI\u7684\u5de5\u4f5c\u539f\u7406<\/p>\n

\u4e8c\u3001CGI\u7684\u5b9e\u73b0<\/h2>\n

\u3000\u3000CGI\u7684\u5b9e\u73b0\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n

1\u3001\u7f16\u5199CGI\u7a0b\u5e8f<\/h3>\n

\u3000\u3000\u9996\u5148\uff0c\u9700\u8981\u7f16\u5199CGI\u7a0b\u5e8f\uff0cCGI\u7a0b\u5e8f\u662f\u4e00\u4e2a\u53ef\u4ee5\u63a5\u6536\u5ba2\u6237\u7aef\u8bf7\u6c42\u5e76\u5904\u7406\u8bf7\u6c42\u7684\u7a0b\u5e8f\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2ashell\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aPerl\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aC\/C++\u7a0b\u5e8f\u7b49\u3002<\/p>\n

2\u3001\u914d\u7f6eCGI\u7a0b\u5e8f<\/h3>\n

\u3000\u3000\u5176\u6b21\uff0c\u9700\u8981\u5c06CGI\u7a0b\u5e8f\u914d\u7f6e\u5230\u7f51\u7edc\u670d\u52a1\u5668\u4e0a\uff0c\u4f7f\u7f51\u7edc\u670d\u52a1\u5668\u80fd\u591f\u8bc6\u522b\u5e76\u5904\u7406CGI\u7a0b\u5e8f\u3002<\/p>\n

3\u3001\u914d\u7f6eCGI\u73af\u5883<\/h3>\n

\u3000\u3000\u6700\u540e\uff0c\u9700\u8981\u914d\u7f6eCGI\u73af\u5883\uff0cCGI\u73af\u5883\u662f\u4e00\u4e2a\u53ef\u4ee5\u652f\u6301CGI\u7a0b\u5e8f\u8fd0\u884c\u7684\u73af\u5883\uff0c\u5b83\u53ef\u4ee5\u662f\u4e00\u4e2aPerl\u89e3\u91ca\u5668\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aPython\u89e3\u91ca\u5668\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u4e2aC\u7f16\u8bd1\u5668\u7b49\u3002<\/p>\n

\u4e09\u3001\u603b\u7ed3<\/h2>\n

\u3000\u3000\u901a\u7528\u7f51\u5173\u63a5\u53e3CGI\u662f\u4e00\u79cd\u7f51\u7edc\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u6280\u672f\u6807\u51c6\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u7f51\u7edc\u670d\u52a1\u5668\u63a5\u6536\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u8bf7\u6c42\uff0c\u5e76\u8fd4\u56de\u54cd\u5e94\u7ed3\u679c\u3002CGI\u7684\u5b9e\u73b0\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u7f16\u5199CGI\u7a0b\u5e8f\u3001\u914d\u7f6eCGI\u7a0b\u5e8f\u3001\u914d\u7f6eCGI\u73af\u5883\u3002CGI\u7684\u4f7f\u7528\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u5347\u7f51\u7edc\u5e94\u7528\u7684\u6548\u7387\uff0c\u6539\u5584\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u4ea4\u4e92\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u901a\u7528\u7f51\u5173\u63a5\u53e3CGI\uff08Common Gateway Interface\uff0cCGI\uff09\u662f\u4e00\u79cd\u7f51\u7edc\u670d\u52a1\u5668\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u7684\u6280\u672f\u6807\u51c6\uff0c\u7528\u4e8e\u5b9e\u73b0\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f\u7684\u4ea4\u4e92\u3002\u5b83\u80fd\u591f\u5e2e\u52a9\u7f51\u7edc\u670d\u52a1\u5668\u63a5\u6536<\/p>\n","protected":false},"author":1,"featured_media":3671,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[38],"class_list":["post-10833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-wg"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/10833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=10833"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/10833\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/3671"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=10833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=10833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=10833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}