IT技术网www.itjs.cn

当前位置:首页 > 操作系统 > Linux > Ubuntu > FastDFS4和Ubuntu12安装及部署步骤

FastDFS4和Ubuntu12安装及部署步骤

发布时间:2005-11-01 15:28 来源:未知

FastDFS4 + Ubuntu12安装及部署

1、 安装libevent

假如需要使用http进行下载,需要安装这个组件。

2、 安装fastdfs

3、 配置fastdfs

4、 安装nginx

问题4.1:安装nginx启动后访问原先资源URL出现404错误

FastDFS4和Ubuntu12安装及部署步骤

sudo gedit /nginx安装目录/conf/nginx.conf

在nginx.conf添加“user root;”并保存,重启nginx服务后OK

复制代码代码如下:

5、 开机启动

6、 测试上传

7、 在c#中上传文件

下载FastDFS .net Client

https://code.google.com/p/fastdfs/downloads/detail name=FastDFS_Client_Dotnet.rar&can=2&q=

复制代码代码如下:

#step 1. download FastDFS source package and unpack it

tar xzf FastDFS_v1.x.tar.gz

#for example:

tar xzf FastDFS_v1.11.tar.gz

#step 2. enter the FastDFS dir

cd FastDFS

#step 3. make all

./make.sh

#step 4. make install

./make.sh install

#step 5. edit/modify the config file of tracker and storage

#step 6. run server programs

#start the tracker server:

/usr/local/bin/fdfs_trackerd <tracker_conf_filename>

#start the storage server:

/usr/local/bin/fdfs_storaged <storage_conf_filename>

#step 7. run test program

#run the client test program:

/usr/local/bin/fdfs_test <storage_conf_filename> <operation>

#for example, upload a file:

/usr/local/bin/fdfs_test conf/storage.conf upload /usr/include/stdlib.h

#step 8. run monitor program

#run the monitor program:

/usr/local/bin/fdfs_monitor <storage_conf_filename>