1、安装homebrew ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、clone到本地
brew tap denji/nginx
3、安装ngnix-full
//brew install nginx-full --with-upload-module
brew install nginx-full --with-rtmp-module
4、到ngnix.conf路径下配置rtmp协议
rtmp {
server {
listen 1935;
application rtmplive {
live on;
record off;
}
}
}
5、输入ngnix,打开服务
6、浏览器地址栏输入localhost:8080测试nginx是否启动成功。
网友评论