Using nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (6)

Source: Internet
Author: User
: 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.