当前位置:网站首页>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
边栏推荐
- Exness in-depth good article: dynamic series - Case Analysis of gold liquidity (V)
- @Component cannot get Dao layer
- 如何清理废弃pv和其对应的文件夹
- How can retail enterprises open the second growth curve under the full link digital transformation
- SQL training 2
- 拦截器与过滤器的区别
- [daily question] the next day
- Tips for material UV masking
- 《病人家属,请来一下》读书笔记
- Excel查找一列中的相同值,删除该行或替换为空值
猜你喜欢
迷你高尔夫球场:伦敦休闲旅游好去处
Yesterday, Alibaba senior wrote a responsibility chain model, and there were countless bugs
聊聊电商系统中红包活动设计
M2dgr: slam data set of multi-source and multi scene ground robot (ICRA 2022)
9D电影是怎样的?(+维度空间常识)
Mysql高级篇学习总结6:索引的概念及理解、B+树产生过程详解、MyISAM与InnoDB的对比
如何清理废弃pv和其对应的文件夹
Have you stepped on the nine common pits in the e-commerce system?
高频面试题
【JVM调优实战100例】01——JVM的介绍与程序计数器
随机推荐
【JVM调优实战100例】01——JVM的介绍与程序计数器
从list转化成map的时候,如果根据某一属性可能会导致key重复而异常,可以设置处理这种重复的方式
9D电影是怎样的?(+维度空间常识)
产品经理应具备的能力
Excel查找一列中的相同值,删除该行或替换为空值
Obligatoire pour les débutants, cliquez sur deux boutons pour passer à un contenu différent
在Tensorflow2中使用mnist_784数据集进行手写数字识别
Stm32g0 USB DFU upgrade verification error -2
全链路数字化转型下,零售企业如何打开第二增长曲线
Distance measurement - Jaccard distance
[0701] [paper reading] allowing data imbalance issue with perforated input during influence
C的内存管理
页面标题组件
故障排查:kubectl报错ValidationError: unknown field \u00a0
Masa framework - DDD design (1)
MySQL advanced learning summary 7: MySQL data structure - Comparison of hash index, AVL tree, B tree and b+ tree
新加坡暑假旅游攻略:一天玩转新加坡圣淘沙岛
Crypto usage in nodejs
Mysql高级篇学习总结8:InnoDB数据存储结构页的概述、页的内部结构、行格式
CDN acceleration and breaking J anti-theft chain function