深入解析:centos7 安装指定版本的fastfds
CentO‘S安装部署FastDFS(编译安装)_fastdfs编译-CSDN博客
注意:吉林人才网使用的fdfs版本为5.08
上传fastdfs-5.08.tar.gz和libfastcommon-1.0.35.tar.gz到root用户路径并解压
tar -xzvf libfastcommon-1.0.35.tar.gz
cd libfastcommon-1.0.35
./make.sh && ./make.sh install
tar -xzvf fastdfs-5.08.tar.gz
cd fastdfs-5.08
./make.sh && ./make.sh install
然后上传备份的配置文件client.conf、storage.conf、tracker.conf到/etc/fdfs/,并将备份的fastdfs数据上传至指定路径/app/fastdfs/下

启动fdfs
[root@db fastdfs-5.08]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[root@db fastdfs-5.08]# /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
卸载fdfs6.12.4,安装5.08日志:
┌──────────────────────────────────────────────────────────────────────┐
│ • MobaXterm Personal Edition v24.2 • │
│ (SSH client, X server and network tools) │
│ │
│ ⮞ SSH session to root@172.26.5.7 │
│ • Direct SSH : ✓ │
│ • SSH compression : ✓ │
│ • SSH-browser : ✓ │
│ • X11-forwarding : ✓ (remote display is forwarded through SSH) │
│ │
│ ⮞ For more info, ctrl+click on help or visit our website. │
└──────────────────────────────────────────────────────────────────────┘
Last login: Thu Jul 17 16:46:24 2025 from 172.26.5.28
[root@db ~]# su - oracle
上一次登录:四 7月 17 17:01:59 CST 2025pts/0 上
[oracle@db ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jul 18 08:38:09 2025
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORACLE instance started.
Total System Global Area 1068937216 bytes
Fixed Size 2220200 bytes
Variable Size 306188120 bytes
Database Buffers 754974720 bytes
Redo Buffers 5554176 bytes
Database mounted.
Database opened.
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@db ~]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 18-JUL-2025 08:38:44
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wai t...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Log messages written to /home/oracle/app/oracle/diag/tnslsnr/db/listener/alert/l og.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db.jlrc)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 18-JUL-2025 08:38:45
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /home/oracle/app/oracle/diag/tnslsnr/db/listener/alert /log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db.jlrc)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@db ~]$
[oracle@db ~]$
[oracle@db ~]$
[oracle@db ~]$ exit
logout
[root@db ~]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11211 -c 10240 –P /usr/local/memcached/memcached.pid
[root@db ~]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /usr/local/memcached/memcached.pid
[root@db ~]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11711 -c 10240 –P /usr/local/memcached/memcached.pid
[root@db ~]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[root@db ~]# /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
[root@db ~]# pwd
/root
[root@db ~]# ls
anaconda-ks.cfg fastdfs-master fastdfs.tar.gz libfastcommon-master.zip libserverframe-master.zip memcached-1.6.38.tar.gz
fastdfs fastdfs-master.zip libfastcommon-master libserverframe-master memcached-1.6.38
[root@db ~]# fdfs_trackerd --version
fdfs_trackerd V6.12.4
[root@db ~]# mkdir fdfs_6.12.4
[root@db ~]# ls
anaconda-ks.cfg fastdfs-master fastdfs.tar.gz libfastcommon-master libserverframe-master memcached-1.6.38
fastdfs fastdfs-master.zip fdfs_6.12.4 libfastcommon-master.zip libserverframe-master.zip memcached-1.6.38.tar.gz
[root@db ~]# mv fastdfs-master fdfs_6.12.4/
[root@db ~]# mv fastdfs-master.zip fdfs_6.12.4/
[root@db ~]# mv libfastcommon-master fdfs_6.12.4/
[root@db ~]# mv libfastcommon-master.zip fdfs_6.12.4/
[root@db ~]# mv libserverframe-master fdfs_6.12.4/
[root@db ~]# mv libserverframe-master.zip fdfs_6.12.4/
[root@db ~]# ls
anaconda-ks.cfg fastdfs fastdfs.tar.gz fdfs_6.12.4 memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# cd fdfs_6.12.4/
[root@db fdfs_6.12.4]# ls
fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip
[root@db fdfs_6.12.4]# mkdir usr/bin
mkdir: 无法创建目录"usr/bin": 没有那个文件或目录
[root@db fdfs_6.12.4]# mkdir usr
[root@db fdfs_6.12.4]# cd usr
[root@db usr]# ls
[root@db usr]# mkdir bin
[root@db usr]#
[root@db usr]# ls
bin
[root@db usr]# cd bin/
[root@db bin]# ls
[root@db bin]# mv /usr/bin/fdfs_* .
[root@db bin]# ls
fdfs_appender_test fdfs_append_file fdfs_delete_file fdfs_file_info fdfs_regenerate_filename fdfs_test fdfs_trackerd fdfs_upload_file
fdfs_appender_test1 fdfs_crc32 fdfs_download_file fdfs_monitor fdfs_storaged fdfs_test1 fdfs_upload_appender
[root@db bin]# cd /usr/lib/
[root@db lib]# ll
总用量 596
drwxr-xr-x. 2 root root 6 10月 2 2020 binfmt.d
lrwxrwxrwx. 1 root root 10 7月 11 17:25 cpp -> ../bin/cpp
drwxr-xr-x. 3 root root 64 4月 11 2018 debug
drwxr-xr-x. 4 root root 236 7月 11 20:15 dracut
drwxr-xr-x. 7 root root 81 7月 11 20:15 firewalld
drwxr-xr-x. 91 root root 12288 7月 11 20:16 firmware
dr-xr-xr-x. 2 root root 6 4月 11 2018 games
drwxr-xr-x. 3 root root 33 7月 11 17:26 gcc
drwxr-xr-x. 3 root root 21 7月 11 20:13 grub
drwxr-xr-x. 6 root root 76 7月 11 20:15 kbd
drwxr-xr-x. 2 root root 56 7月 11 20:16 kdump
drwxr-xr-x. 3 root root 23 10月 2 2020 kernel
lrwxrwxrwx 1 root root 27 7月 16 16:18 libfastcommon.so -> /usr/lib64/libfastcommon.so
-rwxr-xr-x 1 root root 574064 7月 16 16:31 libfdfsclient.so
lrwxrwxrwx 1 root root 28 7月 16 16:28 libserverframe.so -> /usr/lib64/libserverframe.so
drwxr-xr-x. 2 root root 55 7月 11 17:25 locale
drwxr-xr-x. 2 root root 55 7月 11 20:15 modprobe.d
drwxr-xr-x. 3 root root 36 7月 11 20:16 modules
drwxr-xr-x. 2 root root 6 10月 2 2020 modules-load.d
drwxr-xr-x. 4 root root 31 7月 11 20:15 NetworkManager
-rw-r--r--. 1 root root 393 10月 23 2020 os-release
drwxr-xr-x. 2 root root 50 7月 11 20:15 polkit-1
drwxr-xr-x. 3 root root 27 7月 11 20:14 python2.7
drwxr-xr-x. 4 root root 4096 7月 11 20:15 rpm
lrwxrwxrwx. 1 root root 30 7月 11 20:16 sendmail -> /etc/alternatives/mta-sendmail
lrwxrwxrwx. 1 root root 24 7月 11 20:16 sendmail.postfix -> ../sbin/sendmail.postfix
dr-xr-xr-x. 2 root root 6 4月 11 2018 sse2
drwxr-xr-x. 2 root root 85 7月 11 20:15 sysctl.d
drwxr-xr-x. 12 root root 4096 7月 11 20:15 systemd
drwxr-xr-x. 2 root root 4096 7月 11 20:16 tmpfiles.d
drwxr-xr-x. 13 root root 256 7月 11 20:15 tuned
drwxr-xr-x. 4 root root 270 7月 11 20:16 udev
drwxr-xr-x. 2 root root 80 10月 2 2020 yum-plugins
[root@db lib]# pwd
/usr/lib
[root@db lib]# ls
binfmt.d dracut games kbd libfastcommon.so locale modules-load.d polkit-1 sendmail sysctl.d tuned
cpp firewalld gcc kdump libfdfsclient.so modprobe.d NetworkManager python2.7 sendmail.postfix systemd udev
debug firmware grub kernel libserverframe.so modules os-release rpm sse2 tmpfiles.d yum-plugins
[root@db lib]# pwd
/usr/lib
[root@db lib]# cd /root
[root@db ~]# ls
anaconda-ks.cfg fastdfs fastdfs.tar.gz fdfs_6.12.4 memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# cd fdfs_6.12.4/
[root@db fdfs_6.12.4]# ls
fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip usr
[root@db fdfs_6.12.4]# mkdir -p /usr/lib/
[root@db fdfs_6.12.4]# ls
fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip usr
[root@db fdfs_6.12.4]# cd usr/
[root@db usr]# ls
bin
[root@db usr]# mkdir lib
[root@db usr]# ls
bin lib
[root@db usr]# cd lib
[root@db lib]# ls
[root@db lib]# mv /usr/lib/lib*.so .
[root@db lib]# ls
libfastcommon.so libfdfsclient.so libserverframe.so
[root@db lib]# cd ..
[root@db usr]# mkdir lib64
[root@db usr]# ls
bin lib lib64
[root@db usr]# cd lib
[root@db lib]# cd ..
[root@db usr]# cd lib64
[root@db lib64]# ls
[root@db lib64]# ls
[root@db lib64]# mv libfdfsclient.so .
mv: 无法获取"libfdfsclient.so" 的文件状态(stat): 没有那个文件或目录
[root@db lib64]# mv /usr/lib64/libfdfsclient.so .
[root@db lib64]# mv /usr/lib64/libserverframe.so .
[root@db lib64]# mv /usr/lib64/libfastcommon.so .
[root@db lib64]# ls
libfastcommon.so libfdfsclient.so libserverframe.so
[root@db lib64]# cd ..
[root@db usr]# cd ..
[root@db fdfs_6.12.4]# ls
fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip usr
[root@db fdfs_6.12.4]# cd usr
[root@db usr]# ls
bin lib lib64
[root@db usr]# mkdir include
[root@db usr]# ls
bin include lib lib64
[root@db usr]# cd include/
[root@db include]# ls
[root@db include]# mv /usr/include/fastdfs .
[root@db include]# mv /usr/include/sf .
[root@db include]# mv /usr/include/fastcommon .
[root@db include]# ls
fastcommon fastdfs sf
[root@db include]# cd ..
[root@db usr]# cd ..
[root@db fdfs_6.12.4]# mkdir etc
[root@db fdfs_6.12.4]# ls
etc fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip usr
[root@db fdfs_6.12.4]# cd etc
[root@db etc]# mv /etc/fdfs .
[root@db etc]# ls
fdfs
[root@db etc]# cd fdfs/
[root@db fdfs]# ls
client.conf storage.conf storage_ids.conf tracker.conf
[root@db fdfs]# cd ..
[root@db etc]# cd ..
[root@db fdfs_6.12.4]# ls
etc fastdfs-master fastdfs-master.zip libfastcommon-master libfastcommon-master.zip libserverframe-master libserverframe-master.zip usr
[root@db fdfs_6.12.4]# cd usr
[root@db usr]# ls
bin include lib lib64
[root@db usr]# cd lib
[root@db lib]# mkdir systemd/system
mkdir: 无法创建目录"systemd/system": 没有那个文件或目录
[root@db lib]# mkdir -p systemd/system
[root@db lib]# ls
libfastcommon.so libfdfsclient.so libserverframe.so systemd
[root@db lib]# cd systemd/system/
[root@db system]# ls
[root@db system]# mv /usr/lib/systemd/system/fdfs_* .
[root@db system]# ls
fdfs_storaged.service fdfs_trackerd.service
[root@db system]# pwd
/root/fdfs_6.12.4/usr/lib/systemd/system
[root@db system]# ls
fdfs_storaged.service fdfs_trackerd.service
[root@db system]# ldconfig
[root@db system]# cd ..
[root@db systemd]# ls
system
[root@db systemd]# pwd
/root/fdfs_6.12.4/usr/lib/systemd
[root@db systemd]# cd /root
[root@db ~]# ls
anaconda-ks.cfg fastdfs fastdfs.tar.gz fdfs_6.12.4 memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# mkdir fdfs_5.08
[root@db ~]# ls
anaconda-ks.cfg fastdfs fastdfs-5.08.tar.gz fastdfs.tar.gz fdfs_5.08 fdfs_6.12.4 libfastcommon-1.0.35.tar.gz memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# cd fdfs_5.08/
[root@db fdfs_5.08]# ls
[root@db fdfs_5.08]# mv ../fastdfs-5.08.tar.gz .
[root@db fdfs_5.08]# mv ../libfastcommon-1.0.35.tar.gz .
[root@db fdfs_5.08]# ls
fastdfs-5.08.tar.gz libfastcommon-1.0.35.tar.gz
[root@db fdfs_5.08]# tar -xzvf fastdfs-5.08.tar.gz
fastdfs-5.08/
fastdfs-5.08/COPYING-3_0.txt
fastdfs-5.08/HISTORY
fastdfs-5.08/INSTALL
fastdfs-5.08/README.md
fastdfs-5.08/client/
fastdfs-5.08/client/Makefile.in
fastdfs-5.08/client/client_func.c
fastdfs-5.08/client/client_func.h
fastdfs-5.08/client/client_global.c
fastdfs-5.08/client/client_global.h
fastdfs-5.08/client/fdfs_append_file.c
fastdfs-5.08/client/fdfs_appender_test.c
fastdfs-5.08/client/fdfs_appender_test1.c
fastdfs-5.08/client/fdfs_client.h
fastdfs-5.08/client/fdfs_crc32.c
fastdfs-5.08/client/fdfs_delete_file.c
fastdfs-5.08/client/fdfs_download_file.c
fastdfs-5.08/client/fdfs_file_info.c
fastdfs-5.08/client/fdfs_link_library.sh.in
fastdfs-5.08/client/fdfs_monitor.c
fastdfs-5.08/client/fdfs_test.c
fastdfs-5.08/client/fdfs_test1.c
fastdfs-5.08/client/fdfs_upload_appender.c
fastdfs-5.08/client/fdfs_upload_file.c
fastdfs-5.08/client/storage_client.c
fastdfs-5.08/client/storage_client.h
fastdfs-5.08/client/storage_client1.h
fastdfs-5.08/client/test/
fastdfs-5.08/client/test/Makefile.in
fastdfs-5.08/client/test/fdfs_monitor.c
fastdfs-5.08/client/test/fdfs_test.c
fastdfs-5.08/client/test/fdfs_test1.c
fastdfs-5.08/client/tracker_client.c
fastdfs-5.08/client/tracker_client.h
fastdfs-5.08/common/
fastdfs-5.08/common/Makefile
fastdfs-5.08/common/fdfs_define.h
fastdfs-5.08/common/fdfs_global.c
fastdfs-5.08/common/fdfs_global.h
fastdfs-5.08/common/fdfs_http_shared.c
fastdfs-5.08/common/fdfs_http_shared.h
fastdfs-5.08/common/mime_file_parser.c
fastdfs-5.08/common/mime_file_parser.h
fastdfs-5.08/conf/
fastdfs-5.08/conf/anti-steal.jpg
fastdfs-5.08/conf/client.conf
fastdfs-5.08/conf/http.conf
fastdfs-5.08/conf/mime.types
fastdfs-5.08/conf/storage.conf
fastdfs-5.08/conf/storage_ids.conf
fastdfs-5.08/conf/tracker.conf
fastdfs-5.08/fastdfs.spec
fastdfs-5.08/init.d/
fastdfs-5.08/init.d/fdfs_storaged
fastdfs-5.08/init.d/fdfs_trackerd
fastdfs-5.08/make.sh
fastdfs-5.08/php_client/
fastdfs-5.08/php_client/README
fastdfs-5.08/php_client/config.m4
fastdfs-5.08/php_client/fastdfs_appender_test.php
fastdfs-5.08/php_client/fastdfs_appender_test1.php
fastdfs-5.08/php_client/fastdfs_callback_test.php
fastdfs-5.08/php_client/fastdfs_client.c
fastdfs-5.08/php_client/fastdfs_client.h
fastdfs-5.08/php_client/fastdfs_client.ini
fastdfs-5.08/php_client/fastdfs_client.spec.in
fastdfs-5.08/php_client/fastdfs_test.php
fastdfs-5.08/php_client/fastdfs_test1.php
fastdfs-5.08/php_client/fastdfs_test_slave.php
fastdfs-5.08/restart.sh
fastdfs-5.08/stop.sh
fastdfs-5.08/storage/
fastdfs-5.08/storage/Makefile.in
fastdfs-5.08/storage/fdfs_storaged.c
fastdfs-5.08/storage/fdht_client/
fastdfs-5.08/storage/fdht_client/fdht_client.c
fastdfs-5.08/storage/fdht_client/fdht_client.h
fastdfs-5.08/storage/fdht_client/fdht_define.h
fastdfs-5.08/storage/fdht_client/fdht_func.c
fastdfs-5.08/storage/fdht_client/fdht_func.h
fastdfs-5.08/storage/fdht_client/fdht_global.c
fastdfs-5.08/storage/fdht_client/fdht_global.h
fastdfs-5.08/storage/fdht_client/fdht_proto.c
fastdfs-5.08/storage/fdht_client/fdht_proto.h
fastdfs-5.08/storage/fdht_client/fdht_proto_types.h
fastdfs-5.08/storage/fdht_client/fdht_types.h
fastdfs-5.08/storage/storage_dio.c
fastdfs-5.08/storage/storage_dio.h
fastdfs-5.08/storage/storage_disk_recovery.c
fastdfs-5.08/storage/storage_disk_recovery.h
fastdfs-5.08/storage/storage_dump.c
fastdfs-5.08/storage/storage_dump.h
fastdfs-5.08/storage/storage_func.c
fastdfs-5.08/storage/storage_func.h
fastdfs-5.08/storage/storage_global.c
fastdfs-5.08/storage/storage_global.h
fastdfs-5.08/storage/storage_ip_changed_dealer.c
fastdfs-5.08/storage/storage_ip_changed_dealer.h
fastdfs-5.08/storage/storage_nio.c
fastdfs-5.08/storage/storage_nio.h
fastdfs-5.08/storage/storage_param_getter.c
fastdfs-5.08/storage/storage_param_getter.h
fastdfs-5.08/storage/storage_service.c
fastdfs-5.08/storage/storage_service.h
fastdfs-5.08/storage/storage_sync.c
fastdfs-5.08/storage/storage_sync.h
fastdfs-5.08/storage/tracker_client_thread.c
fastdfs-5.08/storage/tracker_client_thread.h
fastdfs-5.08/storage/trunk_mgr/
fastdfs-5.08/storage/trunk_mgr/trunk_client.c
fastdfs-5.08/storage/trunk_mgr/trunk_client.h
fastdfs-5.08/storage/trunk_mgr/trunk_free_block_checker.c
fastdfs-5.08/storage/trunk_mgr/trunk_free_block_checker.h
fastdfs-5.08/storage/trunk_mgr/trunk_mem.c
fastdfs-5.08/storage/trunk_mgr/trunk_mem.h
fastdfs-5.08/storage/trunk_mgr/trunk_shared.c
fastdfs-5.08/storage/trunk_mgr/trunk_shared.h
fastdfs-5.08/storage/trunk_mgr/trunk_sync.c
fastdfs-5.08/storage/trunk_mgr/trunk_sync.h
fastdfs-5.08/test/
fastdfs-5.08/test/Makefile
fastdfs-5.08/test/combine_result.c
fastdfs-5.08/test/common_func.c
fastdfs-5.08/test/common_func.h
fastdfs-5.08/test/dfs_func.c
fastdfs-5.08/test/dfs_func.h
fastdfs-5.08/test/dfs_func_pc.c
fastdfs-5.08/test/gen_files.c
fastdfs-5.08/test/test_delete.c
fastdfs-5.08/test/test_delete.sh
fastdfs-5.08/test/test_download.c
fastdfs-5.08/test/test_download.sh
fastdfs-5.08/test/test_types.h
fastdfs-5.08/test/test_upload.c
fastdfs-5.08/test/test_upload.sh
fastdfs-5.08/tracker/
fastdfs-5.08/tracker/Makefile.in
fastdfs-5.08/tracker/fdfs_shared_func.c
fastdfs-5.08/tracker/fdfs_shared_func.h
fastdfs-5.08/tracker/fdfs_trackerd.c
fastdfs-5.08/tracker/tracker_dump.c
fastdfs-5.08/tracker/tracker_dump.h
fastdfs-5.08/tracker/tracker_func.c
fastdfs-5.08/tracker/tracker_func.h
fastdfs-5.08/tracker/tracker_global.c
fastdfs-5.08/tracker/tracker_global.h
fastdfs-5.08/tracker/tracker_http_check.c
fastdfs-5.08/tracker/tracker_http_check.h
fastdfs-5.08/tracker/tracker_mem.c
fastdfs-5.08/tracker/tracker_mem.h
fastdfs-5.08/tracker/tracker_nio.c
fastdfs-5.08/tracker/tracker_nio.h
fastdfs-5.08/tracker/tracker_proto.c
fastdfs-5.08/tracker/tracker_proto.h
fastdfs-5.08/tracker/tracker_relationship.c
fastdfs-5.08/tracker/tracker_relationship.h
fastdfs-5.08/tracker/tracker_service.c
fastdfs-5.08/tracker/tracker_service.h
fastdfs-5.08/tracker/tracker_status.c
fastdfs-5.08/tracker/tracker_status.h
fastdfs-5.08/tracker/tracker_types.h
[root@db fdfs_5.08]# tar -xzvf libfastcommon-1.0.35.tar.gz
libfastcommon-1.0.35/
libfastcommon-1.0.35/HISTORY
libfastcommon-1.0.35/INSTALL
libfastcommon-1.0.35/README
libfastcommon-1.0.35/doc/
libfastcommon-1.0.35/doc/id_generator-Chinese.pdf
libfastcommon-1.0.35/doc/ini_file_reader-Chinese.pdf
libfastcommon-1.0.35/doc/php_log_file_performance-Chinese.pdf
libfastcommon-1.0.35/libfastcommon.spec
libfastcommon-1.0.35/make.sh
libfastcommon-1.0.35/php-fastcommon/
libfastcommon-1.0.35/php-fastcommon/config.m4
libfastcommon-1.0.35/php-fastcommon/fastcommon.c
libfastcommon-1.0.35/php-fastcommon/fastcommon.h
libfastcommon-1.0.35/php-fastcommon/fastcommon.ini
libfastcommon-1.0.35/php-fastcommon/php-fastcommon.spec.in
libfastcommon-1.0.35/php-fastcommon/test.php
libfastcommon-1.0.35/php-fastcommon/test_error_log.php
libfastcommon-1.0.35/php-fastcommon/test_file_put_contents.php
libfastcommon-1.0.35/src/
libfastcommon-1.0.35/src/Makefile.in
libfastcommon-1.0.35/src/avl_tree.c
libfastcommon-1.0.35/src/avl_tree.h
libfastcommon-1.0.35/src/base64.c
libfastcommon-1.0.35/src/base64.h
libfastcommon-1.0.35/src/chain.c
libfastcommon-1.0.35/src/chain.h
libfastcommon-1.0.35/src/char_convert_loader.c
libfastcommon-1.0.35/src/char_convert_loader.h
libfastcommon-1.0.35/src/char_converter.c
libfastcommon-1.0.35/src/char_converter.h
libfastcommon-1.0.35/src/common_define.h
libfastcommon-1.0.35/src/connection_pool.c
libfastcommon-1.0.35/src/connection_pool.h
libfastcommon-1.0.35/src/fast_allocator.c
libfastcommon-1.0.35/src/fast_allocator.h
libfastcommon-1.0.35/src/fast_blocked_queue.c
libfastcommon-1.0.35/src/fast_blocked_queue.h
libfastcommon-1.0.35/src/fast_buffer.c
libfastcommon-1.0.35/src/fast_buffer.h
libfastcommon-1.0.35/src/fast_link_library.sh
libfastcommon-1.0.35/src/fast_mblock.c
libfastcommon-1.0.35/src/fast_mblock.h
libfastcommon-1.0.35/src/fast_mpool.c
libfastcommon-1.0.35/src/fast_mpool.h
libfastcommon-1.0.35/src/fast_task_queue.c
libfastcommon-1.0.35/src/fast_task_queue.h
libfastcommon-1.0.35/src/fast_timer.c
libfastcommon-1.0.35/src/fast_timer.h
libfastcommon-1.0.35/src/flat_skiplist.c
libfastcommon-1.0.35/src/flat_skiplist.h
libfastcommon-1.0.35/src/hash.c
libfastcommon-1.0.35/src/hash.h
libfastcommon-1.0.35/src/http_func.c
libfastcommon-1.0.35/src/http_func.h
libfastcommon-1.0.35/src/id_generator.c
libfastcommon-1.0.35/src/id_generator.h
libfastcommon-1.0.35/src/ini_file_reader.c
libfastcommon-1.0.35/src/ini_file_reader.h
libfastcommon-1.0.35/src/io_opt.c
libfastcommon-1.0.35/src/io_opt.h
libfastcommon-1.0.35/src/ioevent.c
libfastcommon-1.0.35/src/ioevent.h
libfastcommon-1.0.35/src/ioevent_loop.c
libfastcommon-1.0.35/src/ioevent_loop.h
libfastcommon-1.0.35/src/local_ip_func.c
libfastcommon-1.0.35/src/local_ip_func.h
libfastcommon-1.0.35/src/logger.c
libfastcommon-1.0.35/src/logger.h
libfastcommon-1.0.35/src/md5.c
libfastcommon-1.0.35/src/md5.h
libfastcommon-1.0.35/src/multi_skiplist.c
libfastcommon-1.0.35/src/multi_skiplist.h
libfastcommon-1.0.35/src/php7_ext_wrapper.h
libfastcommon-1.0.35/src/process_ctrl.c
libfastcommon-1.0.35/src/process_ctrl.h
libfastcommon-1.0.35/src/pthread_func.c
libfastcommon-1.0.35/src/pthread_func.h
libfastcommon-1.0.35/src/pthread_pool.c
libfastcommon-1.0.35/src/pthread_pool.h
libfastcommon-1.0.35/src/sched_thread.c
libfastcommon-1.0.35/src/sched_thread.h
libfastcommon-1.0.35/src/shared_func.c
libfastcommon-1.0.35/src/shared_func.h
libfastcommon-1.0.35/src/skiplist.h
libfastcommon-1.0.35/src/skiplist_common.h
libfastcommon-1.0.35/src/sockopt.c
libfastcommon-1.0.35/src/sockopt.h
libfastcommon-1.0.35/src/system_info.c
libfastcommon-1.0.35/src/system_info.h
libfastcommon-1.0.35/src/tests/
libfastcommon-1.0.35/src/tests/Makefile
libfastcommon-1.0.35/src/tests/test.ini
libfastcommon-1.0.35/src/tests/test_allocator.c
libfastcommon-1.0.35/src/tests/test_blocked_queue.c
libfastcommon-1.0.35/src/tests/test_char_convert.c
libfastcommon-1.0.35/src/tests/test_char_convert_loader.c
libfastcommon-1.0.35/src/tests/test_id_generator.c
libfastcommon-1.0.35/src/tests/test_ini_parser.c
libfastcommon-1.0.35/src/tests/test_logger.c
libfastcommon-1.0.35/src/tests/test_mblock.c
libfastcommon-1.0.35/src/tests/test_multi_skiplist.c
libfastcommon-1.0.35/src/tests/test_skiplist.c
[root@db fdfs_5.08]# ls
fastdfs-5.08 fastdfs-5.08.tar.gz libfastcommon-1.0.35 libfastcommon-1.0.35.tar.gz
[root@db fdfs_5.08]# cd libfastcommon-1.0.35
[root@db libfastcommon-1.0.35]# ls
doc HISTORY INSTALL libfastcommon.spec make.sh php-fastcommon README src
[root@db libfastcommon-1.0.35]# ./make.sh && ./make.sh install
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o hash.o hash.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o chain.o chain.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o shared_func.o shared_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ini_file_reader.o ini_file_reader.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o logger.o logger.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sockopt.o sockopt.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o base64.o base64.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sched_thread.o sched_thread.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o http_func.o http_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o md5.o md5.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o pthread_func.o pthread_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o local_ip_func.o local_ip_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o avl_tree.o avl_tree.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ioevent.o ioevent.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ioevent_loop.o ioevent_loop.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_task_queue.o fast_task_queue.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_timer.o fast_timer.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o process_ctrl.o process_ctrl.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_mblock.o fast_mblock.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o connection_pool.o connection_pool.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_mpool.o fast_mpool.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_allocator.o fast_allocator.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_buffer.o fast_buffer.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o multi_skiplist.o multi_skiplist.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o flat_skiplist.o flat_skiplist.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o system_info.o system_info.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_blocked_queue.o fast_blocked_queue.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o id_generator.o id_generator.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o char_converter.o char_converter.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o char_convert_loader.o char_convert_loader.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o hash.lo hash.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o chain.lo chain.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o shared_func.lo shared_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ini_file_reader.lo ini_file_reader.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o logger.lo logger.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sockopt.lo sockopt.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o base64.lo base64.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sched_thread.lo sched_thread.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o http_func.lo http_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o md5.lo md5.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o pthread_func.lo pthread_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o local_ip_func.lo local_ip_func.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o avl_tree.lo avl_tree.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ioevent.lo ioevent.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ioevent_loop.lo ioevent_loop.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_task_queue.lo fast_task_queue.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_timer.lo fast_timer.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o process_ctrl.lo process_ctrl.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_mblock.lo fast_mblock.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o connection_pool.lo connection_pool.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_mpool.lo fast_mpool.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_allocator.lo fast_allocator.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_buffer.lo fast_buffer.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o multi_skiplist.lo multi_skiplist.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o flat_skiplist.lo flat_skiplist.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o system_info.lo system_info.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_blocked_queue.lo fast_blocked_queue.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o id_generator.lo id_generator.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o char_converter.lo char_converter.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o char_convert_loader.lo char_convert_loader.c
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -o libfastcommon.so -shared hash.lo chain.lo shared_func.lo ini_file_reader.lo logger.lo sockopt.lo base64.lo sched_thread.lo http_func.lo md5.lo pthread_func.lo local_ip_func.lo avl_tree.lo ioevent.lo ioevent_loop.lo fast_task_queue.lo fast_timer.lo process_ctrl.lo fast_mblock.lo connection_pool.lo fast_mpool.lo fast_allocator.lo fast_buffer.lo multi_skiplist.lo flat_skiplist.lo system_info.lo fast_blocked_queue.lo id_generator.lo char_converter.lo char_convert_loader.lo -lm -lpthread
ar rcs libfastcommon.a hash.o chain.o shared_func.o ini_file_reader.o logger.o sockopt.o base64.o sched_thread.o http_func.o md5.o pthread_func.o local_ip_func.o avl_tree.o ioevent.o ioevent_loop.o fast_task_queue.o fast_timer.o process_ctrl.o fast_mblock.o connection_pool.o fast_mpool.o fast_allocator.o fast_buffer.o multi_skiplist.o flat_skiplist.o system_info.o fast_blocked_queue.o id_generator.o char_converter.o char_convert_loader.o
mkdir -p /usr/lib64
mkdir -p /usr/lib
install -m 755 libfastcommon.so /usr/lib64
install -m 755 libfastcommon.so /usr/lib
mkdir -p /usr/include/fastcommon
install -m 644 common_define.h hash.h chain.h logger.h base64.h shared_func.h pthread_func.h ini_file_reader.h _os_define.h sockopt.h sched_thread.h http_func.h md5.h local_ip_func.h avl_tree.h ioevent.h ioevent_loop.h fast_task_queue.h fast_timer.h process_ctrl.h fast_mblock.h connection_pool.h fast_mpool.h fast_allocator.h fast_buffer.h skiplist.h multi_skiplist.h flat_skiplist.h skiplist_common.h system_info.h fast_blocked_queue.h php7_ext_wrapper.h id_generator.h char_converter.h char_convert_loader.h /usr/include/fastcommon
[root@db libfastcommon-1.0.35]# cd ..
[root@db fdfs_5.08]# ls
fastdfs-5.08 fastdfs-5.08.tar.gz libfastcommon-1.0.35 libfastcommon-1.0.35.tar.gz
[root@db fdfs_5.08]# cd fastdfs-5.08
[root@db fastdfs-5.08]# ls
client common conf COPYING-3_0.txt fastdfs.spec HISTORY init.d INSTALL make.sh php_client README.md restart.sh stop.sh storage test tracker
[root@db fastdfs-5.08]# ./make.sh && ./make.sh install
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_proto.o tracker_proto.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_mem.o tracker_mem.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_service.o tracker_service.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_status.o tracker_status.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_global.o tracker_global.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_func.o tracker_func.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdfs_shared_func.o fdfs_shared_func.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_nio.o tracker_nio.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_relationship.o tracker_relationship.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_dump.o tracker_dump.c -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_trackerd fdfs_trackerd.c ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_shared_func.o tracker_nio.o tracker_relationship.o tracker_dump.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o tracker_client_thread.o tracker_client_thread.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_global.o storage_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_func.o storage_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_service.o storage_service.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_sync.o storage_sync.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_nio.o storage_nio.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_dio.o storage_dio.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_ip_changed_dealer.o storage_ip_changed_dealer.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_param_getter.o storage_param_getter.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_disk_recovery.o storage_disk_recovery.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_mem.o trunk_mgr/trunk_mem.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_shared.o trunk_mgr/trunk_shared.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_sync.o trunk_mgr/trunk_sync.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_client.o trunk_mgr/trunk_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o trunk_mgr/trunk_free_block_checker.o trunk_mgr/trunk_free_block_checker.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/client_global.o ../client/client_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/tracker_client.o ../client/tracker_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/storage_client.o ../client/storage_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../client/client_func.o ../client/client_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_proto.o fdht_client/fdht_proto.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_client.o fdht_client/fdht_client.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_func.o fdht_client/fdht_func.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o fdht_client/fdht_global.o fdht_client/fdht_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o storage_dump.o storage_dump.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_storaged fdfs_storaged.c ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_service.o storage_sync.o storage_nio.o storage_dio.o storage_ip_changed_dealer.o storage_param_getter.o storage_disk_recovery.o trunk_mgr/trunk_mem.o trunk_mgr/trunk_shared.o trunk_mgr/trunk_sync.o trunk_mgr/trunk_client.o trunk_mgr/trunk_free_block_checker.o ../client/client_global.o ../client/tracker_client.o ../client/storage_client.o ../client/client_func.o fdht_client/fdht_proto.o fdht_client/fdht_client.o fdht_client/fdht_func.o fdht_client/fdht_global.o storage_dump.o -L/usr/lib64 -lpthread -lfastcommon -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/fdfs_http_shared.o ../common/fdfs_http_shared.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -o ../common/mime_file_parser.o ../common/mime_file_parser.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_global.lo ../common/fdfs_global.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_http_shared.lo ../common/fdfs_http_shared.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../common/mime_file_parser.lo ../common/mime_file_parser.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../tracker/tracker_proto.lo ../tracker/tracker_proto.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../tracker/fdfs_shared_func.lo ../tracker/fdfs_shared_func.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o ../storage/trunk_mgr/trunk_shared.lo ../storage/trunk_mgr/trunk_shared.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o tracker_client.lo tracker_client.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o client_func.lo client_func.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o client_global.lo client_global.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -c -fPIC -o storage_client.lo storage_client.c -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_monitor fdfs_monitor.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_test fdfs_test.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_test1 fdfs_test1.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_crc32 fdfs_crc32.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_upload_file fdfs_upload_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_download_file fdfs_download_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_delete_file fdfs_delete_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_file_info fdfs_file_info.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_appender_test fdfs_appender_test.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_appender_test1 fdfs_appender_test1.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_append_file fdfs_append_file.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o fdfs_upload_appender fdfs_upload_appender.c ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o -L/usr/lib64 -lpthread -lfastcommon -I../common -I../tracker -I/usr/include/fastcommon
ar cru libfdfsclient.a ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o
cc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O -DDEBUG_FLAG -o libfdfsclient.so -shared ../common/fdfs_global.lo ../common/fdfs_http_shared.lo ../common/mime_file_parser.lo ../tracker/tracker_proto.lo ../tracker/fdfs_shared_func.lo ../storage/trunk_mgr/trunk_shared.lo tracker_client.lo client_func.lo client_global.lo storage_client.lo -L/usr/lib64 -lpthread -lfastcommon
mkdir -p /usr/bin
mkdir -p /etc/fdfs
cp -f fdfs_trackerd /usr/bin
if [ ! -f /etc/fdfs/tracker.conf.sample ]; then cp -f ../conf/tracker.conf /etc/fdfs/tracker.conf.sample; fi
mkdir -p /usr/bin
mkdir -p /etc/fdfs
cp -f fdfs_storaged /usr/bin
if [ ! -f /etc/fdfs/storage.conf.sample ]; then cp -f ../conf/storage.conf /etc/fdfs/storage.conf.sample; fi
mkdir -p /usr/bin
mkdir -p /etc/fdfs
mkdir -p /usr/lib64
mkdir -p /usr/lib
cp -f fdfs_monitor fdfs_test fdfs_test1 fdfs_crc32 fdfs_upload_file fdfs_download_file fdfs_delete_file fdfs_file_info fdfs_appender_test fdfs_appender_test1 fdfs_append_file fdfs_upload_appender /usr/bin
if [ 0 -eq 1 ]; then cp -f libfdfsclient.a /usr/lib64; cp -f libfdfsclient.a /usr/lib/;fi
if [ 1 -eq 1 ]; then cp -f libfdfsclient.so /usr/lib64; cp -f libfdfsclient.so /usr/lib/;fi
mkdir -p /usr/include/fastdfs
cp -f ../common/fdfs_define.h ../common/fdfs_global.h ../common/mime_file_parser.h ../common/fdfs_http_shared.h ../tracker/tracker_types.h ../tracker/tracker_proto.h ../tracker/fdfs_shared_func.h ../storage/trunk_mgr/trunk_shared.h tracker_client.h storage_client.h storage_client1.h client_func.h client_global.h fdfs_client.h /usr/include/fastdfs
if [ ! -f /etc/fdfs/client.conf.sample ]; then cp -f ../conf/client.conf /etc/fdfs/client.conf.sample; fi
[root@db fastdfs-5.08]# fdfs_trackerd -version
[2025-07-18 10:02:00] ERROR - file: shared_func.c, line: 968, file /root/fdfs_5.08/fastdfs-5.08/-version not exist
[2025-07-18 10:02:00] ERROR - file: process_ctrl.c, line: 254, load conf file "-version" fail, ret code: 2
[root@db fastdfs-5.08]# /usr/bin/fdfs_trackerd -version
[2025-07-18 10:02:30] ERROR - file: shared_func.c, line: 968, file /root/fdfs_5.08/fastdfs-5.08/-version not exist
[2025-07-18 10:02:30] ERROR - file: process_ctrl.c, line: 254, load conf file "-version" fail, ret code: 2
[root@db fastdfs-5.08]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[2025-07-18 10:02:41] ERROR - file: shared_func.c, line: 968, file /etc/fdfs/tracker.conf not exist
[2025-07-18 10:02:41] ERROR - file: process_ctrl.c, line: 254, load conf file "/etc/fdfs/tracker.conf" fail, ret code: 2
[root@db fastdfs-5.08]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
process /usr/bin/fdfs_trackerd already running, pid: 2749
[root@db fastdfs-5.08]# ps -ef grep |fdfs
-bash: fdfs: 未找到命令
error: list of process IDs must follow p
Usage:
ps [options]
Try 'ps --help '
or 'ps --help '
for additional help text.
For more details see ps(1).
[root@db fastdfs-5.08]# ps -ef |grep fdfs
root 2749 1 0 08:41 ? 00:00:00 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
root 2794 1 0 08:41 ? 00:00:00 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
root 26182 1243 0 10:04 pts/0 00:00:00 grep --color=auto fdfs
[root@db fastdfs-5.08]# kill -9 2749 2794
[root@db fastdfs-5.08]# ps -ef |grep fdfs
root 26274 1243 0 10:04 pts/0 00:00:00 grep --color=auto fdfs
[root@db fastdfs-5.08]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[root@db fastdfs-5.08]# /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
[root@db fastdfs-5.08]# cd /root
[root@db ~]# ls
anaconda-ks.cfg fastdfs fastdfs.tar.gz fdfs_5.08 fdfs_6.12.4 memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# mv fastdfs /app
[root@db ~]# ls
anaconda-ks.cfg fastdfs.tar.gz fdfs_5.08 fdfs_6.12.4 memcached-1.6.38 memcached-1.6.38.tar.gz
[root@db ~]# ps -ef |grep fdfs
root 5738 1243 0 10:46 pts/0 00:00:00 grep --color=auto fdfs
root 26331 1 0 10:04 ? 00:00:00 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[root@db ~]# kill -9 26331
[root@db ~]# ps -ef |grep fdfs
root 5824 1243 0 10:46 pts/0 00:00:00 grep --color=auto fdfs
[root@db ~]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
[root@db ~]# /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
[root@db ~]#
# 安装libfastcommon
git clone https://gitee.com/fastdfs100/libfastcommon.git
cd libfastcommon/
./make.sh && ./make.sh install #编译安装
cd ..
###################################################################################################################
# 安装libserverframe
git clone https://gitee.com/fastdfs100/libserverframe.git
cd libserverframe/
./make.sh && ./make.sh install #编译安装
cd ..
###################################################################################################################
# 安装FastDFS
git clone https://gitee.com/fastdfs100/fastdfs.git
cd fastdfs/
./make.sh && ./make.sh install #编译安装
#配置文件准备
cp /usr/local/src/fastdfs/conf/http.conf /etc/fdfs/ #供nginx访问使用
cp /usr/local/src/fastdfs/conf/mime.types /etc/fdfs/ #供nginx访问使用
cd ..
###################################################################################################################
# 安装fastdfs-nginx-module
git clone https://gitee.com/fastdfs100/fastdfs-nginx-module.git
cp /usr/local/src/fastdfs-nginx-module/src/mod_fastdfs.conf /etc/fdfs
# 1. 安装依赖
yum install git gcc make perl -y
# 2. 安装 libfastcommon
git clone https://github.com/happyfish100/libfastcommon.git
cd libfastcommon
./make.sh && ./make.sh install
# 安装libserverframe
git clone https://gitee.com/fastdfs100/libserverframe.git
cd libserverframe/
./make.sh && ./make.sh install #编译安装
# 3. 安装 FastDFS
git clone https://github.com/happyfish100/fastdfs.git
cd fastdfs
./make.sh && ./make.sh install
# 4. 配置 tracker/storage
cp /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf
cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf
vim /etc/fdfs/tracker.conf # 修改 base_path 等配置
vim /etc/fdfs/storage.conf # 修改 tracker_server、store_path 等
# 5. 启动服务
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf start
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf start

浙公网安备 33010602011771号