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

WBOY
Release: 2016-08-08 09:28:56
Original
2580 people have browsed it

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)
Copy after login
Copy after login

or

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

adb shell chmod 755 /sdcard/mynginx/sbin/nginx
Copy after login

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/
Copy after login

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

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

Then modify the nginx.conf file, remove the comment

#user  nobody;
Copy after login

in the first line, change it to

user  nobody;
Copy after login

, 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
Copy after login

to view the running items:

ps
Copy after login

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
Copy after login

The following page appears


nginx runs successfully.

Use the command

http://localhost/
Copy after login

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.


Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!