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協(xié)議
rtmp {
? ? server {
? ? ? ? listen 1935;
? ? ? ? application rtmplive {
? ? ? ? ? ? live on;
? ? ? ? ? ? record off;
? ? ? ? }
? ? }
}
5桑孩、輸入ngnix倒堕,打開服務(wù)
6哪自、瀏覽器地址欄輸入localhost:8080測試nginx是否啟動成功丰包。