当前位置:网站首页>Fastdfs installation
Fastdfs installation
2022-07-02 19:07:00 【shibushi114】
tar xzf FastDFS_v4.06.tar.gz
cd FastDFS
./make.sh & ./make.sh install
modify tracker & storage server The configuration file
vi /opt/FastDFS/tracker.conf
base_path=/home/yuqing/fastdfs It is amended as follows :base_path=/opt/FastDFS/tracker ##include http.conf It is amended as follows :#include http.conf
vi /opt/FastDFS/storage.conf
base_path=/home/yuqing/fastdfs It is amended as follows : /opt/FastDFS store_path0=/opt/FastDFS modify store_path0=/opt/FastDFS/storage
tracker_server=192.168.1.33:22122 It is amended as follows tracker_server=ip:22122
install fast-nginx-module 1.15
1 install nginx Usually installed in /opt/nginx
2 Download and unzip FastDFS nginx module: tar zxf fastdfs_nginx_module_v1.15.tar.gz
3 Enter into nginx src Catalog : cd /opt/nginx
4 compile ./configure --add-module=/opt/fastdfs-nginx-module/src make; make install
5 The configuration file can be modified before compilation FDFS_OUTPUT_CHUNK_SIZE and FDFS_MOD_CONF_FILENAME, Or not
CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64 -DFDFS_OUTPUT_CHUNK_SIZE='256*1024' -DFDFS_MOD_CONF_FILENAME='\"/etc/fdfs/mod_fastdfs.conf\"'"
6 Make one symbol link ${fastdfs_base_path}/data/M00 to ${fastdfs_base_path}/data
for example :ln -s /opt/FastDFS/storage/data /opt/FastDFS/storage/data/M00
7 increase nginx The configuration file
location /group1/M00 {
root /opt/FastDFS/storage/data;
ngx_fastdfs_module;
}
8 modify /etc/fdfs/mod_fastdfs.conf
url_have_group_name = true
9 start-up 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: start-up FastDFS
tracker: /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
storage: /usr/local/bin/fdfs_storaged /etc/fdfs/storage.conf
2: close FastDFS
tracker:/usr/local/bin/stop.sh /usr/local/bin/fdfs_tracker
storage:/usr/local/bin/stop.sh /usr/local/bin/fdfs_storage
边栏推荐
- Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
- Have you stepped on the nine common pits in the e-commerce system?
- 开源物联网平台ThingsBoard的安装
- [论文阅读] CA-Net: Leveraging Contextual Features for Lung Cancer Prediction
- 【测试开发】软件测试—概念篇
- R语言ggplot2可视化:gganimate包创建动态柱状图动画(gif)、使用transition_states函数在动画中沿给定维度逐步显示柱状图
- Introduction to the paper | application of machine learning in database cardinality estimation
- 医院在线问诊源码 医院视频问诊源码 医院小程序源码
- Typical application of "stack" - expression evaluation (implemented in C language)
- 拦截器与过滤器的区别
猜你喜欢

在纽约寻找童真——新泽西州乐高乐园探索中心的美好一天

ICDE 2023|TKDE Poster Session(CFP)
![[test development] software testing - concept](/img/24/9ee885d46f7200ae7449957ca96b9d.png)
[test development] software testing - concept

鸿蒙第四次学习
![[100 cases of JVM tuning practice] 01 - introduction of JVM and program counter](/img/c4/3bba96fda92328704c2ddd929dcdf6.png)
[100 cases of JVM tuning practice] 01 - introduction of JVM and program counter

Excel查找一列中的相同值,删除该行或替换为空值

Hospital online inquiry source code hospital video inquiry source code hospital applet source code

Stm32g0 USB DFU upgrade verification error -2

Obligatoire pour les débutants, cliquez sur deux boutons pour passer à un contenu différent
![[daily question] first day](/img/8c/f25cddb6ca86d44538c976fae13c6e.png)
[daily question] first day
随机推荐
[daily question] the next day
Chain game system development (unity3d chain game development details) - chain game development mature technology source code
问题包含哪些环节
Three ways of function parameter transfer in C language
Looking for innocence in New York -- a beautiful day at the discovery center of Legoland, New Jersey
Page title component
Excel如何进行隔行复制粘贴
[0701] [paper reading] allowing data imbalance issue with perforated input during influence
Exness in-depth good article: dynamic series - Case Analysis of gold liquidity (V)
Hongmeng's fourth learning
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
A simple PHP personal card issuing program v4.0
【每日一题】第一天
Tips for material UV masking
Web version 3D visualization tool, 97 things programmers should know, AI frontier paper | information daily # 2022.07.01
[0701] [论文阅读] Alleviating Data Imbalance Issue with Perturbed Input During Inference
options should NOT have additional properties
Mini Golf Course: a good place for leisure and tourism in London
Leetcode (81) -- search rotation sort array II
Introduction to the paper | application of machine learning in database cardinality estimation