nginx也支持流媒体
1. 确认nginx是否可安装
brew search nginx
2. 安装nginx
brew install nginx
3. 启动nginx服务
cd /usr/local/etc/nginx
nginx
curl http://localhost:8080/
使用curl命令确认服务是否启动
4. 停止nginx的方式
常规方式
nginx -s stop
ps -ef|grep nginx
5. 重新加载nginx
nginx -s reload
6. 强行终止nginx
ps -ef|grep nginx
kill 线程NO
7. 开机自启动/关闭
brew services start nginx
brew services stop nginx