当前位置:网站首页>FastDFS安装
FastDFS安装
2022-07-02 17:27:00 【shibushi114】
tar xzf FastDFS_v4.06.tar.gz
cd FastDFS
./make.sh & ./make.sh install
修改tracker & storage server 配置文件
vi /opt/FastDFS/tracker.conf
base_path=/home/yuqing/fastdfs 修改为:base_path=/opt/FastDFS/tracker ##include http.conf 修改为:#include http.conf
vi /opt/FastDFS/storage.conf
base_path=/home/yuqing/fastdfs 修改为: /opt/FastDFS store_path0=/opt/FastDFS 修改store_path0=/opt/FastDFS/storage
tracker_server=192.168.1.33:22122 修改为 tracker_server=ip:22122
安装fast-nginx-module 1.15
1 安装nginx 通常安装在/opt/nginx
2 下载并解压FastDFS nginx module: tar zxf fastdfs_nginx_module_v1.15.tar.gz
3 进入到nginx src目录: cd /opt/nginx
4 编译 ./configure --add-module=/opt/fastdfs-nginx-module/src make; make install
5 编译之前可以修改配置文件的 FDFS_OUTPUT_CHUNK_SIZE 和 FDFS_MOD_CONF_FILENAME, 也可以不改
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
6 做一个symbol link ${fastdfs_base_path}/data/M00 to ${fastdfs_base_path}/data
例如:ln -s /opt/FastDFS/storage/data /opt/FastDFS/storage/data/M00
7 增加nginx 配置文件
location /group1/M00 {
root /opt/FastDFS/storage/data;
ngx_fastdfs_module;
}
8 修改/etc/fdfs/mod_fastdfs.conf
url_have_group_name = true
9 启动nginx server
/opt/nginx/sbin/nginx -s stop; /opt/nginx/sbin/nginx
yum install -y pcre-devel openssl-devel
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_stub_status_module --with-pcre --add-module=/opt/fastdfs-nginx-module/src
location ~ /group[0-9]+/M00/ {
root /opt/FastDFS/storage/data;
ngx_fastdfs_module;
}
ln -s /opt/FastDFS/storage/data /opt/FastDFS/storage/data/M00
1: 启动FastDFS
tracker: /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
storage: /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
2:关闭FastDFS
tracker:/usr/local/bin/stop.sh /usr/local/bin/fdfs_tracker
storage:/usr/local/bin/stop.sh /usr/local/bin/fdfs_storage
边栏推荐
- Progress-进度条
- Ue4 dessine un cercle avec une ligne de contour
- 【JVM调优实战100例】01——JVM的介绍与程序计数器
- R语言dplyr包rowwise函数、mutate函数计算dataframe数据中多个数据列在每行的最大值、并生成行最大值对应的数据列(row maximum)
- Stretchdibits function
- Uncover the whole link communication process of dewu customer service im
- 怎么用ps提取图片颜色分析色彩搭配
- 快速排序基本思路(通俗易懂+例子)「建议收藏」
- Leetcode interview question 16.17 Continuous sequence
- The second bullet of AI development and debugging series: the exploration journey of multi machine distributed debugging
猜你喜欢
故障排查:kubectl报错ValidationError: unknown field \u00a0
How to clean up discarded PVs and their corresponding folders
Leetcode (81) -- search rotation sort array II
彻底搞懂基于Open3D的点云处理教程!
[daily question] the next day
Web版3D可视化工具,程序员应该知道的97件事,AI前沿论文 | 资讯日报 #2022.07.01
UML 类图
拦截器与过滤器的区别
电商系统中常见的 9 大坑,你踩过没?
[fluent] dart data type (VaR data type | object data type)
随机推荐
300+篇文献!一文详解基于Transformer的多模态学习最新进展
Redis (7) -- database and expiration key
Tips for material UV masking
Nm02 nm module call sequence diagram and code interpretation independent of bus protocol
UML 类图
Deep neural network Summary
昨天阿里学长写了一个责任链模式,竟然出现了无数个bug
Night God simulator +fiddler packet capture test app
Crypto usage in nodejs
R language ggplot2 visualization: visualize the line chart and add customized X-axis label information to the line chart using labs function
徹底搞懂基於Open3D的點雲處理教程!
How to set vscode to delete the whole line shortcut key?
学习八股文的知识点~~1
彻底搞懂基于Open3D的点云处理教程!
What is cloud primordial? This time, I can finally understand!
服务器php环境搭建教程,PHP服务端环境搭建图文详解
The R language dplyr package rowwise function and mutate function calculate the maximum value of multiple data columns in each row in the dataframe data, and generate the data column (row maximum) cor
C语言中函数参数传递的三种方式
R language uses Cox of epidisplay package Display function obtains the summary statistical information of Cox regression model (risk rate HR, adjusted risk rate and its confidence interval, P value of
Competence of product manager