Install Nginx plus rtmp module under Mac

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.