centos8安装fastdfs6.06集群方式一之:软件下载与安装

一,查看本地centos的版本

[root@localhost lib]# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)

说明:架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest

对应的源码可以访问这里获取: https://github.com/liuhongdi/

说明:作者:刘宏缔 邮箱: 371125307@qq.com

说明:centos8安装fastdfs6.06集群方式二之:tracker的安装/配置/运行

地址: https://www.cnblogs.com/architectforest/p/12389095.html

centos8安装fastdfs6.06集群方式三之:storage的安装/配置/运行

地址: https://www.cnblogs.com/architectforest/p/12389154.html

二,结构规划

      2台tracker
4台storage分两个group
group1: 2台storage
group2: 2台storage 共6台机器

每台的IP地址:

两台tracker:        tracker1: 172.17.0.2
tracker2: 172.17.0.3 四台storage: storage1: 172.17.0.4 group1
storage2: 172.17.0.5 group1
storage3: 172.17.0.6 group2
storage4: 172.17.0.7 group2

说明:每台机器的os都用centos8

[root@6351748e4916 /]# cat /etc/redhat-release
CentOS Linux release 8.1.1911 (Core)

三,每台机器上下载fastdfs,此步骤在每台机器上都相同

1,fastdfs的官方地址

https://github.com/happyfish100

2,说明:当前版本:共3个子模块

fastdfs v6.06
libfastcommon v1.0.43
fastdfs-nginx-module v 1.22

3,下载

[root@localhost source]# wget https://github.com/happyfish100/fastdfs/archive/V6.06.tar.gz
[root@localhost source]# wget https://github.com/happyfish100/fastdfs-nginx-module/archive/V1.22.tar.gz
[root@localhost source]# wget https://github.com/happyfish100/libfastcommon/archive/V1.0.43.tar.gz

四,每台机器上安装fastdfs所需的程序包,此步骤在每台机器上都相同

[root@localhost dest]# yum install gcc gcc-c++
[root@localhost dest]# yum install libtool zlib zlib-devel openssl openssl-devel
[root@localhost dest]# yum -y install pcre pcre-devel libevent libevent-devel perl unzip net-tools wget

说明:在编译安装时会用到这些包,避免编译时出现报错

五,每台机器上安装libfastcommon,此步骤在每台机器上都相同

1,解压libfastcommon的压缩包

[root@localhost source]# tar -zxvf V1.0.43.tar.gz

2, 编译并安装

[root@localhost source]# cd libfastcommon-1.0.43/
[root@localhost libfastcommon-1.0.43]# ./make.sh && ./make.sh install

3,检查执行的结果,看安装是否成功:

[root@localhost libfastcommon-1.0.43]# ls /usr/lib64|grep libfastcommon
libfastcommon.so

[root@localhost libfastcommon-1.0.43]# ls /usr/lib|grep libfastcommon
libfastcommon.so

说明:如果能看到libfastcommon.so,说明安装成功

六,每台机器上安装fastdfs,此步骤在每台机器上都相同

1,解压fastdfs

[root@localhost source]# tar -zxvf V6.06.tar.gz

2,安装fastdfs

[root@localhost source]# cd fastdfs-6.06/
[root@localhost fastdfs-6.06]# ./make.sh && ./make.sh install

3,检查fastdfs是否安装成功?

[root@localhost fastdfs-6.06]# ls /usr/bin|grep fdfs
fdfs_appender_test
fdfs_appender_test1
fdfs_append_file
fdfs_crc32
fdfs_delete_file
fdfs_download_file
fdfs_file_info
fdfs_monitor
fdfs_regenerate_filename
fdfs_storaged
fdfs_test
fdfs_test1
fdfs_trackerd
fdfs_upload_appender
fdfs_upload_file
上一篇:Navicat for SQL Server(SQLServer数据库管理)


下一篇:最短路之——弗洛伊德算法(floyd)