CentOS   发布时间:2022-04-02  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Centos610FastDFS单机模式-FastDFS与Nginx整合配置大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

 Centos610系列配置 我们在Centos610FastDFS单机模式-FastDFS安装 中已经完成了FastDFS的安装,接下来我们进行FastDFS调度器的安装。 1.找到先前解压出来的fast/conf目录    拷贝 http.conf,mime.types,mod_fastdfs.conf anti-steal.jpg文件   cp http.conf meme.types mo

 Centos610系列配置

我们在Centos610FastDFS单机模式-FastDFS安装 中已经完成了FastDFS的安装,接下来我们进行FastDFS调度器的安装。

1.找到先前解压出来的fast/conf目录

   拷贝 http.conf,mime.types,mod_fastdfs.conf anti-steal.jpg文件

  cp http.conf meme.types mod_fastdfs.conf anti-steal.jpg /etc/fdfs/

2.找到解压出来fastdfs-@L_675_3@-module/src目录

   拷贝 mod_fastdfs.conf文件

   cp  mod_fastdfs.conf /etc/fdfs/

3.@L_428_5@mod_fastdfs.conf文件

# tracker路径
base_path=/opt/fastdfs/tracker

# tracker服务
tracker_server=192.168.125.139:22122

# storage服务端口号
storage_server_port=23000

# 分组名称
group_name=group1

# 地址中是否包含分组名
url_have_group_name = true

# 存储路径个数
store_path_count=1

# 存储路径
store_path0=/opt/fastdfs/data

# 分组个数
group_count = 1

# 分组配置
[group1]
group_name=group1
storage_server_port=23000
store_path_count=1
store_path0=/opt/fastdfs/data

4.修改 http.conf

 vi http.conf

 

Centos610FastDFS单机模式-FastDFS与Nginx整合配置

 修改为截图中的样子

 

5.创建软连接

   创建M00至存储目录连接

  ln -s /opt/fastdfs/data/M00

6.@L_675_3@安装

   @L_675_3@安装过程 请点击连接 nginx安装

   区别在于 :@L_675_3@需要添加fastdfs-@L_675_3@-module-master 安装模块,并启用https_ssl模块

   ./configure --add-module=../fastdfs-@L_675_3@-module-master/src/ --with-http_ssl_module

   @L_675_3@安装好之后

 7.@L_675_3@配置

    cd /usr/local/@L_675_3@/conf

    mkdir siteconf

     vi @L_675_3@.conf

     在 http节点 里面第一个server 配置之前 ,添加 include  siteconf/*.conf

    保存退出

    cd siteconf

    vi fastdfs.conf

   

# 新增一个服务,监听之前配置开放的端口号
server {
    listen    9100; #对应之前tracker.conf开放的端口号
    server_name    localhost;

    LOCATIOn / {
        root   html;
        index   index.html index.htm;
    }

    LOCATIOn ~/group([0-9])/@H_330_38@m00 {
        ngx_fastdfs_module;
    }
    
    error_page 500 502 503 504 /50x.html;
    LOCATIOn = /50x.html {
        root   html;
    }
}

 

  至此基于fastdfs-@L_675_3@-module的@L_675_3@安装完成

   启动@L_675_3@

  service @L_675_3@ start

大佬总结

以上是大佬教程为你收集整理的Centos610FastDFS单机模式-FastDFS与Nginx整合配置全部内容,希望文章能够帮你解决Centos610FastDFS单机模式-FastDFS与Nginx整合配置所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。