加入收藏 | 设为首页 | 会员中心 | 我要投稿 莱芜站长网 (https://www.0634zz.com/)- 云连接、建站、智能边缘云、设备管理、大数据!
当前位置: 首页 > 综合聚焦 > Ubuntu > 正文

0安装FastDFS到ubuntu

发布时间:2023-12-14 11:16:16 所属栏目:Ubuntu 来源:DaWei
导读: 1所需软件

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

安装环境

VMware Workstation 12 Pro
ubuntu-16.04.1-desktop-amd64

网站相关

h

1所需软件 libfastcommon fastdfs libevent:以前4.x版本需要,现在已经不需要了 安装环境 VMware Workstation 12 Pro ubuntu-16.04.1-desktop-amd64 网站相关 https://github.com/happyfish100/fastdfs https://github.com/happyfish100 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中会被用到)

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

(编辑:莱芜站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章