依赖对应libfastcommon 1.0.38FastDFS 5.051 删除旧库rm -rf /usr/lib64/libfastcommon* rm -rf /usr/lib/libfastcommon* rm -rf /usr/include/fastcommon ldconfig确认ldconfig -p | grep fastcommon必须没有输出。配置环境yum install -y gcc gcc-c make git wget2 下载 libfastcommon 1.0.38cd /usr/local/src wget https://github.com/happyfish100/libfastcommon/archive/V1.0.38.tar.gz解压tar -zxvf V1.0.38.tar.gz cd libfastcommon-1.0.38编译./make.sh ./make.sh install ldconfig3 创建库软链接FastDFS 默认找/usr/libln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so很多教程都会做这一步否则编译会找不到库。4 下载 FastDFScd /usr/local/src wget https://github.com/happyfish100/fastdfs/archive/refs/tags/V5.05.tar.gz解压tar -zxvf V5.05.tar.gz cd fastdfs-5.05编译./make.sh ./make.sh install
FastDFS安装就得这么简单(一)
依赖对应libfastcommon 1.0.38FastDFS 5.051 删除旧库rm -rf /usr/lib64/libfastcommon* rm -rf /usr/lib/libfastcommon* rm -rf /usr/include/fastcommon ldconfig确认ldconfig -p | grep fastcommon必须没有输出。配置环境yum install -y gcc gcc-c make git wget2 下载 libfastcommon 1.0.38cd /usr/local/src wget https://github.com/happyfish100/libfastcommon/archive/V1.0.38.tar.gz解压tar -zxvf V1.0.38.tar.gz cd libfastcommon-1.0.38编译./make.sh ./make.sh install ldconfig3 创建库软链接FastDFS 默认找/usr/libln -s /usr/lib64/libfastcommon.so /usr/lib/libfastcommon.so ln -s /usr/lib64/libfastcommon.so /usr/local/lib/libfastcommon.so很多教程都会做这一步否则编译会找不到库。4 下载 FastDFScd /usr/local/src wget https://github.com/happyfish100/fastdfs/archive/refs/tags/V5.05.tar.gz解压tar -zxvf V5.05.tar.gz cd fastdfs-5.05编译./make.sh ./make.sh install