Mac is currently only available by manually installing
1. Download Nginx Here is recommended to go to the official website. At the same time do not under the latest. I did not find the file in the Nginx conf on git because it was not finished downloading or the file on Git is incomplete.
2. Download Nginx-rtmp-module This git is downloaded just fine
3. Installation actually nginx-rtmp-module the author has already spoken the CD under the Nginx directory and then./configure--add-module=/users/allenboy/downloads/nginx-rtmp-module
4.make
5.make install here may error write failure permission not enough plus sudo
6. The installation is complete but there is no environment variable.
Change config file sudo vim/usr/local/nginx/conf/nginx.conf
rtmp { #rtmp协议 server { #服务器相关配置 listen 1935; #监听的端口号, rtmp默认1935 application ZedLive { # 自定义的路径名 live on; #开启实时 record off; #不记录数据 } }}
Restart Sudo/usr/local/nginx/sbin/nginx-s reload (or Sudo/usr/local/nginx/sbin/nginx) if it is the first time or the computer only one nginx will succeed generally error port is accounted for Here, change the HTTP port.
Close Sudo/usr/local/nginx/sbin/nginx-s Stop
Install Nginx plus rtmp module under Mac