git安装nginx-gridfs
//git clone nginx-gridfs
git clone git://github.com/mdirolf/nginx-gridfs.git
//切换到git到本地的nginx-gridfs目录
cd nginx-gridfs/
//初始化nginx-gridfs依赖的子模块
git submodule init
//更新nginx-gridfs依赖的子模块
git submodule update
//切换到nginx的源码目录
cd /data/soft/nginx-1.0.4
//重新configure并添加module nginx-gridfs
./configure --add-module=/data/soft/nginx-gridfs
make
make install
修改nginx的conf文件
//为访问s1.111du.com的server增加配置
server {
listen 80;
server_name s1.111du.com;
//所有请求都映射到mongodb的服务中
location / {
//通过field=filename来做数据查询
gridfs imark field=filename type=string;
//mongodb的服务
mongo 127.0.0.1:30001;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /WEB-INF/ {
deny all;
}
}
参考网址
https://github.com/mdirolf/nginx-gridfs
分享到:
相关推荐
Nginx-gridfs插件安装放法,MONGODB索引文档。此插件实现数据库中文件资源发布WEB服务,可通过URL直接访问。
nginx-gridfs 是一个 Nginx 的扩展模块,用于支持直接访问 MongoDB 的 GridFS 文件系统上的文件并提供 HTTP 访问。 标签:nginx
GridFS 是 MongoDB 下的一个子模块,利用这一模块,可以实现使用MongoDB存储文件,MongoDB 二进制包的bin目录下的mongofile 命令即可模拟实现该功能。
2,Nginx_GridFS 这是一个基于MongoDB C驱动程序的Nginx插件。 编译代码并安装我在此仓库中制作了一个快速,使用sudo运行它。 准备好Nginx之后,修改/usr/local/nginx/conf/nginx.conf下的配置文件(如果您没有更改...
实现此网关的主要原因是过时的Nginx GridFS模块( )。 不幸的是,与编写用于访问GridFS的微服务相比,重新启动该项目似乎太困难了:) 安装 go install github.com/oleksandr/storage-gateway 配置 有关storage-...
通过Nginx直接在页面上通过URL访问MongoDB存储的文件
Laravel开发-laravel-gridfs-storage 用于Laravel存储API的MongoDB GridFS集成
linux下部署mongodb + nginx + gridfs时,会由于mongodb配置问题导致老是配置不成功; 这个包是我配置成功,压缩的一个包,解压直接可用;
nginx+gridfs存储及查看图片方案,适用于centos7的mongdb 3.0.15版本的安装包
MongoDB (gridfs) 安装 Thunderfs 操作系统 只要 Python 和 MongoDB 在该平台上可用,Thunderfs 应该可以在大多数 Unix、Linux、Mac、Mac Server 和 Windows 系统上运行。 $ yum 安装 git -y $ yum groupinstall ...
•GridFS ◦查看分块 ◦下载文件 •更多好用的特征开发中 ... 快速安装: 1.下载安装包 2.解压到你的网站目录下 3.用编辑器打开config.php (1.0.5版本以前是index.php),修改host, port, admins等参数...
│ 第31节:Nginx简介、安装和基本运行.avi │ 第32节:Nginx的进程结构、基本配置.avi │ 第33节:Nginx常用核心模块指令.avi │ 第34节:Nginx的Http模块部分的指令.avi │ 第35节:Nginx的Location区段.avi │ 第...