一、准备工作
1下载软件:http://sourceforge.net/projects/fastdfs/files/
2安装gcc。命令:yum install make cmake gcc gcc-c++
二、安装libfastcommon
1.下载 软件: https://github.com/happyfish100/libfastcommon
2.上传libfastcommon-master.zip 到 /home/lee 目录下
3. 进行解压libfastcommon-master.zip:
命令:unzip libfastcommon-master.zip -d /usr/local/fast/
4. 进入目录:cd /usr/local/fast/libfastcommon-master/
5. 进行编译和安装:
命令:./make.sh
命令:./make.sh install
如果报错
./make.sh:行99: perl: 未找到命令
./make.sh:行100: perl: 未找到命令
那执行:
yum -y install zlib zlib-devel pcre pcre-devel gcc gcc-c++ openssl openssl-devel libevent libevent-devel perl unzip net-tools wget
时间: 2024-11-02 13:31:22