法斯特DFS安装配备,下载地址

By admin in 美高梅手机版4858 on 2019年4月19日

读书本文须要先读书安装FastDFS<准备>

最小化安装linux CentOS-陆.陆后 安顿fastdfs +下载地址

安装一些至关重要软件

 

yum -y install wget gcc perl

 

 

 

mkdir ~/zy

 

cd ~/zy

 

 

 

安装:libfastcommon

 

下载:

 

wget

 

解压:

 

tar -zxvf V1.0.7

 

进去解压后的目录

 

cd libfastcommon-1.0.7/

 

实施命令

 

./make.sh

 

./make.sh install

 

 

 

所以要求创设软链接.

 

ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so

ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so

ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so

ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

 

cd ..

 

 

 

安装FastDFS

 

下载

 

wget

 

解压:

 

tar -zxvf V5.05

 

实施下边发号施令不解释

 

cd fastdfs-5.05/

 

./make.sh

 

./make.sh install

 

 

 

cd /etc/fdfs/

 

cp tracker.conf.sample tracker.conf

 

vi /etc/fdfs/tracker.conf文件,修改如下内容

 

base_path=/tracker

 

保存

 

mkdir /tracker

 

fdfs_trackerd tracker.conf

 

 

 

cp storage.conf.sample storage.conf

 

修改内容

 

vi /etc/fdfs/storage.conf

 

group_name=group1

 

base_path=/storage

 

store_path0=/storage

 

tracker_server=192.168.160.128:22122

 

 

 

mkdir /storage

 

fdfs_storaged storage.conf

 

 

 

cd ~/zy

法斯特DFS安装配备,下载地址。 

解压fastdfs-nginx-module

 

wget

 

 

 

tar -zxvf fastdfs-nginx-module_v1.16.tar.gz

 

vi fastdfs-nginx-module/src/config

 

修改fastdfs-nginx-module的config文件

 

原先的剧情是

 

CORE_INCS=”$CORE_INCS /usr/local/include/fastdfs
/usr/local/include/fastcommon/”

 

 

 

vim /home/nginx/fastdfs-nginx-module/src/config,修改为

 

CORE_INCS=”$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon”

 

 

 

安装nginx

 

wget

 

 

 

yum -y install gcc automake autoconf libtool make gcc-c++ pcre* zlib
openssl openssl-devel

 

 

 

mkdir /home/nginx

 

 

 

tar -zxvf nginx-1.9.5.tar.gz

 

mv fastdfs-nginx-module /home/nginx

 

 

 

cd nginx-1.9.5

 

 

 

./configure \

–prefix=/home/nginx/nginx-1.6.2 \

–sbin-path=/home/nginx/nginx-1.6.2/nginx \

–conf-path=/home/nginx/nginx-1.6.2/nginx.conf \

–pid-path=/home/nginx/nginx-1.6.2/nginx.pid \

–with-http_ssl_module \

–add-module=/home/nginx/fastdfs-nginx-module/src

 

 

 

make -j `cat /proc/cpuinfo | grep processor| wc -l` && make install

 

cp /home/nginx/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs

 

vi /etc/fdfs/mod_fastdfs.conf

 

修改内容

 

group_name=group1

tracker_server=192.168.160.128:22122

store_path0=/storage

base_path=/storage

 

 

 

cd ~/zy/fastdfs-5.05/conf

 

cp http.conf mime.types /etc/fdfs/

 

 

 

cd /home/nginx/nginx-1.6.2/

 

vi nginx.conf

 

修改Nginx配置文件

 

        location /M00 {

 

            root /storage;

 

            ngx_fastdfs_module;

 

        }

 

cd /storage/

 

ln -s data/ M00

 

 

 

/home/nginx/nginx-1.6.2/nginx

 

 

 

vi /etc/sysconfig/iptables

 

添加

 

-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 22122 -j ACCEPT

-A INPUT -m state –state NEW -m tcp -p tcp –dport 23000 -j ACCEPT

 

 

 

service iptables restart

 


 

重启linux后运转服务

 

fdfs_trackerd /etc/fdfs/tracker.conf

fdfs_storaged /etc/fdfs/storage.conf

/home/nginx/nginx-1.6.2/nginx

 

 

 

下载

 

libfastcommon

 

 

 

 

fastdfs-nginx-module下载地址

 

 

 

 

fastdfs

 

 

 

 

nginx

 

CentOS-陆.6后 铺排fastdfs
+下载地址 安装1些必需软件 yum -y install wget gcc perl mkdir ~/zy cd
~/zy 安装:libfastcommon 下载: wget https:…

最小化安装linux CentOS-6.陆后 铺排fastdfs +下载地址 很干很干的干货,centos-陆.6fastdfs

参考:

安装一些少不了软件

yum -y install wget gcc perl

 

mkdir ~/zy

cd ~/zy

 

安装:libfastcommon

下载:

wget

解压:

tar -zxvf V1.0.7

进去解压后的目录

cd libfastcommon-1.0.7/

试行命令

./make.sh

./make.sh install

 

为此需求创建软链接.

ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
ln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so
ln -s /usr/lib64/libfdfsclient.so /usr/local/lib/libfdfsclient.so
ln -s /usr/lib64/libfdfsclient.so /usr/lib/libfdfsclient.so

cd ..

 

安装FastDFS

下载

wget

解压:

tar -zxvf V5.05

试行下边发号施令不表明

cd fastdfs-5.05/

./make.sh

./make.sh install

 

cd /etc/fdfs/

cp tracker.conf.sample tracker.conf

vi /etc/fdfs/tracker.conf文件,修改如下内容

base_path=/tracker

保存

mkdir /tracker

fdfs_trackerd tracker.conf

 

cp storage.conf.sample storage.conf

修改内容

vi /etc/fdfs/storage.conf

group_name=group1

base_path=/storage

store_path0=/storage

tracker_server=192.168.160.128:22122

 

mkdir /storage

fdfs_storaged storage.conf

 

cd ~/zy

解压fastdfs-nginx-module

wget

 

tar -zxvf fastdfs-nginx-module_v1.16.tar.gz

vi fastdfs-nginx-module/src/config

修改fastdfs-nginx-module的config文件

原来的内容是

CORE_INCS=”$CORE_INCS /usr/local/include/fastdfs
/usr/local/include/fastcommon/”

 

vim /home/nginx/fastdfs-nginx-module/src/config,修改为

CORE_INCS=”$CORE_INCS /usr/include/fastdfs /usr/include/fastcommon”

 

安装nginx

wget

 

yum -y install gcc automake autoconf libtool make gcc-c++ pcre* zlib
openssl openssl-devel

 

mkdir /home/nginx

 

tar -zxvf nginx-1.9.5.tar.gz

mv fastdfs-nginx-module /home/nginx

 

cd nginx-1.9.5

 

./configure \
–prefix=/home/nginx/nginx-1.6.2 \
–sbin-path=/home/nginx/nginx-1.6.2/nginx \
–conf-path=/home/nginx/nginx-1.6.2/nginx.conf \
–pid-path=/home/nginx/nginx-1.6.2/nginx.pid \
–with-http_ssl_module \
–add-module=/home/nginx/fastdfs-nginx-module/src

 

make -j `cat /proc/cpuinfo | grep processor| wc -l` && make install

cp /home/nginx/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs

vi /etc/fdfs/mod_fastdfs.conf

修改内容

group_name=group1
tracker_server=192.168.160.128:22122
store_path0=/storage
base_path=/storage

 

cd ~/zy/fastdfs-5.05/conf

cp http.conf mime.types /etc/fdfs/

 

cd /home/nginx/nginx-1.6.2/

vi nginx.conf

修改Nginx配置文件

        location /M00 {

            root /storage;

            ngx_fastdfs_module;

        }

cd /storage/

ln -s data/ M00

 

/home/nginx/nginx-1.6.2/nginx

 

vi /etc/sysconfig/iptables

添加

-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 22122 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 23000 -j ACCEPT

 

service iptables restart


重启linux后运转服务

fdfs_trackerd /etc/fdfs/tracker.conf
fdfs_storaged /etc/fdfs/storage.conf
/home/nginx/nginx-1.6.2/nginx

 

下载

libfastcommon

 

fastdfs-nginx-module下载地址

 

fastdfs

 

nginx

 

CentOS-陆.陆后 安插fastdfs
+下载地址 很干很干的干货,centos-六.陆fastdfs
参考:
安装一些必备软…

法斯特DFS安装配备

一 编译环境

 

yum install gcc-c++

第一步:安装FastDFS 

yum -y install libevent

1.解压 FastDFS_v4.07.tar.gz ==>FastDFS 

yum install -y pcre pcre-devel

  1. cd FastDFS ==>vim make.sh 

yum install -y zlib zlib-devel

修改以下内容 

yum install -y openssl openssl-devel

TARGET_PREFIX=/usr/local/fdfs 

 

TARGET_CONF_PATH=/usr/local/fdfs/conf 

二 安装libfastcommon

mkdir -p /usr/local/fdfs 

新建目录

mkdir -p /usr/local/fdfs/conf 

  mkdir /usr/local/libfastcommon

 

解压

修改 

  cd libfastcommon压缩包所在目录

if [ “$uname” = “Linux” ]; then 

  tar -xvf libfastcommon-1.0.36.tar.gz -C /usr/local/libfastcommon

    if [ “$WITH_LINUX_SERVICE” = “1” ]; then 

编译

      if [ ! -d $TARGET_CONF_PATH ]; then 

  cd /usr/local/libfastcommon/libfastcommon-1.0.36

        mkdir -p $TARGET_CONF_PATH 

  ./make.sh

        cp -f conf/tracker.conf $TARGET_CONF_PATH 

  ./make.sh install

        cp -f conf/storage.conf $TARGET_CONF_PATH 

 

        cp -f conf/client.conf $TARGET_CONF_PATH 

三 安装FastDFS**

        cp -f conf/http.conf $TARGET_CONF_PATH 

新建目录

        cp -f conf/mime.types $TARGET_CONF_PATH 

  mkdir /usr/local/fastdfs

      fi 

解压

 

  cd fastdfs压缩包所在目录

 

  tar -xvf fastdfs-5.11.tar.gz -C /usr/local/fastdfs

      cp -f init.d/fdfs_trackerd /etc/rc.d/init.d/ 

编译

      cp -f init.d/fdfs_storaged /etc/rc.d/init.d/ 

  cd /usr/local/fastdfs/fastdfs-5.11

      /sbin/chkconfig –add fdfs_trackerd 

  ./make.sh

      /sbin/chkconfig –add fdfs_storaged 

  ./make.sh install

    fi 

 

  fi 

四 安装fastdfs-nginx-module

 

解压

 

  cd fastdfs-nginx-module压缩包所在目录

第二步:安装libevent-2.0.19-stable.tar.gz 

  tar -xvf fastdfs-nginx-module.tar.gz -C /usr/local

1.解压 libevent-2.0.19-stable.tar.gz==>libevent-2.0.19-stable 

 

2.进入libevent-2.0.19-stable 安装 

五 安装Nginx

./configure –prefix=/usr/local/libevent 

新建目录

make 

  mkdir /usr/local/nginx

make install 

  mkdir -p /var/temp/nginx

 

解压

 

  cd nginx压缩包所在目录

  1. 增加软连接 

  tar -xvf nginx-1.14.0.tar.gz

ln -s /usr/local/libevent/lib/libevent-2.0.so.5
/usr/lib/libevent-2.0.so.5 

行使configure命令创制Makefile文件 将上边发号施令拷贝进去

ln -s /usr/local/libevent/lib/libevent-2.0.so.5
/usr/lib64/libevent-2.0.so.5 

  cd nginx解压包内部 -> cd /hy/nginx-壹.1肆.0

ln -s /usr/local/libevent/lib/libevent-2.0.so.5
/lib64/libevent-2.0.so.5 

./configure \
--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx/nginx.pid \
--lock-path=/var/lock/nginx.lock \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--with-http_gzip_static_module \
--http-client-body-temp-path=/var/temp/nginx/client \
--http-proxy-temp-path=/var/temp/nginx/proxy \
--http-fastcgi-temp-path=/var/temp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/temp/nginx/uwsgi \
--http-scgi-temp-path=/var/temp/nginx/scgi \
--add-module=/usr/local/fastdfs-nginx-module/src

ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /lib/libevent-2.0.so.5 

编译

ln -s /usr/local/libevent/lib/libevent-2.0.so.5
/usr/local/lib64/libevent-2.0.so.5 

  make

ln -s /usr/local/libevent/lib/libevent-2.0.so.5
/usr/local/lib/libevent-2.0.so.5 

  make install

 

 

 

6 配置文件准备

第三步:安装FastDFS 

cp /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf

./make.sh C_INCLUDE_PATH=/usr/local/libevent/include
LIBRARY_PATH=/usr/local/libevent/lib 

cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf

./make.sh install 

cp /etc/fdfs/client.conf.sample /etc/fdfs/client.conf

 

cp /usr/local/fastdfs/fastdfs-5.11/conf/http.conf /etc/fdfs/

 

cp /usr/local/fastdfs/fastdfs-5.11/conf/mime.types /etc/fdfs/

第四步:如果/usr/local/fastdfs/conf没有fdfs_trackerd和fdfs_storaged这三个公文,就从
/法斯特DFS/tracker 和法斯特DFS/storage/目录下复制过去 

cp /usr/local/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs

 

 

 

七 配置Tracker

第陆步:修改配置 

新建目录

mkdir -p /home/softinstall/data/tracker 

  mkdir -p /home/fastdfs/tracker

  1. 修改 tracker.conf 

编辑(根据key修改value)

 

  vim /etc/fdfs/tracker.conf

 

# tracker服务器端口(默认22122 一般不修改)
port=22122  
# 存储tracker跟踪服务器日志和数据的根目录
base_path=/home/fastdfs/tracker

base_path=/home/softinstall/data/tracker 

启动

bind_addr=192.168.9.169 

  /etc/init.d/fdfs_trackerd start

1.1 修改storage_ids.conf 

设置开机自动运维

100001   group1  192.168.9.169 

  chkconfig fdfs_trackerd on

  1. 启动tracker 

美高梅手机版4858 1

./fdfs_trackerd ../conf/tracker.conf  

 

查看22122端口是或不是运行起来 

八 配置Storage

 

新建目录

 

  mkdir -p /home/fastdfs/storage

第六步:配置storage 

编辑(根据key修改value)

mkdir -p /home/softinstall/data/store 

  vim /etc/fdfs/storage.conf

mkdir -p /home/softinstall/data/store/store0 

# storage服务器端口(默认23000 一般不修改)
port=23000
# 存储storage存储服务器日志和数据的根目录
base_path=/home/fastdfs/storage
# 第一个存储目录
store_path0=/home/fastdfs/storage
# tracker服务器IP和端口
tracker_server=192.168.0.xxx:22122
# http访问文件的端口(默认8888 看情况修改 和nginx中保持一致)
http.server_port=8888

mkdir -p /home/softinstall/data/store/store1 

启动

mkdir -p /home/softinstall/data/store/store2 

  /etc/init.d/fdfs_storaged start

1.修改storage.conf 

设置开机自动运维

base_path=/home/softinstall/data/store 

  chkconfig fdfs_storaged on

 

美高梅手机版4858 2

 

 

store_path_count=3 

九 配置Nginx

store_path0=/home/softinstall/data/store/store0 

编辑(根据key修改value)

store_path1=/home/softinstall/data/store/store1 

  vim /etc/fdfs/mod_fastdfs.conf

store_path2=/home/softinstall/data/store/store2 

# tracker服务器IP和端口
tracker_server=192.168.0.xxx:22122
# url中包含group名称
url_have_group_name=true
# storage.conf -> store_path0
store_path0=/home/fastdfs/storage

tracker_server=192.168.9.169:22122 

布局nginx服务器 将上面配置拷贝进去(与原来的server节点同级)

#限6*6=36个目录 默认256*256 

  vim /usr/local/nginx/conf/nginx.conf

subdir_count_per_path=6 

    server {
        listen       8888;    #storage.conf -> http.server_port
        server_name  localhost;

        location ~/group[0-9]/ {
            ngx_fastdfs_module;
        }

        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
    }
  1. 启动storage 

进入sbin目录

./fdfs_storaged ../conf/storage.conf  

  cd /usr/local/nginx/sbin

翻看23000端口是不是运营 

启动

 

  ./nginx

 

美高梅手机版4858 3

第七步:安装nginx+fastdfs模块 

 

  1. 安装pcre-8.32  

十 测试

进入pcre-8.32 

编辑(根据key修改value)

./configure 

  vim /etc/fdfs/client.conf

make 

# tracker.conf -> store_path
base_path=/home/fastdfs/tracker
# tracker服务器IP和端口
tracker_server=192.168.0.xxx:22122

make install 

应用格式

设置若是不通常缺省有些包,能够举行: 

  fdfs_upload_file 客户端配置文件地点 上传文件

yum groupinstall “Development Tools”  

  fdfs_upload_file /etc/fdfs/client.conf
/usr/local/fastdfs/fastdfs-5.11/conf/anti-steal.jpg

 

归来ID表示成功

 

  group1/M00/00/00/rBJeP1s4PoCAGfkiAABdrZgsqUU790.jpg

第八步:解压fastdfs-nginx-module_v1.15.tar.gz和 nginx-1.4.2.tar.gz 

美高梅手机版4858 4

1.进入 fastdfs-nginx-module_v1.15/src 

用外表浏览器访问

vim fastdfs-nginx-module_v1.15/src/config 

  

修改成以下内容 

 

ngx_addon_name=ngx_美高梅手机版4858,http_fastdfs_module 

HTTP_MODULES=”$HTTP_MODULES ngx_http_fastdfs_module” 

NGX_ADDON_SRCS=”$NGX_ADDON_SRCS
$ngx_addon_dir/ngx_http_fastdfs_module.c” 

CORE_INCS=”$CORE_INCS /usr/local/fdfs/include/fastdfs
/usr/local/fdfs/include/fastcommon/” 

CORE_LIBS=”$CORE_LIBS -L/usr/local/fdfs/lib -lfastcommon
-lfdfsclient” 

CFLAGS=”$CFLAGS -D_FILE_OFFSET_BITS=64
-DFDFS_OUTPUT_CHUNK_SIZE=’256*1024′
-DFDFS_MOD_CONF_FILENAME=’\”/usr/local/fdfs/conf/mod_fastdfs.conf\”‘” 

 

 

  1. 安装 

进入nginx-1.4.2目录 

./configure –prefix=/home/softinstall/nginx/nginx-fastdfs-install
–with-pcre=/home/softinstall/nginx/pcre-8.32
–add-module=/home/softinstall/nginx/fastdfs-nginx-module/src 

 

 

 

 

设置中一旦有毛病 

能够推行安装以下包:yum -y install gcc gcc-c++ zlib-devel openssl-devel 

 

 

3.配置nginx.conf 

进入nginx-fastdfs-install/conf 

vim nginx.conf 配置以下内容 

      location /M00 { 

root /home/softinstall/data/store/store0/data; 

ngx_fastdfs_module; 

 

 

location /M01 { 

root /home/softinstall/data/store/store1/data; 

ngx_fastdfs_module; 

location /M02 { 

root /home/softinstall/data/store/store2/data; 

ngx_fastdfs_module; 

 

 

4.配置mod_fastdfs.conf 

mkdir -p /home/softinstall/data/nginx_mod 

进入 /usr/local/fdfs/conf目录 

vim mod_fastdfs.conf 

 

 

base_path=/home/softinstall/data/nginx_mod 

tracker_server=192.168.9.169:22122 

store_path_count=3 

store_path0=/home/softinstall/data/store/store0 

store_path1=/home/softinstall/data/store/store1 

store_path2=/home/softinstall/data/store/store2 

  1. 启动nginx 

进入 /home/softinstall/nginx/nginx-fastdfs-install/sbin 

./nginx 

 

 

借使开发银行找不到 

error while loading shared libraries: libfdfsclient.so: cannot open
shared object file: No such file or directory 

error while loading shared libraries: libfastcommon.so: cannot open
shared object file: No such file or directory 

请使用以下软连接 

ln -s /usr/local/fdfs/lib/libfastcommon.so /usr/lib/libfastcommon.so 

ln -s /usr/local/fdfs/lib/libfastcommon.so /usr/lib64/libfastcommon.so 

ln -s /usr/local/fdfs/lib/libfdfsclient.so /usr/lib64/libfdfsclient.so 

ln -s /usr/local/fdfs/lib/libfdfsclient.so /usr/lib/libfdfsclient.so 

 

 

 

 

 

 

 

 

==========================fastDHT================================ 

【第一步:】安装 Berkley DB 

【1.】 tar -zxvf db-4.7.25.tar.gz 

进入 db-4.7.25/build_unix 

../dist/configure –prefix=/usr 

 

 

【第二步:】安装FastDHT 

mkdir -p /usr/local/fdht 

mkdir -p /usr/local/fdht/conf 

  1. tar -zxvf  FastDHT_v1.23.tar.gz 

进入 FastDHT_v1.23 

vim make.sh 

修改 

TARGET_PREFIX=/usr/local/fdht 

TARGET_CONF_PATH=/usr/local/fdht/conf 

 

 

if [ “$1” = “install” ]; then 

  cd .. 

  cp -f restart.sh $TARGET_PREFIX/bin 

  cp -f stop.sh $TARGET_PREFIX/bin 

 

 

  if [ “$uname” = “Linux” ]; then 

    if [ “$WITH_LINUX_SERVICE” = “1” ]; then 

      if [ ! -d $TARGET_CONF_PATH ]; then 

        mkdir -p $TARGET_CONF_PATH 

        cp -f conf/fdhtd.conf $TARGET_CONF_PATH 

        cp -f conf/fdht_servers.conf $TARGET_CONF_PATH 

        cp -f conf/fdht_client.conf $TARGET_CONF_PATH 

      fi 

 

 

      cp -f init.d/fdhtd /etc/rc.d/init.d/ 

      /sbin/chkconfig –add fdhtd 

    fi 

  fi 

fi 

 

 

【2.】 安装 

./make.sh 

—————————————————————————— 

如果出现 global.h:1八:1九: error: event.h: No such file or directory 

进入/home/softinstall/fastdfs/libevent-二.0.19-stable然后实行 

./configure –prefix=/usr 

make 

make install 

——————————————————————————— 

./make.sh install 

 

 

【3.】 配置fdht 

【3.1】 vim /usr/local/fdht/conf/fdhtd.conf 

port=11411 

bash_path=/home/softinstall/data/fastdht 

cache_size = 32MB 

store_sub_keys=true 

use_storage_id=true 

#include /usr/local/fdht/conf/fdht_servers.conf
(本行前有#代表张开,如若想关闭此选项,则应当为##开头) 

  

【3.2】 vim /usr/local/fdht/conf/fdht_server.conf 

group_count = 1 

group0 = 192.168.9.165:11411 

 

 

【3.3】 vim /usr/local/fdht/conf/fdht_client.conf 

keep_alive=1 (本选项事关 storaged.conf文件) 

base_path=/home/softinstall/data/fastdht 

#include /usr/local/fdht/conf/fdht_servers.conf 

 

 

【3.4】 配置FastDFS 的 storaged.conf文件 

vi storaged.conf (暗许地点: /usr/local/fdfs/conf/storaged.conf) 

check_file_duplicate=1 

本配置项解释:
是或不是检查评定上传文件已经存在。假诺已经存在,则不设有文件内容,建立三个索引链接以节省磁盘空间 

key_namespace=FastDFS 

本配置项解释: 当上个参数设定为1时 , 在法斯特DHT中的命名空间 

keep_alive=1 

本配置项解释: 长连接配置选项,假使为0则为短连接 一为长连接 

#include /usr/local/fdht/conf/fdht_servers.conf 

本配置项解释: 能够经过 #include filename 方式来加载 法斯特DHT servers
的安排 

  

【3.5】  

===========================总体运维流程====================================== 

    

   启动tracker    /usr/local/fdfs/bin/fdfs_trackerd
/usr/local/fdfs/conf/tracker.conf  

   停止tracker    /usr/local/fdfs/bin/stop.sh
/usr/local/fdfs/conf/tracker.conf  

 

 

   启动storage   /usr/local/fdfs/bin/fdfs_storaged
/usr/local/fdfs/conf/storage.conf  

   停止storage   /usr/local/fdfs/bin/stop.sh
/usr/local/fdfs/conf/storage.conf  

 

   启动nginx  
 /home/softinstall/nginx/nginx-fastdfs-install/sbin/nginx 

 

启动 

/usr/local/fdht/bin/fdhtd /usr/local/fdht/conf/fdhtd.conf 

停止 

/usr/local/fdht/bin/stop.sh  /usr/local/fdht/conf/fdhtd.conf 

 

测试 是或不是有错误: 

/usr/local/fdht/bin/fdht_test /usr/local/fdht/conf/fdht_client.conf 

================================================================= 

第一步:安装FastDFS 1.解压
FastDFS_v四.0七.tar.gz ==法斯特DFS 2. cd 法斯特DFS ==vim make.sh 修改以下内容
TABMWX伍GET_PREFIX=/usr/local/fdfs TARGET_CONF_PATH=…

发表评论

电子邮件地址不会被公开。 必填项已用*标注

网站地图xml地图
Copyright @ 2010-2019 美高梅手机版4858 版权所有