Difference between revisions of "Raspbian: Instalasi nginx dan RTMP"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 36: | Line 36: | ||
nginx http uwsgi temporary files: "uwsgi_temp" | nginx http uwsgi temporary files: "uwsgi_temp" | ||
nginx http scgi temporary files: "scgi_temp" | nginx http scgi temporary files: "scgi_temp" | ||
+ | |||
+ | ==Konfigurasi untuk Streaming== | ||
+ | |||
+ | Edit | ||
+ | |||
+ | vi /usr/local/nginx/conf/nginx.conf | ||
+ | |||
+ | Tambahkan | ||
+ | |||
+ | rtmp { | ||
+ | server { | ||
+ | listen 1935; | ||
+ | chunk_size 4096; | ||
+ | |||
+ | application live { | ||
+ | live on; | ||
+ | record off; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | |||
+ | Restart nginx | ||
+ | |||
+ | sudo /usr/local/nginx/sbin/nginx -s stop | ||
+ | sudo /usr/local/nginx/sbin/nginx |
Revision as of 08:47, 31 August 2014
Instalasi aplikasi pendukung
sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
Download source code
cd /usr/local/src wget http://nginx.org/download/nginx-1.6.1.tar.gz wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
Buka source code
cd /usr/local/src tar -zxvf nginx-1.6.1.tar.gz unzip master.zip
Compile
cd /usr/local/src/nginx-1.6.1 ./configure --with-http_ssl_module --add-module=../nginx-rtmp-module-master make sudo make install
Beberapa catatan penting
nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/sbin/nginx" nginx configuration prefix: "/usr/local/nginx/conf" nginx configuration file: "/usr/local/nginx/conf/nginx.conf" nginx pid file: "/usr/local/nginx/logs/nginx.pid" nginx error log file: "/usr/local/nginx/logs/error.log" nginx http access log file: "/usr/local/nginx/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"
Konfigurasi untuk Streaming
Edit
vi /usr/local/nginx/conf/nginx.conf
Tambahkan
rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; } } }
Restart nginx
sudo /usr/local/nginx/sbin/nginx -s stop sudo /usr/local/nginx/sbin/nginx