This chapter is based on the pagoda panel
Uninstall Nginx
Pre download Nginx
cd /www/server git clone https://github.com/arut/nginx-rtmp-module.git #Git error installing git: yum - y install git
Modify configuration (pay attention to format)
vim /www/server/panel/install/nginx.sh
Install nginx (it takes a long time to install nginx, which can be matched with screen)
sh /www/server/panel/install/nginx.sh install 1.18
Modify Nginx configuration
rtmp { server { listen 6666; # The monitored port can be replaced at will. Remember the square corresponding port after replacement chunk_size 4000; application hls { live on; hls on; hls_path /www/wwwroot/xx.com/live; # Here is the path of the live folder hls_fragment 5s; } } }
Streaming