当前位置:网站首页>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
边栏推荐
- Singapore summer tourism strategy: play Singapore Sentosa Island in one day
- Progress progress bar
- [test development] takes you to know what software testing is
- R语言dplyr包filter函数筛选dataframe数据、如果需要筛选的数据列(变量)名称中包含引号则需要使用!!sym语法处理、否则因为无法处理引号筛选不到任何数据
- A simple PHP personal card issuing program v4.0
- 深度学习数学基础
- ICDE 2023|TKDE Poster Session(CFP)
- Distance measurement - Jaccard distance
- R语言ggplot2可视化:gganimate包创建动态柱状图动画(gif)、使用transition_states函数在动画中沿给定维度逐步显示柱状图
- What are the links of the problem
猜你喜欢
新加坡暑假旅游攻略:一天玩转新加坡圣淘沙岛
第一次去曼谷旅游怎么玩?这份省钱攻略请收好
[100 cases of JVM tuning practice] 02 - five cases of virtual machine stack and local method stack tuning
Hongmeng's fourth learning
How performance testing creates business value
新加坡暑假旅遊攻略:一天玩轉新加坡聖淘沙島
医院在线问诊源码 医院视频问诊源码 医院小程序源码
Obligatoire pour les débutants, cliquez sur deux boutons pour passer à un contenu différent
juypter notebook 修改默认打开文件夹以及默认浏览器
Kubernetes three open interfaces first sight
随机推荐
[100 cases of JVM tuning practice] 02 - five cases of virtual machine stack and local method stack tuning
C文件输入操作
Which securities company has a low, safe and reliable online account opening commission
R语言dplyr包rowwise函数、mutate函数计算dataframe数据中多个数据列在每行的最大值、并生成行最大值对应的数据列(row maximum)
reduce--遍历元素计算 具体的计算公式需要传入 结合BigDecimal
【每日一题】第一天
[Yugong series] July 2022 go teaching course 001 introduction to go language premise
材质UV遮罩的技巧
How to copy and paste interlaced in Excel
论文导读 | 机器学习在数据库基数估计中的应用
深度学习数学基础
Yesterday, Alibaba senior wrote a responsibility chain model, and there were countless bugs
Crypto usage in nodejs
医院在线问诊源码 医院视频问诊源码 医院小程序源码
The difference between interceptor and filter
从list转化成map的时候,如果根据某一属性可能会导致key重复而异常,可以设置处理这种重复的方式
SLAM|如何时间戳对齐?
How to delete the border of links in IE? [repeat] - how to remove borders around links in IE? [duplicate]
C的内存管理
R语言使用epiDisplay包的lsNoFunction函数列出当前空间中的所有对象、除了用户自定义的函数对象