Home  >  Article  >  Backend Development  >  Notes on using nginx+nginx-rtmp-module+ffmpeg to build a streaming media server (6)

Notes on using nginx+nginx-rtmp-module+ffmpeg to build a streaming media server (6)

WBOY
WBOYOriginal
2016-08-08 09:28:562638browse

Part 6

A few days ago, I have been troubled by the problem of starting nginx transplanted to the ARM development board. When starting on the ARM development board, either

nginx: [emerg] getgrnam("nogroup") failed (2: No such file or directory)

or

/system/bin/sh: ./nginx: cannot execute - Permission denied 
appears. Use the command

adb shell chmod 755 /sdcard/mynginx/sbin/nginx

to modify permissions. No changes were made, and the permission modification was unsuccessful.

Always fails to run.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

Today, with the help of my tutor, I pushed the cross-compiled nginx folder to the /data/misc/ directory instead of Re-run

adb push /sdcard/nginx/  /data/misc/nginx/

under /sdcard/mynginx/, but an error still occurs

nginx: [emerg] getgrnam("nogroup") failed (2: No such file or directory)

Then modify the nginx.conf file, remove the comment

#user  nobody;

in the first line, change it to

user  nobody;

, and then modify Run the command in the /data/misc/nginx/sbin/ directory and execute it successfully.

Use the command

./nginx  -p  /data/misc/nginx  -c  conf/nginx.conf

to view the running items:

ps

indicating that nginx is running successfully.

Open the browser on the development board and enter

root      2743  1     1328   456   c003f614 4002be64 S nginx
nobody    2745  2743  1528   664   c00d8ad4 4002b7a4 S nginx
root      2748  2708  956    332   00000000 40095448 R ps

The following page appears


nginx runs successfully.

Use the command

http://localhost/

to kill the nginx process.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In summary, there is no permission to execute the nginx command on the sdcard or tfcard of the development board. Change to the /data/ directory .

The default nginx was successfully transplanted. The next step is to add the rtmp module to nginx.

The above introduces the notes (6) on building a streaming media server using nginx+nginx-rtmp-module+ffmpeg, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn