Start nginx # Method 1 /usr /local /nginx /sbin /nginx -c /usr /local /nginx /conf /nginx. Configure firewall (ubuntu does not open the firewall by default, not required) 7. www users are not allowed to log in to the system directlyĦ. # Create nginx operation account www and join the www group. Configure users (it can also be used without setting) # Add www group Nginx : configuration file /usr /local /nginx /conf /nginx. Nginx : the configuration file /usr /local /nginx /conf /nginx. Check whether nginx is installed successfully cd /usr /local /nginx /sbin Worker_processes 1 #error_log logs/error.log #error_log logs/error.log notice #error_log logs/error.log info #pid logs/nginx.pid Enable nginx to have live state monitoring function #user nobody The text editing interface pops up for modification, similar to the txt editing methodĢ. configure -prefix = /usr /local /nginx -add -module = /home /user /nginx -rtmp - module (Added tmrp Decompression address ) -with -http_ssl_moduleģ.5 modify nginx configuration file nf for configuration (the configuration will take effect after restarting nginx) Later, configure nginx to use this location 2. After downloading, unzip it and put it in a directory (such as / home / user / nginx RTMP module). To increase support for rtmp, Download nginx rtmp module at:, this is an open source project. # Resolve the dependency package zlib installation
Sudo apt -get install libpcre3 libpcre3 -dev # Resolve dependency package pcre installation Sudo apt -get install openssl libssl -dev
# Resolve dependency package openssl installation Install the dependency package of nginx # Check if zlib is installed The following is to use the ffmpeg instruction to implement streaming with vlc 1.
C code implements streaming - the simplest FFmpeg based streaming device (taking RTMP as an example) - with delay → → according to the actual frame rate of videoĬ code for stream collection - the simplest FFMPEG based streamer accessory: the collector