: This article mainly introduces how to use nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (6). If you are interested in the PHP Tutorial, refer to it. Part 6
This problem has been plagued by the nginx startup problem that has been transplanted to the ARM Development board a few days ago. it does not occur when started on the ARM Development Board.
nginx: [emerg] getgrnam("nogroup") failed (2: No such file or directory)
Is to appear
/system/bin/sh: ./nginx: cannot execute - Permission denied
Use commands
adb shell chmod 755 /sdcard/mynginx/sbin/nginx
The permission has not been changed. The permission cannot be modified.
It is always unsuccessful.
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~
With the help of my tutor, I pushed the cross-compiled nginx folder to the/data/misc/directory instead of the/sdcard/mynginx/directory.
adb push /sdcard/nginx/ /data/misc/nginx/
Re-run or error
nginx: [emerg] getgrnam("nogroup") failed (2: No such file or directory)
Then modify the nginx. conf file
#user nobody;
Remove the comment and change it
user nobody;
Modify the running command and run it in the/data/misc/nginx/sbin/directory.
./nginx -p /data/misc/nginx -c conf/nginx.conf
Run successfully.
Use commands
ps
You can view the running items:
root 2743 1 1328 456 c003f614 4002be64 S nginxnobody 2745 2743 1528 664 c00d8ad4 4002b7a4 S nginxroot 2748 2708 956 332 00000000 40095448 R ps
It indicates that nginx runs successfully.
Open your browser on the development board and enter
http://localhost/
Reality:
Nginx runs successfully.
Use commands
killall nginx
Kill the nginx process.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Every ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To sum up, you do not have the permission to run the nginx command on the sdcard or tfcard of the development board and change it to the/data/directory.
The default nginx is successfully transplanted. Next, add the rtmp module for nginx.
The preceding section describes how to use nginx + nginx-rtmp-module + ffmpeg to set up a streaming media server (6). It includes some content and hopes to help users who are interested in the PHP Tutorial.