mongodb gridfs is suitable for storing video and high-definition pictures and other large files (small files are recommended not to exist in mongodb);
The following is to configure nginx under centos to access mongodb Mp4 file:
1: Install nginx-gridfs
git clone https://github.com/rjhunjhunwla/nginx-gridfs //If git:yum -y install git cd does not exist Nginx-gridfs/git submodule init git submodule update
2::install nginx
./configure --prefix=/opt/nginx --add-module=/opt/software/nginx -gridfs make make install
3: Configure nginx-gridfs: (Reference: https://github.com/rjhunjhunwla/nginx-gridfs related parameter settings)
In the nginx.conf file Join:
location /video { gridfs dbname root_collection=fs field=filename type=string user=username pass=passwd; mongo 127.0.0.1:27017; }
4: html call Display: (http://www.videojs.com/download using video.js)
<video class="video-js vjs- Default-skin" controls width="640" height="264" preload="auto"> <source src="http://127.0.0.1/video/filename.mp4" type='video /mp4' /> </video>
Blue screen is a common problem in our computer use, we can find the corresponding solution through
What if the League of Legends cant see the word box? Recently, many users have no candidate boxes wh
We are in life, WIFI is more commonly used, and even can not be separated from it. If you use too ma
I believe that many users have encountered u disk data in the process of using the u disk, for no re
Windows netstat view port, process occupancy
Windows operating system memory release method at a glance
A few tricks let you say goodbye to the speed of the turtle system running Win7 system
How to avoid the situation of pirated Microsoft system black screen
The reason why osx does not run .bashrc in the terminal is that the
How to solve the black screen after updating the graphics card driver?
Computer boot prompt taobaoprotect.exe application error solution
Is the computer slow? Skillful way to help you
How to ping Windows and VM without connecting the network cable
What should I do if the installation driver prompts "File Loss" causes the installation to fail?
To maintain system security, you have to know the four settings
Experts share the scheme of automatic backup oracle database
Unplug the flash prompt and can't stop the universal volume device
Ubuntu installs the fort compiler skills
Win7 quickly locates photos, quickly finds documents, etc.
Start notepad++ with DOS command and open a file
Linux file name look which, whereis, locate