------------------------------------------分割线------------------------------------------
File MD5 SHA1nginx_mogilefs_module-1.0.4.tar.gz 2466aa02b225ad2aa1af22e6e50a9d2f 4f6b774096a77aa8c550d8fd6a3f5d39a661d8ed
nginx_mogilefs_module-1.0.4.zip 4667d8b805aa4ecc94c7353d79a1020a 8d86fa4f0fcb60cdd73195f77fbadf45ac51a875
[root@marvin nginx-1.6.3]# ./configure --prefix=/usr/local/nginx1.6.3 \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--with-http_ssl_module \
--with-http_flv_module \
--with-http_stub_status_module \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/tmp/nginx/client/ \
--http-proxy-temp-path=/var/tmp/nginx/proxy/ \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx/scgi \
--with-pcre \
--user=nginx \
--group=nginx \
--add-module=/tools/nginx_mogilefs_module-1.0.4 |tee /tmp/nginx.out
[root@marvin extra]# vim /usr/local/nginx/conf/nginx.conf
#添加
upstream trackers {
server martin:7001 weight=1;
server lucia:7001 weight=1;
}
[root@marvin extra]# vim /usr/local/nginx/conf/extra/demo.conf
#添加
location /file {
mogilefs_tracker trackers;
# mogilefs_tracker 192.168.1.222:7001;
mogilefs_domain files;
mogilefs_pass {
proxy_pass $mogilefs_path;
proxy_hide_header Content-Type;
proxy_buffering off;
}
}
上传图片:
[root@martin ~]# mogupload --trackers=martin:7001 --domain=files --key='/kuli.png' --file='kuli.png'
over