SHARE
TWEET

Raspberry pi compile and install nginx with rtmp-module

vetoketju Jun 7th, 2014 795 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sudo apt-get update
  2. sudo apt-get -y install nginx
  3. sudo apt-get -y remove nginx
  4. sudo apt-get clean
  5. sudo apt-get install -y curl build-essential libpcre3-dev libpcre++-dev zlib1g-dev libcurl4-openssl-dev libssl-dev
  6.  
  7. cd ~
  8. mkdir www
  9. mkdir packages
  10. cd packages
  11. git clone git://github.com/arut/nginx-rtmp-module.git  
  12. wget http://nginx.org/download/nginx-1.4.1.tar.gz  
  13. tar xzf nginx-1.4.1.tar.gz
  14. cd nginx-1.4.1
  15. ./configure --prefix=/home/pi/www --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --with-http_ssl_module --without-http_proxy_module --add-module=/home/pi/packages/nginx-rtmp-module
  16. make
  17. sudo make install
RAW Paste Data
Top