ubuntu安装fastdfds
Posted ivy-blogs
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu安装fastdfds相关的知识,希望对你有一定的参考价值。
ubuntu安装fastdfds
- 安装fastdfds依赖
- cd /user/local
- wget https://github.com/happyfish100/libfastcommon/archive/V1.0.7.tar.gz
- tar -zxvf V1.0.7.tar.gz
- 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
- 安装fastdfds
- cd /user/local
- wget https://github.com/happyfish100/fastdfs/archive/V5.05.tar.gz
- tar -zxvf V5.05.tar.gz
- cd fastdfs-5.05
- ./make.sh
- ./make.sh install
- 创建链接
- ln -s /usr/bin/fdfs_trackerd /usr/local/bin
- ln -s /usr/bin/fdfs_storaged /usr/local/bin
- ln -s /usr/bin/stop.sh /usr/local/bin
- ln -s /usr/bin/restart.sh /usr/local/bin
- 修改配置文件
- 修改tracker.conf
- cp /etc/fdfs/racker.conf.sample /etc/fdfs/racker.conf
- vim /etc/fdfs/racker.conf
- base_path=/home/fastdfs/tracker
- base_path=/home/fastdfs/tracker
- 修改storage.conf
- cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf
- vim /etc/fdfs/storage.conf
- group_name="<tracker.conf里面的group_name>"
- base_path=/home/fastdfs/storage
- store_path0=/home/fastdfs/save
- tracker_server="你的tracker的IP地址和端口号"
- group_name="<tracker.conf里面的group_name>"
- 修改client.conf
- cp /etc/fdfs/client.conf.sample /etc/fdfs/client.conf
- vim /etc/fdfs/client.conf
- base_path=/home/fastdfs/save
- tracker_server="你的tracker的IP地址和端口号"
- base_path=/home/fastdfs/save
- 创建base_path
- cd /home
- mkdir fdfs
- cd fdfs
- mkdir storage
- mkdir tracker
- mkdir save
- 修改tracker.conf
- 启动tracker和storage
- /usr/local/bin/fdfs_storage /etc/fdfs/storage.conf
- /usr/local/bin/fdfs_tracker /etc/fdfs/tracker.conf
- 上传文件测试
- fdfs_upload_file /etc/fdfs/client.conf 文件路径
- fdfs_upload_file /etc/fdfs/client.conf 文件路径
以上是关于ubuntu安装fastdfds的主要内容,如果未能解决你的问题,请参考以下文章