nginx rtmp exec命令在我的macOS上不起作用。 我检查了错误日志文件并看到此错误。
2019/05/19 19:45:24 [alert] 32986#0: kevent() error on 13 filter:-1 flags:4002 (2: No such file or directory)
我不知道这是什么意思,我进行了很多搜索,但没有找到任何东西。
rtmp {
server {
listen 8080;
chunk_size 4096;
application publish {
live on;
record off;
allow publish all;
allow play all;
exec echo "" > /test.txt;
# I even test that command with bash file
exec /Users/josh/Projects/server/test.sh;
}
application hls {
live on;
record off;
hls on;
hls_path /usr/local/nginx/html/live;
hls_fragment 15s;
}
}
}