当前位置:网站首页>Fastdfs offline deployment (Graphic)
Fastdfs offline deployment (Graphic)
2022-07-25 10:24:00 【Puffiness is also strong】
1. Software preparation
fastdfs-6.06.tar.gz Deployment package
link :https://pan.baidu.com/s/1KNgIV1B4IRz6ZlqSBQbk1w?pwd=1234
Extraction code :1234
fastdfs-nginx-module-1.22.tar.gz Deployment package
link :https://pan.baidu.com/s/1kpfajFrl_NYnfkLEijle8w?pwd=1234
Extraction code :1234
libfastcommon-1.0.43.tar.gz Deployment package
link :https://pan.baidu.com/s/1W5wWHJFWQId-eGgKsH1yMw?pwd=1234
Extraction code :1234
nginx-1.12.2.tar.gz Deployment package
link :https://pan.baidu.com/s/1HMCg0N65IXRi8LUuHWWBpg?pwd=1234
Extraction code :1234
Linux CentOS7 7.6_1810
link :https://pan.baidu.com/s/1NV4MjfORIj290Q3scy6iYQ?pwd=pzse
Extraction code :pzse
Fastdfs Verification tool
link :https://pan.baidu.com/s/1O6OzljP5DLoheMXxzIIYtA?pwd=1234
Extraction code :1234
Mind mapping tools
free , Succinct can be “ Mind mapping ” Copy and paste the article to get a mind map ( No joy, no spray. )

2. Installation steps
Installation environment ( The offline deployment package does not contain dependencies , It needs to be packaged and transmitted on the virtual machine )
install gcc rely on :yum install gcc-c++ -y
install pcre rely on :yum install pcre pcre-devel -y
install zlib rely on :yum install zlib zlib-devel -y
install openssl rely on :yum install openssl openssl-devel -y
install perl rely on :yum -y install perl



newly build fastdfs Catalog :mkdir -p /yunwei/fastdfs
Upload all deployment packages to the directory file
Enter this directory :cd /yunwei/fastdfs
decompression libfastcommon package :tar -xvf libfastcommon-1.0.43.tar.gz
![]()
Enter the decompression package :cd libfastcommon-1.0.43/
compile :./make.sh
install :./make.sh install

Put back the upper menu :cd ..
decompression fastdfs package :tar -xvf fastdfs-6.06.tar.gz

Enter the installation package : cd fastdfs-6.06/
compile :./make.sh
install :./make.sh install
Copy files cp -r conf/* /etc/fdfs/
Enter file :cd /etc/fdfs/
Modify the configuration file :vi tracker.conf
take base_path=/home/yuqing/fastdfs Change to base_path=/yunwei/fastdfs/data

Create a directory of log files :mkdir -p /yunwei/fastdfs/data
start-up trackerd:/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
testing :ps -ef|grep trackerd
![]()
Check the log :cat /yunwei/fastdfs/data/logs/trackerd.log
Modify the configuration file :vi storage.conf
base_path=/home/yuqing/fastdfs Change it to :base_path=/yunwei/fastdfs/data

store_path0=/home/yuqing/fastdfs Change it to :store_path0=/yunwei/fastdfs/data/storage
tracker_server=192.168.209.121:22122 Change it to :tracker_server= The server ip:22122
( This figure ip For the demo environment ip)

Create a directory of log files :mkdir -p /yunwei/fastdfs/data/storage
start-up storage process :/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
testing :ps -ef|grep storaged
![]()
Enter the compressed package file :cd /yunwei/fastdfs
Extract the module file :tar -xvf fastdfs-nginx-module-1.22.tar.gz

Get into src Catalog :cd /yunwei/fastdfs/fastdfs-nginx-module-1.22/src
Copy configuration file :cp mod_fastdfs.conf /etc/fdfs/
Edit profile :cd /etc/fdfs/
vi mod_fastdfs.conf
base_path=/tmp Change to :base_path=/yunwei/fastdfs/data

tracker_server=tracker:22122 Change to :tracker_server= The server IP Address :22122
url_have_group_name = false Change to :url_have_group_name = true
store_path0=/home/yuqing/fastdfs Change to :store_path0=/yunwei/fastdfs/data/storage
nginx Join in fastdfs modular
decompression nginx Compress :tar -xvf nginx-1.12.2.tar.gz
Enter the decompression package :cd nginx-1.12.2/

To configure nginx Join the module : ./configure --prefix=/yunwei/nginx --add-module=/yunwei/fastdfs/fastdfs-nginx-module-1.22/src
compile :make
Compilation and installation :make install
Detection module :cd /yunwei/nginx/sbin
./nginx -V
![]()
To configure nginx file :vi /yunwei/nginx/conf/nginx.conf
Add module configuration :
location /group1/M00/{
#root /home/FastDFS/fdfs_storage/data;
ngx_fastdfs_module;
}

start-up nginx
Get into sbin file :cd /yunwei/nginx/sbin/

start-up :./nginx
testing :lsof -i:80
Query log :cat /yunwei/nginx/logs/error.log
Get into nginx Webpage : The server IP Address
Turn on the machine fastdfs Test package
Click start .bat
Local access browser address ( Presentation environment address ):http://localhost:8080/client/upload?server=192.168.10.13:22122

Click on me to visit , Show pictures

Fastnfs Deployment success !!!【 thank @ Provided by default fastdfs Detection tools 】
边栏推荐
猜你喜欢

mysql 解决不支持中文的问题

VSCode Latex Workshop 设置 XeLatex 编译

VS Code 连接远程 Jupyter 服务器

搭建LNMP+DISCUZ论坛

Angr(三)——angr_ctf

线程池的死锁事件

Number theory -- negative Radix conversion

数论--约数研究

Ansible部署指南

Duplicate SSL_ Anti spoofing, spoofing attacks and deep forgery detection using wav2vec 2.0 and data enhanced automatic speaker authentication
随机推荐
oh-my-zsh和tmux配置(个人)
Angr(四)——angr_ctf
Swing组件
2、 What does the unittest framework do
10.expect免交互
Mysql离线部署
鼠标监听,画笔
多线程——Runnable接口,龟兔赛跑
Erlang (offline deployment)
安装mysql时,string the service 安装失败>mysql80启动失败
Open virtual private line network load balancing
Small knowledge of common classes
Ansible Deployment Guide
贪吃蛇小游戏
3、 Five operation modes of unittest test cases
Use of mongodb
简易加法计算器
Notes on building dompteur container
【无标题】
bug要素