安装FastDFS
来源:互联网 发布:mac mini 2018 编辑:程序博客网 时间:2024/06/05 13:30
1.下载FastDFS
wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
wget http://jaist.dl.sourceforge.net/project/fastdfs/FastDFS%20Nginx%20Module%20Source%20Code/fastdfs-nginx-module_v1.16.tar.gz
wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gz
wget http://nginx.org/download/nginx-1.8.0.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
wget http://zlib.net/zlib-1.2.8.tar.gz
2.解压安装
libfastcommon安装:
cp V1.0.7.tar.gz /usr/local/
tar -zxvf V1.0.7.tar.gz
cd libfastcommon-1.0.7
./make.sh
./make.sh install
libfastcommon.so默认安装到了/usr/lib64/libfastcommon.so,而FastDFS主程序设置的lib目录是/usr/local/lib,所以设置软连接
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
安装FastDFS
(1)tar -zxvf V5.05.tar.gz -C /usr/local
cd /usr/local/fastdfs-5.05/
./make.sh
./make.sh install
cd /etc/fdfs
(2)配置文件设置:
cp tracker.conf.sample tracker.conf
cp storage.conf.sample storage.conf
cp client.conf.sample client.conf
详细设置见附件
tracker.conf配置中要修改的几个项:
bind_addr=127.0.0.1
port=22122
http.server_port=8080
storage.conf配置中要修改的几个项:
group_name=group1
bind_addr=127.0.0.1
port=23000
base_path=/oriental/fdfs
store_path0=/oriental/fdfs
tracker_server=127.0.0.1:22122
http.server_port=8888
(3)启动
启动tracker storage.conf
fdfs_trackerd /etc/fdfs/tracker.conf
fdfs_storaged /etc/fdfs/storage.conf
3.检验
/usr/bin/fdfs_test /etc/fdfs/client.conf upload benz.jpg
wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
wget http://jaist.dl.sourceforge.net/project/fastdfs/FastDFS%20Nginx%20Module%20Source%20Code/fastdfs-nginx-module_v1.16.tar.gz
wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gz
wget http://nginx.org/download/nginx-1.8.0.tar.gz
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.36.tar.gz
wget http://zlib.net/zlib-1.2.8.tar.gz
2.解压安装
libfastcommon安装:
cp V1.0.7.tar.gz /usr/local/
tar -zxvf V1.0.7.tar.gz
cd libfastcommon-1.0.7
./make.sh
./make.sh install
libfastcommon.so默认安装到了/usr/lib64/libfastcommon.so,而FastDFS主程序设置的lib目录是/usr/local/lib,所以设置软连接
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
安装FastDFS
(1)tar -zxvf V5.05.tar.gz -C /usr/local
cd /usr/local/fastdfs-5.05/
./make.sh
./make.sh install
cd /etc/fdfs
(2)配置文件设置:
cp tracker.conf.sample tracker.conf
cp storage.conf.sample storage.conf
cp client.conf.sample client.conf
详细设置见附件
tracker.conf配置中要修改的几个项:
bind_addr=127.0.0.1
port=22122
http.server_port=8080
storage.conf配置中要修改的几个项:
group_name=group1
bind_addr=127.0.0.1
port=23000
base_path=/oriental/fdfs
store_path0=/oriental/fdfs
tracker_server=127.0.0.1:22122
http.server_port=8888
(3)启动
启动tracker storage.conf
fdfs_trackerd /etc/fdfs/tracker.conf
fdfs_storaged /etc/fdfs/storage.conf
3.检验
/usr/bin/fdfs_test /etc/fdfs/client.conf upload benz.jpg
阅读全文
0 0
- FastDfs (四) Fastdfs安装
- 【FastDFS】FastDFS安装配置
- fastdfs安装
- 安装FastDFS
- fastdfs安装
- fastdfs安装
- FastDFS安装
- fastDFS安装
- fastDFS 安装
- fastDFS安装
- FastDFS安装
- fastdfs安装
- fastDFS安装
- 安装FastDFS
- 安装FastDfs
- fastdfs安装
- FastDFS安装
- 【fastDFS】Nginx+FastDFS module安装
- python系统管理之supervisor进程管理
- Mediacodec学习(EXOPlayer分析)
- Proj_170713_通讯录u
- angularJS商品添加数量加减
- Guava
- 安装FastDFS
- 浮动布局 VS 基于display:inline-block的列表布局
- 专访 | 今日头条李磊:程序员如何跻身AI大潮_应用如何落地
- @JsonProperty的使用
- 关键字static的用途
- Android framework 应用安装流程 分析 PackageManagerService(Android5.1)
- [POJ3262]Protecting the Flowers
- nginx File not found 错误
- EXAM 7.13