{"id":469,"date":"2020-03-01T22:47:48","date_gmt":"2020-03-01T14:47:48","guid":{"rendered":"https:\/\/harson.co\/?p=469"},"modified":"2020-03-08T17:45:25","modified_gmt":"2020-03-08T09:45:25","slug":"dockerfile-for-rtmp","status":"publish","type":"post","link":"https:\/\/harson.co\/index.php\/2020\/03\/01\/dockerfile-for-rtmp\/","title":{"rendered":"Dockerfile For RTMP"},"content":{"rendered":"<pre class=\"pure-highlightjs\"><code class=\"\">FROM centos:centos7\r\n\r\nRUN yum -y update\r\nRUN yum -y install  gcc gcc-c++ autoconf automake make\r\nRUN yum -y install  zlib zlib-devel openssl* pcre* wget lua-devel\r\n\r\nMAINTAINER Harson\r\n\r\nWORKDIR \/tmp\r\n\r\nADD nginx-1.17.8.tar.gz .\r\nADD nginx-http-flv-module-master.tar.gz .\r\n\r\nRUN useradd -M -s \/sbin\/nologin nginx\r\n\r\nRUN cd \/tmp\/nginx-1.17.8 \\\r\n    &amp;&amp; .\/configure --user=nginx --group=nginx \\\r\n\t--add-module=\/tmp\/nginx-http-flv-module-master \\\r\n\t&amp;&amp; make &amp;&amp; make install\r\n\r\nRUN rm -rf \/usr\/local\/nginx\/conf\/nginx.conf\r\nADD nginx.conf \/usr\/local\/nginx\/conf\/nginx.conf\r\n\r\nEXPOSE 1935\r\nEXPOSE 80\r\nCMD [\"\/usr\/local\/nginx\/sbin\/nginx\",\"-g\",\"daemon off;\"]<\/code><\/pre>\n<p>\u53c2\u8003<\/p>\n<p><a href=\"https:\/\/www.gksec.com\/rtmp.html\">https:\/\/www.gksec.com\/rtmp.html<\/a><\/p>\n<p>\u4f9d\u8d56<\/p>\n<p><a href=\"http:\/\/index.harson.co\/source\/\">http:\/\/index.harson.co\/source\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FROM centos:centos7 RUN yum -y update RUN yum -y instal [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-469","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":4,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/469\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/posts\/469\/revisions\/472"}],"wp:attachment":[{"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/media?parent=469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/categories?post=469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/harson.co\/index.php\/wp-json\/wp\/v2\/tags?post=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}