{"id":871,"date":"2013-09-19T12:26:38","date_gmt":"2013-09-19T03:26:38","guid":{"rendered":"http:\/\/boomboom-mix.net\/modules\/xpress\/?p=871"},"modified":"2021-04-09T12:12:27","modified_gmt":"2021-04-09T03:12:27","slug":"red5","status":"publish","type":"post","link":"http:\/\/boomboom-mix.net\/?p=871","title":{"rendered":"red5"},"content":{"rendered":"<p>\u7121\u6599\u7248\u306eAdobe Flash Media Server\u3067\u306f10\u5206\u3067\u52d5\u753b\u306e\u914d\u4fe1\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u306e\u3067<br \/>\n\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067Java\u3067\u958b\u767a\u3055\u308c\u3066\u3044\u308bred5\u3092\u5c0e\u5165\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u6bce\u5ea6\u304a\u306a\u3058\u307f\u306eubuntu12.04 server\u3068CentOS\u306bWinSCP\u3068Putty\u3067\u306e\u4f5c\u696d\u306e\u5099\u5fd8\u9332\u3067\u3059\uff08sudo\u306f\u7701\u7565\uff09<br \/>\n<a href=\"http:\/\/boomboom-mix.net\/modules\/xpress\/?p=774\" target=\"blank\" rel=\"noopener\">ubuntu\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u306e\u8a2d\u5b9a\u306f\u3053\u3061\u3089<\/a><br \/>\n<a href=\"http:\/\/boomboom-mix.net\/modules\/xpress\/?p=847\" target=\"blank\" rel=\"noopener\">CentOS\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3084\u8a2d\u5b9a\u306f\u3053\u3061\u3089<\/a><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;CentOS&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p><strong>1.\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3084\u89e3\u51cd\uff08\u3053\u3053\u3067\u306f \/opt&nbsp; \u3067\u306e\u4f5c\u696d\u3068\u3057\u307e\u3059\uff09<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">wget <strong>http:\/\/www.red5.org\/downloads\/red5\/1_0_1\/red5-1.0.1.tar.g<\/strong>z<\/span><\/strong><br \/>\n<strong><span style=\"color: #ff0000;\">tar zxvf red5-1.0.1.tar.gz<\/span><\/strong><\/p>\n<p>\u6700\u65b0Ver\u306f\u3053\u3061\u3089\u3092\u30c1\u30a7\u30c3\u30af<br \/>\n<a href=\"http:\/\/builds.apache.org\/job\/Red5-server\/\" target=\"_blank\" rel=\"noopener\">red5-server<\/a><\/p>\n<p><strong>2.<\/strong><strong>\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a<\/strong><br \/>\n<strong><span style=\"color: #800000;\">\/etc\/sysconfig\/iptables<\/span><\/strong> \u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0<br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 1935 -j ACCEPT<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m udp -p udp &#8211;dport 1935 -j ACCEPT<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\">-A RH-Firewall-1-INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 5080 -j ACCEPT<\/span><\/strong><br \/>\n\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u518d\u8d77\u52d5<br \/>\n<span style=\"color: #ff0000;\"><strong>\/etc\/rc.d\/init.d\/iptables restart<\/strong><\/span><\/p>\n<p><strong>3.\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a<\/strong>\uff08\u5171\u901a\u9805\u306e1.\u8d77\u52d5\u3092\u3084\u3063\u3066\u304b\u3089\u3053\u308c\u3092\u3059\u308b\uff09<br \/>\n<span style=\"color: #ff0000;\"><strong>chkconfig &#8211;add red5<\/strong><br \/>\n<\/span>\u307e\u305f\u306f<br \/>\n<strong><span style=\"color: #ff0000;\">chkconfig red5 on<\/span><\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;ubuntu 12.04 server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p><strong>1.\u6e96\u5099<\/strong><br \/>\nJava\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n<strong><span style=\"color: #ff0000;\">apt-get install openjdk-6-jdk<\/span><\/strong><br \/>\nRED5\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<br \/>\n<strong><span style=\"color: #ff0000;\">wget http:\/\/www.red5.org\/downloads\/red5\/1_0_1\/red5-1.0.1.tar.gz<\/span><\/strong><\/p>\n<p>\u6700\u65b0Ver\u306f\u3053\u3061\u3089\u3092\u30c1\u30a7\u30c3\u30af<br \/>\n<a href=\"http:\/\/builds.apache.org\/job\/Red5-server\/\" target=\"_blank\" rel=\"noopener\">red5-server<\/a><\/p>\n<p>\u89e3\u51cd<br \/>\n<span style=\"color: #ff0000;\"><strong>tar xvfz&nbsp;<\/strong><strong>red5-1.0.1.tar.gz<br \/>\n<\/strong><\/span>\u79fb\u52d5<br \/>\n<strong><span style=\"color: #ff0000;\">mv red5-server-1.0 \/opt\/red5<br \/>\nchown -R red5 \/opt\/red5<br \/>\n<\/span><\/strong><\/p>\n<p><strong>2.\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a<br \/>\n<span style=\"color: #800000;\">\/etc\/bash.bashrc<\/span><\/strong> \u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18\u3059\u308b\u3002\uff08*.*.*\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fJava\u306eVer\uff09<br \/>\n<strong><span style=\"color: #ff0000;\">export JAVA_HOME=\/usr\/lib\/jvm\/jdk1.*.*_**<br \/>\nexport PATH=$PATH:$JAVA_HOME\/bin<br \/>\nexport CLASSPATH=.:$JAVA_HOME\/jre\/lib:$JAVA_HOME\/lib:$JAVA_HOME\/lib\/tools.jar<\/span><\/strong><\/p>\n<p><strong>3.\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u8a2d\u5b9a<\/strong><br \/>\n<strong><span style=\"color: #ff0000;\"><code>ufw allow 1935\/tcp<br \/>\n<\/code><code>ufw allow 1935\/udp<\/code><br \/>\n<code>ufw allow 5080\/tcp<\/code><\/span><\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u5171\u901a&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p><strong>1.\u8d77\u52d5<\/strong><br \/>\n\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306a\u3057\u306e red5 \u30e6\u30fc\u30b6\u3092\u4f5c\u6210\u3059\u308b<br \/>\n<strong><span style=\"color: #ff0000;\">useradd -d \/dev\/null -s \/sbin\/nologin red5<\/span><\/strong><br \/>\n\u8d77\u52d5\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<br \/>\n<strong><span style=\"color: #800000;\">\/etc\/init.d<\/span><\/strong> \u306b <span style=\"color: #0000ff;\"><strong>red5<\/strong><\/span> \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001 <a href=\"http:\/\/boomboom-mix.net\/up\/red5.txt\" target=\"_blank\" rel=\"noopener\">red5.txt<\/a> \u306e\u5185\u5bb9\u3092\u5199\u3057\u3066\u4fdd\u5b58\u3059\u308b<br \/>\n<strong><span style=\"color: #ff0000;\">chmod 755 \/etc\/init.d\/red5<br \/>\n<\/span><\/strong>\u8d77\u52d5<br \/>\n<strong><span style=\"color: #ff0000;\">\/etc\/init.d\/red5 start<\/span><\/strong><br \/>\n\u505c\u6b62<br \/>\n<strong><span style=\"color: #ff0000;\">\/etc\/init.d\/red5 stop<\/span><\/strong><br \/>\n\u518d\u8d77\u52d5<br \/>\n<strong><span style=\"color: #ff0000;\">\/etc\/init.d\/red5 restart<\/span><\/strong><\/p>\n<p><strong>2.\u78ba\u8a8d<\/strong><br \/>\n<strong><span style=\"color: #800000;\">http:\/\/\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30c9\u30ec\u30b9:5080\/<\/span><\/strong><br \/>\n\u958b\u3044\u305f\u30da\u30fc\u30b8\u304b\u3089<br \/>\n<strong><span style=\"color: #0000ff;\">Install a ready-made application<\/span><\/strong><br \/>\n\u3092\u62bc\u3057\u3066 <strong><span style=\"color: #0000ff;\">oflaDemo<\/span><\/strong> \u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u5143\u306e\u30da\u30fc\u30b8\u3078\u623b\u308b<br \/>\n<strong><span style=\"color: #0000ff;\">Launch a demo<\/span><\/strong> \u306e\u30ea\u30f3\u30af\u3092\u62bc\u3057\u3001\u958b\u3044\u305f\u30da\u30fc\u30b8\u3067\u66f4\u306b <strong><span style=\"color: #0000ff;\">Classic demo<\/span><\/strong> \u306e\u30ea\u30f3\u30af\u3092\u62bc\u3059<br \/>\n\u4e0a\u306econnect\u30dc\u30bf\u30f3\u306e\u4e0a\u306e\u5165\u529b\u6b04\u306b\u3001<strong><span style=\"color: #ff0000;\">rtmp:\/\/\u30b5\u30fc\u30d0\u30fc\u306eIP\/oflaDemo<\/span><\/strong> \u3068\u5165\u529b\u3057\u3066<strong><span style=\"color: #0000ff;\">connect<\/span><\/strong> \u30dc\u30bf\u30f3\u3092\u62bc\u3059<br \/>\n\u3059\u308b\u3068\u3001Library\u306b\u3044\u304f\u3064\u304b\u30d5\u30a1\u30a4\u30eb\u304c\u4e26\u3076\u306e\u3067\u3001\u305d\u308c\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001video \u306b\u6620\u50cf\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7121\u6599\u7248\u306eAdobe Flash Media Server\u3067\u306f10\u5206\u3067\u52d5\u753b\u306e\u914d\u4fe1\u304c\u6b62\u307e\u3063\u3066\u3057\u307e\u3046\u306e\u3067 \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067Java\u3067\u958b\u767a\u3055\u308c\u3066\u3044\u308bred5\u3092\u5c0e\u5165\u3057\u3066\u307f\u307e\u3059\u3002 \u6bce\u5ea6\u304a\u306a\u3058\u307f\u306eubuntu12.04 server\u3068 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=871"}],"version-history":[{"count":1,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":1459,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions\/1459"}],"wp:attachment":[{"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/boomboom-mix.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}