{"id":344,"date":"2019-04-29T23:14:49","date_gmt":"2019-04-29T15:14:49","guid":{"rendered":"https:\/\/103.249.111.182\/?p=344"},"modified":"2024-08-18T00:06:47","modified_gmt":"2024-08-17T16:06:47","slug":"gu%e7%9b%b4%e6%92%ad-%e7%ae%80%e6%98%93%e7%9b%b4%e6%92%ad%e7%ab%99","status":"publish","type":"post","link":"https:\/\/7gugu.com\/index.php\/2019\/04\/29\/gu%e7%9b%b4%e6%92%ad-%e7%ae%80%e6%98%93%e7%9b%b4%e6%92%ad%e7%ab%99\/","title":{"rendered":"GU\u76f4\u64ad-\u7b80\u6613\u76f4\u64ad\u7ad9"},"content":{"rendered":"<h1>\u6027\u80fd\u6307\u6807:<\/h1>\n<ul>\n<li>\u652f\u6301\u7edf\u8ba1\u89c2\u4f17\u4e2a\u6570<\/li>\n<li>\u652f\u6301\u5728\u7ebf\u804a\u5929<\/li>\n<li>\u652f\u6301\u591a\u4e2a\u623f\u95f4\u63a8\u6d41[RTMP\u6d41]<\/li>\n<li>\u652f\u6301\u6d41\u9274\u6743<\/li>\n<li>\u652f\u6301\u76f4\u64ad\u6d41\u64ad\u653e<\/li>\n<\/ul>\n<h1>\u4e00\u4e9b\u60f3\u8bf4\u7684:<\/h1>\n<p>\u4e4b\u6240\u4ee5\u4f1a\u5199\u8fd9\u4e2a\u4e1c\u897f,\u4ec5\u4ec5\u662f\u4e3a\u4e86\u6ee1\u8db3\u6211\u7684\u5c0f\u613f\u671b[\u81ea\u5df1\u505a\u4e00\u4e2a\u76f4\u64ad\u7ad9\u8bd5\u8bd5],\u8fd9\u4e2a\u76f4\u64ad\u7ad9\u4ece\u529f\u80fd\u4ee5\u53ca\u6846\u67b6\u4e0a\u90fd\u975e\u5e38\u7684\u7fb8\u5f31,\u4e0d\u8db3\u4ee5\u5e94\u5bf9\u590d\u6742\u573a\u666f,\u4ec5\u4ec5\u662f\u505a\u7740\u73a9,\u6240\u4ee5\u6709\u5174\u8da3\u7684\u670b\u53cb\u53ef\u4ee5\u4e0b\u4e0b\u6765\u73a9\u73a9,\u4f46\u4e0d\u5efa\u8bae\u5e94\u7528\u81f3\u751f\u4ea7\u73af\u5883\u4e4b\u4e2d\u3002\u8fd9\u6b21\u7684\u4e0b\u8f7d\u7ad9\u4ee3\u7801\u4f1a\u653e\u5230Github,\u5e76\u4e14\u4f1a\u5728\u8fd9\u4e2a\u6587\u7ae0\u4e2d\u9644\u4e0aNginx(\u5e26RTMP\u6a21\u5757)\u7684\u4e0b\u8f7d\u94fe\u63a5,\u4ee5\u53ca\u6211\u7684Nginx\u7684\u914d\u7f6e\u3002<\/p>\n<h1>\u5b89\u88c5:<\/h1>\n<p>1.\u4e0b\u8f7dNginx-RTMP windows\u7248<\/p>\n<p>[\u7406\u8bba\u4e0a\u662f\u53ef\u4ee5\u81ea\u5df1\u7f16\u8bd1\u7684,\u4f46win\u7248\u771f\u7684\u8d85\u7ea7\u96be\u7f16\u8bd1]<\/p>\n<p>\u94fe\u63a5: <a href=\"https:\/\/github.com\/xaccc\/nginx-rtmp-win32\">https:\/\/github.com\/xaccc\/nginx-rtmp-win32<\/a><\/p>\n<p>2.\u4fee\u6539conf\/nginx.conf<\/p>\n<pre>worker_processes 1;\ndaemon off;\nmaster_process off;&lt;\/code&gt;\n\nerror_log logs\/error.log info;\n\nevents {\nworker_connections 1024;\n}\n\nrtmp {\nserver {\nlisten 1935;\/\/\u672c\u914d\u7f6e\u6587\u4ef6\u662f\u4f7f\u75281935\u4f5c\u4e3a\u76f4\u64ad\u670d\u52a1\u5668\u7684\u7aef\u53e3\n\napplication live {\nlive on;\nnotify_method POST;\npublish_notify on;\non_publish http:\/\/localhost:8080\/rtmp\/index.php?publish;\/\/\u7f51\u7ad9\u57df\u540d\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u65f6\u4e5f\u8981\u4fee\u6539\u6210\u5bf9\u5916\u7684\u57df\u540d\non_publish_done http:\/\/localhost:8080\/rtmp\/index.php?publish&amp;amp;done;\non_play http:\/\/localhost:8080\/rtmp\/index.php?publish&amp;amp;play;\non_play_done http:\/\/localhost:8080\/rtmp\/index.php?publish&amp;amp;play_done;\n}\n}\n}\n\nhttp {\ninclude mime.types;\ndefault_type application\/octet-stream;\nserver {\nlisten 8080;\nlocation \/ {\nroot D:\/phpstudy\/PHPTutorial\/WWW;\/\/\u628a\u8fd9\u4e2a\u8def\u5f84\u6539\u6210\u4f60\u7684\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\nindex index.html index.htm index.php l.php;\nautoindex off;\n}\nlocation ~ \\.php(.*)$ {\nroot D:\/phpstudy\/PHPTutorial\/WWW;\/\/\u628a\u8fd9\u4e2a\u8def\u5f84\u6539\u6210\u4f60\u7684\u7f51\u7ad9\u7684\u6839\u76ee\u5f55\nfastcgi_pass 127.0.0.1:9000;\/\/Nginx\u4f7f\u7528php\u811a\u672c\u8981\u5355\u72ec\u542f\u7528php\u6765\u76d1\u542c\nfastcgi_index index.php;\nfastcgi_split_path_info ^((?U).+\\.php)(\/?.+)$;\nfastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\nfastcgi_param PATH_INFO $fastcgi_path_info;\nfastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;\ninclude fastcgi_params;\n}\n}\n}\n\n<\/pre>\n<p><strong>[\u4e0d\u8fc7TX\u4e91\u4f1a\u5c4f\u853d1935\u7aef\u53e3,\u6240\u4ee5\u4f7f\u7528\u65f6\u8981\u81ea\u5df1\u4fee\u6539\u4e00\u4e0b]<\/strong><\/p>\n<p>3.\u542f\u7528Nginx\u670d\u52a1\u5668nginx.exe -c conf\/nginx.conf<\/p>\n<p>4.\u542f\u7528php\u670d\u52a1\u5668php-cgi -b 127.0.0.1:9000 -c php.ini<\/p>\n<p>5.\u5bfc\u5165SQL\u5230MYSQL\u4e2d<\/p>\n<p>6.\u4fee\u6539config.php<\/p>\n<pre>date_default_timezone_set('Asia\/Shanghai');\ndefine(\"DBIP\",\"localhost\");\/\/\u6570\u636e\u5e93IP\ndefine(\"DBPORT\",\"3306\");\/\/\u6570\u636e\u5e93\u7aef\u53e3\ndefine(\"DBUSERNAME\",\"root\");\/\/\u6570\u636e\u5e93\u7528\u6237\u540d\ndefine(\"DBPASSWORD\",\"root\");\/\/\u6570\u636e\u5e93\u5bc6\u7801\ndefine(\"DBNAME\",\"rmtp\");\/\/\u6570\u636e\u5e93\u540d\ndefine('SYSTEM_VER','1.0.0');\/\/\u7cfb\u7edf\u7248\u672c\u53f7\ndefine('SYSTEM_NAME',\"GU\u76f4\u64ad\");\/\/\u7cfb\u7edf\u540d\u79f0\ndefine('SYSTEM_ROOT','D:\\phpstudy\\PHPTutorial\\WWW\\rtmp\\\\');\/\/\u7cfb\u7edf\u7f51\u7ad9\u6839\u76ee\u5f55\ndefine('SUPPORT_URL', 'https:\/\/103.249.111.182');\ndefine('SYSTEM_NO_ERROR', false );\/\/\u662f\u5426\u5f00\u542fDEBUG\u6a21\u5f0f\ndefine('AUTH_STATE', true );\/\/\u662f\u5426\u5f00\u542f\u6ce8\u518c\ndefine('RTMP_URL', \"rtmp:\/\/localhost:1935\/live\/\" );\/\/RTMP\u94fe\u63a5<\/pre>\n<p>7.\u5b89\u88c5\u5b8c\u6210!<\/p>\n<h1>\u9884\u89c8\u56fe:<\/h1>\n<figure id=\"attachment_348\" aria-describedby=\"caption-attachment-348\" style=\"width: 2998px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-348 size-full\" src=\"https:\/\/114.132.121.208\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z.png\" alt=\"\u767b\u5f55\u9875\u9762\" width=\"2998\" height=\"1046\" srcset=\"https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z.png 2998w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z-300x105.png 300w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z-1024x357.png 1024w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z-768x268.png 768w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z-1536x536.png 1536w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-26-29.724Z-2048x715.png 2048w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption id=\"caption-attachment-348\" class=\"wp-caption-text\">\u767b\u5f55\u9875\u9762<\/figcaption><\/figure>\n<figure id=\"attachment_349\" aria-describedby=\"caption-attachment-349\" style=\"width: 3000px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-349 size-full\" src=\"https:\/\/114.132.121.208\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z.png\" alt=\"\u623f\u95f4\u4fe1\u606f\" width=\"3000\" height=\"1150\" srcset=\"https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z.png 3000w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z-300x115.png 300w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z-1024x393.png 1024w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z-768x294.png 768w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z-1536x589.png 1536w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-27-37.941Z-2048x785.png 2048w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption id=\"caption-attachment-349\" class=\"wp-caption-text\">\u623f\u95f4\u4fe1\u606f-\u63a8\u6d41\u72b6\u6001\u81ea\u52a8\u8bc6\u522b<\/figcaption><\/figure>\n<figure id=\"attachment_350\" aria-describedby=\"caption-attachment-350\" style=\"width: 3000px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-350 size-full\" src=\"https:\/\/114.132.121.208\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z.png\" alt=\"\u76f4\u64ad\u623f\u95f4\" width=\"3000\" height=\"1484\" srcset=\"https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z.png 3000w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z-300x148.png 300w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z-1024x507.png 1024w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z-768x380.png 768w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z-1536x760.png 1536w, https:\/\/7gugu.com\/wp-content\/uploads\/2019\/04\/\u706b\u72d0\u622a\u56fe_2019-04-30T09-28-21.079Z-2048x1013.png 2048w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><figcaption id=\"caption-attachment-350\" class=\"wp-caption-text\">\u76f4\u64ad\u623f\u95f4<\/figcaption><\/figure>\n<h1>Github\u94fe\u63a5:<\/h1>\n<p><a href=\"https:\/\/github.com\/7gugu\/gu-rtmp\">https:\/\/github.com\/7gugu\/gu-rtmp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6027\u80fd\u6307\u6807: \u652f\u6301\u7edf\u8ba1\u89c2\u4f17\u4e2a\u6570 \u652f\u6301\u5728\u7ebf\u804a\u5929 \u652f\u6301\u591a\u4e2a\u623f\u95f4\u63a8\u6d41[RTMP\u6d41] \u652f\u6301\u6d41\u9274\u6743 \u652f\u6301\u76f4\u64ad\u6d41\u64ad\u653e \u4e00\u4e9b\u60f3 &hellip; <a href=\"https:\/\/7gugu.com\/index.php\/2019\/04\/29\/gu%e7%9b%b4%e6%92%ad-%e7%ae%80%e6%98%93%e7%9b%b4%e6%92%ad%e7%ab%99\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201cGU\u76f4\u64ad-\u7b80\u6613\u76f4\u64ad\u7ad9\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,26,3,30],"tags":[],"class_list":["post-344","post","type-post","status-publish","format-standard","hentry","category-html","category-php","category-codetype","category-dev"],"_links":{"self":[{"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/posts\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":2,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/posts\/344\/revisions"}],"predecessor-version":[{"id":3666,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/posts\/344\/revisions\/3666"}],"wp:attachment":[{"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/media?parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/categories?post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/7gugu.com\/index.php\/wp-json\/wp\/v2\/tags?post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}