安装homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
安装nginx
brew tap denji/nginx
执行安装
brew install nginx-full--with-rtmp-module
nginx和rtmp安装好了,启动服务
nginx
配置rtmp
rtmp {
server {
listen 2020;
application myrtmp {
live on;
record off;
}
}
}