0安装FastDFS到ubuntu

1所需软件

  • libfastcommon
  • fastdfs
  • libevent:以前4.x版本需要,现在已经不需要了

安装环境

  • VMware® Workstation 12 Pro
  • ubuntu-16.04.1-desktop-amd64

网站相关

  1. https://github.com/happyfish100/fastdfs
  2. https://github.com/happyfish100
  3. https://sourceforge.net/projects/fastdfs/

2安装

  • 准备工作
>>cd /home/user1
>>mkdir work
>>cd work
>>sudo apt-get update   更新ubuntu的资源库
  • 安装git和libfastcommon
>>sudo apt-get install git
  >>git clone https://github.com/happyfish100/libfastcommon.git
  >>./make.sh
  >>./make.sh install
  >>ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so
  • 安装FastDFS 从sourceforge下载到FastDFS_v5.05.tar.gz复制到work文件夹。
>> ./make.sh 
>> ./make.sh install

3配置和启动

编译安装fastdfs后,在FastDFS下有三个文件

(注意:需要在user1@ubuntu:/home/yuqing/fastdfs。在home下建立yuqing文件夹,再内部再建立fastdfs文件夹。这两个路径在tracker.conf和storage.conf中会被用到)

  1. tracker
    • 进入tracker文件夹。tracker的配置文件是conf下的tracker.conf。执行>>$ ./fdfs_trackerd ../conf/tracker.conf启动tracker。
  2. storage
    • 进入storage文件夹。storage的配置问价是conf下的storage.conf.进入后找到tracker_server配置ip为自己主机的ip。然后执行 $ ./fdfs_storaged ../conf/storage.conf
  3. client
    • 测试也是进入client。配置文件是conf下的client.conf。需要配置ip。 ./fdfs_upload_file ../conf/client.conf /home/user1/work/FastDFS_v5.05.tar.gz

相关文章

目录前言一、创建Hadoop用户二、更新apt和安装Vim编辑器三、...
原文连接:https://www.cnblogs.com/yasmi/p/5192694.html ...
电脑重启后,打开VirtualBox,发现一直用的虚拟机莫名的消失...
参见:https://blog.csdn.net/weixin_38883338/article/deta...
Ubuntu 18.04 LTS 已切换到 Netplan 来配置网络接口。Netpla...
介绍每个 Web 服务都可以通过特定的 URL 在 Internet 上访问...