1.首先安装好centos系统
参考文章https://blog.csdn.net/qq_36543378/article/details/86225138
按上述文章搭建系统
所需文件:文件 点击下载
1.上述文件 利用finalshell 上传到服务器/root
之后按文章命令安装
2.编辑修改nginx.conf 目录为 /usr/local/nginx/conf和/root/nginx-1.6.2/conf
两个目录里的nginx.conf都修改 也许只要修改前面一个就可以,这次修改了2个(主要是IP修改)
3.防火墙关闭
systemctl stop firewalld.service
systemctl disable firewalld.service
4.上述nginx文件配置后需重启服务
cd /usr/local/nginx/sbin/
./nginx (启动命令)
./nginx -s reload (#平滑重启,修改配置文件后,不断服务重启)
./nginx -s stop #停止服务
nginx的命令操作,进入cd /usr/local/nginx/sbin/后可执行下方操作
./nginx #第一次启动
./nginx -t #检查配置文件是否正确
./nginx -s reload #平滑重启,修改配置文件后,不断服务重启
./nginx -s stop #停止服务
5.关于推拉流地址的设置
OBS设置推流地址:
potplayer 或者vlc播放器设置拉流地址
http://10.178.94.202/hls/test.m3u8 ( 这个地址手机上可直接观看)
网页播放需建立一个html文件放到web服务器(如群晖或者网盘)
html文件模板已放本文最上方压缩包附件