国产片侵犯亲女视频播放_亚洲精品二区_在线免费国产视频_欧美精品一区二区三区在线_少妇久久久_在线观看av不卡

服務器之家:專注于服務器技術及軟件下載分享
分類導航

云服務器|WEB服務器|FTP服務器|郵件服務器|虛擬主機|服務器安全|DNS服務器|服務器知識|Nginx|IIS|Tomcat|

服務器之家 - 服務器技術 - 服務器知識 - 使用docker compose安裝FastDfs文件服務器的實例詳解

使用docker compose安裝FastDfs文件服務器的實例詳解

2021-11-19 16:56她的開呀 服務器知識

這篇文章主要介紹了使用docker compose安裝FastDfs文件服務器的實例詳解,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下

docker-compose.yml

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '2'
services:
    fastdfs-tracker:
        hostname: fastdfs-tracker
        container_name: fastdfs-tracker
        image: season/fastdfs:1.2
        network_mode: "host"
        command: tracker
        volumes:
          - ./tracker_data:/fastdfs/tracker/data
    fastdfs-storage:
        hostname: fastdfs-storage
        container_name: fastdfs-storage
        image: season/fastdfs:1.2
        network_mode: "host"
        volumes:
          - ./storage_data:/fastdfs/storage/data
          - ./store_path:/fastdfs/store_path
        environment:
          - TRACKER_SERVER=xxx.xxx.xxx.xxx:22122
        command: storage
        depends_on:
          - fastdfs-tracker
    fastdfs-nginx:
        hostname: fastdfs-nginx
        container_name: fastdfs-nginx
        image: season/fastdfs:1.2
        network_mode: "host"
        volumes:
          - ./nginx.conf:/etc/nginx/conf/nginx.conf
          - ./store_path:/fastdfs/store_path
        environment:
          - TRACKER_SERVER=xxx.xxx.xxx.xxx:22122
        command: nginx

需要注意:
network_mode 必須是host, 原因是當上傳文件時,tracker會把storage的IP和端口發給client,如果是bridge模式,則發送的是內網IP,client無法訪問到。
image采用season/fastdfs:1.2 不要用lastest, 因為lastest不包含nginx服務,其他fasdfs鏡像均沒有season的精簡。

nginx.conf(用于提供http的方式下載文件)

listen 7003是ngingx服務訪問端口,可自行切換

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#user  nobody;
worker_processes  1;
 
#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;
 
#pid        logs/nginx.pid;
 
 
events {
    worker_connections  1024;
}
 
 
http {
    include       mime.types;
    default_type  application/octet-stream;
 
    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';
 
    #access_log  logs/access.log  main;
 
    sendfile        on;
    #tcp_nopush     on;
 
    #keepalive_timeout  0;
    keepalive_timeout  65;
 
    #gzip  on;
 
    server {
        listen       7003;
        server_name  localhost;
 
        #charset koi8-r;
 
        #access_log  logs/host.access.log  main;
 
        location /group1/M00 {
            root /fastdfs/storage/data;
            ngx_fastdfs_module;
        }
 
        #error_page  404              /404.html;
 
        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
 }
}

到此這篇關于使用docker-compose安裝FastDfs文件服務器的文章就介紹到這了,更多相關docker-compose安裝FastDfs內容請搜索服務器之家以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持服務器之家!

原文鏈接:https://www.cnblogs.com/yloved/p/12649569.html

延伸 · 閱讀

精彩推薦
主站蜘蛛池模板: 中文字幕在线观看视频地址二 | 精品无码久久久久久国产 | 亚洲乱码国产乱码精品精98午夜 | 欧美成人精品一区二区三区 | 精品一区二区免费视频视频 | 精品国产一区二区三区性色av | 亚洲精品成a人 | 日本黄色a视频 | 亚洲精品中文字幕在线观看 | 成人免费在线观看网址 | 国产精品日韩三级 | 日韩在线小视频 | 欧美一级免费 | 91久久精品国产91久久性色tv | 香蕉一区 | 中文字幕日韩欧美 | 国产精品久久久久久吹潮 | 日韩第一视频 | 国产第一亚洲 | 亚洲免费观看 | 欧美亚洲一区二区三区 | 国产一区久久 | 欧美日韩国产精品一区二区 | 色二区 | 久久久美女视频 | 久久久精品在线 | 国产精品一区二区无线 | 欧美综合一区二区三区 | 亚洲成人高清在线 | 色爱区成人综合网 | 久久99精品久久久久久园产越南 | 亚洲一区在线日韩在线深爱 | 国产精品一二区 | 另类亚洲专区 | 一区二区三区在线 | 亚洲精品专区 | 欧美日韩亚洲综合 | 国内外成人激情免费视频 | 成人免费网站在线 | 亚洲色图88| 最近中文字幕 |