问题一:无法找到libevent-1.4.so.2库
[root@localhost conf]# /usr/local/bin/fdfs_trackerd/home/yuqing/FastDFS/conf/tracker.conf
/usr/local/bin/fdfs_trackerd: error while loading shared libraries: libevent-1.4.so.2:cannot open shared object file: No such file or directory
原因是系统debug的路径中没有我们实际的动态库的路径
解决步骤:
1. 确定已经安装了libevent
2. find / -name libevent-1.4.so.2
找到库文件实际存在的路径:/usr/lib/libevent-1.4.so.2
3. 在DEBUG日志中查看系统到底是到哪里去找库文件而没有找到
LD_DEBUG=libs/usr/local/bin/fdfs_trackerd –v
查出来是 trying file=/usr/lib64/libevent-1.4.so.2
4. 做一个软链接
ln –s /usr/lib/libevent-1.4.so.2 /usr/lib64/libevent-1.4.so.2
搞定。
问题二:启动Storaged的时候不成功,日志报:No route to host
解决方法是关闭两端的防火墙。
问题三: 文件上传后存放的位置和名称:
如上传test.txt到storage上,存放在/home/yuqing/FastDFS/data/00/00/CsBAaE_tXv6txIgKAAAAEDYmZBM100_big.txt