首页 技术 正文
技术 2022年11月15日
0 收藏 554 点赞 4,040 浏览 2207 个字

tracker server and client:192.168.1.42

storage server:192.168.1.46

storage server:192.168.1.53

安装:

安装依赖包libfastcommon

安装fastDFS

需要关闭iptables、selinux

yum -y install epel-release

yum -y install git

下载地址:

git clone https://github.com/happyfish100/fastdfs.git

git clone https://github.com/happyfish100/libfastcommon.git

git clone https://github.com/happyfish100/fastdfs-nginx-module.git

tracker server配置:

[root@localhost ~]# cd libfastcommon-1.0.36
[root@localhost libfastcommon-1.0.36]# ./make.sh 
[root@localhost libfastcommon-1.0.36]# ./make.sh install
[root@localhost libfastcommon-1.0.36]#

[root@localhost ~]# cd fastdfs-5.0.10
[root@localhost fastdfs-5.0.10]# ./make.sh 
[root@localhost fastdfs-5.0.10]# ./make.sh install

cd /etc/fdfs/cp tracker.conf.sample tracker.confvim  tracker.conf修改配置文件disabled=false        #启用配置文件port=22122          #设置tracker的端口号base_path=/data/fastdfs/trackerd   #设置tracker的数据文件和日志目录(需预先创建)http.server_port=18080     #设置http端口号 cp client.conf.sample  client.confvim client.confbase_path=/data/fastdfs/trackerdtracker_server=192.168.1.42:22122 启动:mkdir -p /data/fastdfs/trackerd/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart设置开机启动echo '/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart' >> /etc/rc.d/rc.local  storage server配置:

[root@localhost ~]# cd libfastcommon-1.0.36
[root@localhost libfastcommon-1.0.36]# ./make.sh 
[root@localhost libfastcommon-1.0.36]# ./make.sh install
[root@localhost libfastcommon-1.0.36]#

[root@localhost ~]# cd fastdfs-5.0.10
[root@localhost fastdfs-5.0.10]# ./make.sh 
[root@localhost fastdfs-5.0.10]# ./make.sh install

cd /etc/fdfs/cp tracker.conf.sample tracker.confvim  tracker.conf修改配置文件disabled=false        #启用配置文件port=23000    base_path=/data/fastdfs/storagestore_path0=/data/fastdfs/storagehttp.server_port=18888     #设置http端口号tracker_server=192.168.1.42:22122 启动:mkdir -p /data/fastdfs/trackerd/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restartecho ‘/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart’ >> /etc/rc.d/rc.local  storage server测试连接性:/usr/bin/fdfs_monitor /etc/fdfs/storage.confFastdfs 部署干货

 Fastdfs 部署干货

Fastdfs 部署干货

 tracker server测试上传下载: fdfs_upload_file /etc/fdfs/client.conf pom.xml      —–上传fdfs_download_file /etc/fdfs/client.conf          —–下载Fastdfs 部署干货

增加nginx upstream:

yum -y install epel-release

yum -y install nginx

位于http{}

Fastdfs 部署干货

 very good,晚上吃点好的去,啦啦啦啦!!!  

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:8,917
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,443
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,255
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,069
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,700
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,741