Home > Article > Backend Development > Notes on using nginx+nginx-rtmp-module+ffmpeg to build a streaming media server (6)
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)
/system/bin/sh: ./nginx: cannot execute - Permission deniedappears. Use the command
adb shell chmod 755 /sdcard/mynginx/sbin/nginx
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/
nginx: [emerg] getgrnam("nogroup") failed (2: No such file or directory)
Then modify the nginx.conf file, remove the comment
#user nobody;
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
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 commandhttp://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 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.