fastdfs安装配置 安装过程中执行.make.sh 报错

FastDFS安装配置
FastDFS安装配置
第一步:安装FastDFS&
1.解压 FastDFS_v4.07.tar.gz ==&FastDFS&
2. cd FastDFS ==&vim make.sh&
修改以下内容&
TARGET_PREFIX=/usr/local/fdfs&
TARGET_CONF_PATH=/usr/local/fdfs/conf&
mkdir -p /usr/local/fdfs&
mkdir -p /usr/local/fdfs/conf&
if [ &$uname& = &Linux& ]; then&
& & if [ &$WITH_LINUX_SERVICE& = &1& ]; then&
& & & if [ ! -d $TARGET_CONF_PATH ]; then&
& & & & mkdir -p $TARGET_CONF_PATH&
& & & & cp -f conf/tracker.conf $TARGET_CONF_PATH&
& & & & cp -f conf/storage.conf $TARGET_CONF_PATH&
& & & & cp -f conf/client.conf $TARGET_CONF_PATH&
& & & & cp -f conf/http.conf $TARGET_CONF_PATH&
& & & & cp -f conf/mime.types $TARGET_CONF_PATH&
& & & cp -f init.d/fdfs_trackerd /etc/rc.d/init.d/&
& & & cp -f init.d/fdfs_storaged /etc/rc.d/init.d/&
& & & /sbin/chkconfig --add fdfs_trackerd&
& & & /sbin/chkconfig --add fdfs_storaged&
第二步:安装libevent-2.0.19-stable.tar.gz&
1.解压 libevent-2.0.19-stable.tar.gz==&libevent-2.0.19-stable&
2.进入libevent-2.0.19-stable 安装&
./configure --prefix=/usr/local/libevent&
make install&
3. 添加软连接&
ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5&
ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5&
ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /lib64/libevent-2.0.so.5&
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&
ln -s /usr/local/libevent/lib/libevent-2.0.so.5 /usr/local/lib/libevent-2.0.so.5&
第三步:安装FastDFS&
./make.sh C_INCLUDE_PATH=/usr/local/libevent/include LIBRARY_PATH=/usr/local/libevent/lib&
./make.sh install&
第四步:如果/usr/local/fastdfs/conf没有fdfs_trackerd和fdfs_storaged这两个文件,就从 /FastDFS/tracker 和FastDFS/storage/目录下复制过去&
第五步:修改配置&
mkdir -p /home/softinstall/data/tracker&
1. 修改 tracker.conf&
base_path=/home/softinstall/data/tracker&
bind_addr=192.168.9.169&
1.1 修改storage_ids.conf&
100001 & group1 &192.168.9.169&
2. 启动tracker&
./fdfs_trackerd ../conf/tracker.conf &
查看22122端口是否启动起来&
第六步:配置storage&
mkdir -p /home/softinstall/data/store&
mkdir -p /home/softinstall/data/store/store0&
mkdir -p /home/softinstall/data/store/store1&
mkdir -p /home/softinstall/data/store/store2&
1.修改storage.conf&
base_path=/home/softinstall/data/store&
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&
tracker_server=192.168.9.169:22122&
#限6*6=36个目录 默认256*256&
subdir_count_per_path=6&
2. 启动storage&
./fdfs_storaged ../conf/storage.conf &
查看23000端口是否启动&
第七步:安装nginx+fastdfs模块&
1. 安装pcre-8.32 &
进入pcre-8.32&
./configure&
make install&
安装如果有问题缺省某些包,可以执行:&
yum groupinstall &Development Tools& &
第八步:解压fastdfs-nginx-module_v1.15.tar.gz和 nginx-1.4.2.tar.gz&
1.进入 fastdfs-nginx-module_v1.15/src&
vim fastdfs-nginx-module_v1.15/src/config&
修改成以下内容&
ngx_addon_name=ngx_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\&'&&
进入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/&
ngx_fastdfs_&
location /M01 {&
root /home/softinstall/data/store/store1/&
ngx_fastdfs_&
location /M02 {&
root /home/softinstall/data/store/store2/&
ngx_fastdfs_&
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&
5. 启动nginx&
进入 /home/softinstall/nginx/nginx-fastdfs-install/sbin&
如果启动找不到&
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&
& 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&
& & & cp -f init.d/fdhtd /etc/rc.d/init.d/&
& & & /sbin/chkconfig --add fdhtd&
【2.】 安装&
./make.sh&
------------------------------------------------------------------------------&
如果出现 global.h:18:19: error: event.h: No such file or directory&
进入/home/softinstall/fastdfs/libevent-2.0.19-stable然后执行&
./configure --prefix=/usr&
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时 , 在FastDHT中的命名空间&
keep_alive=1&
本配置项解释: 长连接配置选项,如果为0则为短连接 1为长连接&
#include /usr/local/fdht/conf/fdht_servers.conf&
本配置项解释: 可以通过 #include filename 方式来加载 FastDHT servers 的配置&
===========================总体启动流程======================================&
& &启动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&
=================================================================&
顶一下(0) 踩一下(0)
热门标签:Ubuntu下部署FastDFS 5.05_服务器_MHZG
Ubuntu下部署FastDFS 5.05
在项目上线后。发现大量的图片请求导致服务器无法应对的时候,看到了FastDFS。FastDFS是一个开源的分布式文件存储方案。只能运行于Linux系统中。而我们选择
在项目上线后。发现大量的图片请求导致服务器无法应对的时候,看到了FastDFS。FastDFS是一个开源的分布式文件存储方案。只能运行于Linux系统中。而我们选择的Linux系统是Ubuntu,版本用的是14.04。FastDFS的版本为:5.05FastDFS实际上还是文件形式管理,可以预见大量的小文件还是会出现问题。所以可能更好的解决方案是淘宝TFS。但FastDFS已经远远满足需求了。所以还是选择了FastDFS。不过FastDFS在google code上早就停止了更新,查了N久,才在上找到了最新的版本。最新版本可以在。当前最新版本为5.05。更新于。一、安装Ubuntu。我在虚拟机上安装的。安装的是桌面版。唯一需要注意的地方是。安装好桌面版之后。可能无法找到终端(命令行)。可以在左侧启动器中找到“搜索您的电脑和在线资源”中搜索Terminal。然后将其固定在启动器中。二、安装FastDFS5.05。FastDFS4.x之前的版本是依赖libevent。现在不需要了。只需要libfastcommon。安装libfastcommon。git clone /happyfish100/libfastcommon.git
cd libfastcommon/
./make.sh install如运行git clone 提示程序“git”尚未安装。则可以使用以下命令安装:sudo apt-get install git然后开始安装libfastcommon如果运行./make.sh install 提示无法创建目录/usr/lib64:权限不够。可以使用图形界面创建目录或者切换的root用户。然后再运行./make.sh install确认没有错误后。这时需要设置环境变量或创建软链接(注意:64位系统会将libfastcommon复制到/usr/lib64下)。export LD_LIBRARY_PATH=/usr/lib64/
ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so下载并安装FastDFS下载FastDFS后,解压到主文件夹中。然后返回终端。运行:cd FastDFS/
./make.sh install如果遇到权限不足而无法创建目录。可切换到root用户,进行安装。安装完成后,默认会安装到/usr/lib中。并在/etc/fdfs中添加三个配置文件。修改配置文件首先将三个文件的名字去掉sample,暂时只修改以下几点,先让fastdfs跑起来,其余参数调优的时候再考虑。tracker.conf 中修改base_path=/usr/fastdfs #用于存放日志。storage.conf 中修改base_path=/usr/fastdfs-storaged #用于存放日志。
store_path0=/usr/fastdfs0 #存放数据,若不设置默认为前面那个。
tracker_server=192.168.29.132:22122 #指定tracker服务器地址。client.conf 中同样要修改base_path=/usr/fastdfs #用于存放日志。
tracker_server=192.168.29.132:22122 #指定tracker服务器地址。启动tracker和storage/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf这里需要注意的是。运行启动命令之后,有个错误提示/usr/bin/fdfs_tracked:error while loading sharedlibraries:libfastcommon.so:cannot open shared object file:Nosuch file ordirectory。当时不了解情况。百度了一下之后。意思是在Linux下执行某些外部程序的时候可能会提示找不到共享库的错误。然后看错误提示。应该是libfastcommon.so的问题。这里直接执行ldconfig命令。这个问题得以解决。重新执行启动命令。又提示ERROR – file:process_ctrl.c,line:237,”/usr/fastdfs” can’tbe accessed,error info:No such file or directory。看字面意思是没有找到文件或目录。这应该是我们修改默认设置的时候。指定了我们自己的目录。但是这些目录并没有创建造成的。然后使用mkdir命令创建相应的目录。继续执行启动命令。顺利启动成功进程检查命令:ps -ef |grep fdfs 然后得到以下内容:这表示已经启动成功了,若有错误,可在/usr/fastdfs目录下检查日志。上传及删除测试使用自带的fdfs_test来测试,使用命令如下:/etc/fdfs/client.conf upload /home/mrt/1.png然后得到如下内容测试删除文件,使用命令为:fdfs_delete_file值得关注的是,上传完成后,这里会生成两个文件,这是fastdfs的主/从文件特性。example file url是不能在浏览器中直接打开的,除非配合nginx使用,这个以后再说。删除文件需要完整的group_name和remote_filename。
第一时间获取行业新鲜资讯和编程技术,请在微信公众账号中搜索「mhzg」,或用手机扫描左方二维码,即可获得mhzg每日精华内容推送。mhzg.net是一个着重于科技资讯、电商资讯、编程技术的交流平台。核心关注对象是编程技术中的extjs教程,extjs开发等编程语言。
3回发或回调参数无效。在配置中使用
Copyright (C) mhzg ()FastDFS安装使用_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
评价文档:
FastDFS安装使用
阅读已结束,如果下载本文需要使用
想免费下载本文?
你可能喜欢unbuntu安装FastDFS遇到的问题以及配置
编辑:www.fx114.net
本篇文章主要介绍了"unbuntu安装FastDFS遇到的问题以及配置",主要涉及到unbuntu安装FastDFS遇到的问题以及配置方面的内容,对于unbuntu安装FastDFS遇到的问题以及配置感兴趣的同学可以参考一下。
fastdfs与nginx整合
1)执行下面编译设置
./configure --prefix=/usr/local/nginx&--conf-path=/usr/local/nginx/nginx.conf&--add-module=/usr/local/fastdfs-nginx-module/src&
(说明:很多编译安装的说明都没有设置conf-path,但是我没有设置的话,在make install 阶段会出现
cp: `conf/koi-win' and `/usr/local/nginx/conf/koi-win' are the same file错误)
首先是准备工作:需要我们下载两个文件,
FastDFS_v3.06.tar.gz
libevent-2.0.17-stable.tar.gz
这里就不赘述他们的安装过程了,可是注意一点儿就是如果有需要HTTP连接的需要在make.sh中将#WITH_HTTPD=1改成WITH_HTTPD=1,然后在安装,当我在安装FastDFS时报错了:
经过在网上的查找得知:其实是不同的系统中pthread位置不一样,做法就是找到你的系统中所需要的libpthread.so文件位置,直接find就可以找到了;
接着直接在make.sh中找到这句话然后替换掉就可以了:
然后在进行编译就OK了。
./make.sh install
ln: failed to create symbolic link ‘/usr/lib64/libfastcommon.so’: No such file or directory
ln: failed to create symbolic link ‘/usr/lib64/libfdfsclient.so’: No such file or directory
修改文件,client/fdfs_link_library.sh.in
ln -fs $TARGET_LIB/libfastcommon.so.1 /usr/lib64/libfastcommon.so
ln -fs $TARGET_LIB/libfdfsclient.so.1 /usr/lib64/libfdfsclient.so
ln -fs $TARGET_LIB/libfastcommon.so.1 /usr/lib/libfastcommon.so
ln -fs $TARGET_LIB/libfdfsclient.so.1 /usr/lib/libfdfsclient.so
3. & &./make.sh: line 187: /sbin/chkconfig: No such file or directory
解决:安装chkconfig,&apt-get install chkconfig
4.cp: cannot create regular file `/etc/rc.d/init.d/': No such file or directory
在make.sh中将`/etc/rc.d/init.d/': 改为‘/etc/init.d/’
tracker.conf 配置文件分析:
#配置tracker.conf这个配置文件是否生效,因为在启动fastdfs服务端进程时需要指定配置文件,所以需要使次配置文件生效。false是生效,true是屏蔽。
disabled=false
#程序的监听地址,如果不设定则监听所有地址
bind_addr=
#tracker监听的端口
port=22122
#链接超时设定
connect_timeout=30
#tracker在通过网络发送接收数据的超时时间
network_timeout=60
#数据和日志的存放地点
base_path=/opt/fdfs
#服务所支持的最大链接数
max_connections=256
#工作线程数一般为cpu个数
work_threads=4
#在存储文件时选择group的策略,0:轮训策略 1:指定某一个组 2:负载均衡,选择空闲空间最大的group
store_lookup=2
#如果上面的store_lookup选择了1,则这里需要指定一个group
#store_group=group2
#在group中的哪台storage做主storage,当一个文件上传到主storage后,就由这台机器同步文件到group内的其他storage上,0:轮训策略 1:根据ip地址排序,第一个 2:根据优先级排序,第一个
store_server=0
#选择那个storage作为主下载服务器,0:轮训策略 1:主上传storage作为主下载服务器
download_server=0
#选择文件上传到storage中的哪个(目录/挂载点),storage可以有多个存放文件的base path 0:轮训策略 2:负载均衡,选择空闲空间最大的
store_path=0
#系统预留空间,当一个group中的任何storage的剩余空间小于定义的值,整个group就不能上传文件了
reserved_storage_space = 4GB
#日志信息级别
log_level=info
#进程以那个用户/用户组运行,不指定默认是当前用户
run_by_group=
run_by_user=
#允许那些机器连接tracker默认是所有机器
allow_hosts=*
#设置日志信息刷新到disk的频率,默认10s
sync_log_buff_interval = 10
#检测storage服务器的间隔时间,storage定期主动向tracker发送心跳,如果在指定的时间没收到信号,tracker人为storage故障,默认120s
check_active_interval = 120
#线程栈的大小,最小64K
thread_stack_size = 64KB
#storage的ip改变后服务端是否自动调整,storage进程重启时才自动调整
storage_ip_changed_auto_adjust = true
#storage之间同步文件的最大延迟,默认1天
storage_sync_file_max_delay = 86400
#同步一个文件所花费的最大时间
storage_sync_file_max_time = 300
#是否用一个trunk文件存储多个小文件
use_trunk_file = false
#最小的solt大小,应该小于4KB,默认256bytes
slot_min_size = 256
#最大的solt大小,如果上传的文件小于默认值,则上传文件被放入trunk文件中
slot_max_size = 16MB
#trunk文件的默认大小,应该大于4M
trunk_file_size = 64MB
#http服务是否生效,默认不生效
http.disabled=false
#http服务端口
http.server_port=8080
#检测storage上http服务的时间间隔,&=0表示不检测
http.check_alive_interval=30
#检测storage上http服务时所用请求的类型,tcp只检测是否可以连接,http必须返回200
http.check_alive_type=tcp
#通过url检测storage http服务状态
http.check_alive_uri=/status.html
#if need find content type from file extension name
http.need_find_content_type=true
#用include包含进http的其他设置
##include http.conf
netstat -tupln|grep tracker
#可以看到如下:
0.0.0.0:22122
18559/fdfs_trackerd
storage.conf配置文件分析:
#同tracker.conf
disabled=false
#这个storage服务器属于那个group
group_name=group1
#同tracker.conf
bind_addr=
#连接其他服务器时是否绑定地址,bind_addr配置时本参数才有效
client_bind=true
#同tracker.conf
port=23000
connect_timeout=30
network_timeout=60
#主动向tracker发送心跳检测的时间间隔
heart_beat_interval=30
#主动向tracker发送磁盘使用率的时间间隔
stat_report_interval=60
#同tracker.conf
base_path=/opt/fdfs
max_connections=256
#接收/发送数据的buff大小,必须大于8KB
buff_size = 256KB
#同tracker.conf
work_threads=4
#磁盘IO是否读写分离
disk_rw_separated = true
#是否直接读写文件,默认关闭
disk_rw_direct = false
#混合读写时的读写线程数
disk_reader_threads = 1
disk_writer_threads = 1
#同步文件时如果binlog没有要同步的文件,则延迟多少毫秒后重新读取,0表示不延迟
sync_wait_msec=50
#同步完一个文件后间隔多少毫秒同步下一个文件,0表示不休息直接同步
sync_interval=0
#表示这段时间内同步文件
sync_start_time=00:00
sync_end_time=23:59
#同步完多少文件后写mark标记
write_mark_file_freq=500
#storage在存储文件时支持多路径,默认只设置一个
store_path_count=1
#配置多个store_path路径,从0开始,如果store_path0不存在,则base_path必须存在
store_path0=/opt/fdfs
#store_path1=/opt/fastdfs2
#subdir_count
* subdir_count个目录会在store_path下创建,采用两级存储
subdir_count_per_path=256
#设置tracker_server
tracker_server=x.x.x.x:22122
#同tracker.conf
log_level=info
run_by_group=
run_by_user=
allow_hosts=*
#文件在数据目录下的存放策略,0:轮训 1:随机
file_distribute_path_mode=0
#当问及是轮训存放时,一个目录下可存放的文件数目
file_distribute_rotate_count=100
#写入多少字节后就开始同步,0表示不同步
fsync_after_written_bytes=0
#刷新日志信息到disk的间隔
sync_log_buff_interval=10
#同步storage的状态信息到disk的间隔
sync_stat_file_interval=300
#线程栈大小
thread_stack_size=512KB
#设置文件上传服务器的优先级,值越小越高
upload_priority=10
#是否检测文件重复存在,1:检测 0:不检测
check_file_duplicate=0
#当check_file_duplicate设置为1时,次值必须设置
key_namespace=FastDFS
#与FastDHT建立连接的方式 0:短连接 1:长连接
keep_alive=0
#同tracker.conf
http.disabled=false
http.domain_name=
http.server_port=8888
http.trunk_size=256KB
http.need_find_content_type=true
##include http.conf
启动storage进程
fdfs_storaged /etc/fdfs/storage.conf
(必须先开启tracker服务器)
netstat -tupln | grep storage
#结果如下:
0 0.0.0.0:23000
17138/fdfs_storaged
client.conf配置文件分析:
#同tracker.conf
connect_timeout=30
network_timeout=60
base_path=/opt/fdfs
tracker_server=x.x.x.x:22122
log_level=info
http.tracker_server_port=8080
测试上传文件:
fdfs_upload_file /etc/fdfs/client.conf client.conf
#返回如下字符串
group1/M00/00/00/CgEGflAqaFW4hENaAAACo8wrbSE16.conf
启动tracker进程
fdfs_trackerd /etc/fdfs/tracker.conf(安装目录下的配置文件路径)
本文标题:
本页链接:}

我要回帖

更多关于 fastdfs安装 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信