安装memcached

 非常简单运行yum命令即可

yum install memcached

[root@bogon ~]# yum install memcached
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 18137.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  35 M RSS (386 MB VSZ)
    Started: Fri Jul  7 00:29:21 2023 - 00:01 ago
    State  : Running, pid: 18137
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 260 M RSS (604 MB VSZ)
    Started: Fri Jul  7 00:29:21 2023 - 00:03 ago
    State  : Running, pid: 18137
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 267 M RSS (611 MB VSZ)
    Started: Fri Jul  7 00:29:21 2023 - 00:05 ago
    State  : Sleeping, pid: 18137
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 267 M RSS (611 MB VSZ)
    Started: Fri Jul  7 00:29:21 2023 - 00:07 ago
    State  : Sleeping, pid: 18137
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 267 M RSS (611 MB VSZ)
    Started: Fri Jul  7 00:29:21 2023 - 00:09 ago
    State  : Sleeping, pid: 18137
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                            | 6.1 kB  00:00:00     
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
base                                                            | 3.6 kB  00:00:00     
epel                                                            | 4.7 kB  00:00:00     
extras                                                          | 2.9 kB  00:00:00     
mysql-connectors-community                                      | 2.6 kB  00:00:00     
mysql-tools-community                                           | 2.6 kB  00:00:00     
mysql57-community                                               | 2.6 kB  00:00:00     
updates                                                         | 2.9 kB  00:00:00     
(1/8): epel/x86_64/group_gz                                     |  99 kB  00:00:00     
(2/8): epel/x86_64/updateinfo                                   | 1.0 MB  00:00:00     
(3/8): extras/7/x86_64/primary_db                               | 250 kB  00:00:00     
(4/8): mysql-tools-community/x86_64/primary_db                  |  92 kB  00:00:01     
(5/8): mysql-connectors-community/x86_64/primary_db             |  99 kB  00:00:01     
(6/8): epel/x86_64/primary_db                                   | 7.0 MB  00:00:02     
(7/8): mysql57-community/x86_64/primary_db                      | 340 kB  00:00:03     
(8/8): updates/7/x86_64/primary_db                              |  22 MB  00:00:16     
Resolving Dependencies
--> Running transaction check
---> Package memcached.x86_64 0:1.4.15-10.el7_3.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package             Arch             Version                     Repository      Size
=======================================================================================
Installing:
 memcached           x86_64           1.4.15-10.el7_3.1           base            85 k

Transaction Summary
=======================================================================================
Install  1 Package

Total download size: 85 k
Installed size: 176 k
Is this ok [y/d/N]: y
Downloading packages:
memcached-1.4.15-10.el7_3.1.x86_64.rpm                          |  85 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : memcached-1.4.15-10.el7_3.1.x86_64                                  1/1 
  Verifying  : memcached-1.4.15-10.el7_3.1.x86_64                                  1/1 

Installed:
  memcached.x86_64 0:1.4.15-10.el7_3.1                                                 

Complete!
[root@bogon ~]# yum install libmemcached-tools
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
No package libmemcached-tools available.
Error: Nothing to do
[root@bogon ~]# yum install memcached
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
Package memcached-1.4.15-10.el7_3.1.x86_64 already installed and latest version
Nothing to do
[root@bogon ~]# yum install libmemcached-tools
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
No package libmemcached-tools available.
Error: Nothing to do
[root@bogon ~]# systemctl status memcached
● memcached.service - Memcached
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
[root@bogon ~]# systemctl start memcached
[root@bogon ~]# systemctl status memcached\
> ^C
[root@bogon ~]# systemctl status memcached
● memcached.service - Memcached
   Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled; vendor preset: disabled)
   Active: active (running) since Fri 2023-07-07 00:32:54 PDT; 5s ago
 Main PID: 18481 (memcached)
    Tasks: 6
   CGroup: /system.slice/memcached.service
           └─18481 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024

Jul 07 00:32:54 bogon systemd[1]: Started Memcached.
[root@bogon ~]# telnet 127.0.0.1
bash: telnet: command not found...
[root@bogon ~]# telnet 127.0.0.1 11211
bash: telnet: command not found...
[root@bogon ~]# yum i telnet
Loaded plugins: fastestmirror, langpacks
No such command: i. Please use /usr/bin/yum --help
[root@bogon ~]# yum install telnet
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-66.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package           Arch              Version                  Repository          Size
=======================================================================================
Installing:
 telnet            x86_64            1:0.17-66.el7            updates             64 k

Transaction Summary
=======================================================================================
Install  1 Package

Total download size: 64 k
Installed size: 113 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-0.17-66.el7.x86_64.rpm                                   |  64 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:telnet-0.17-66.el7.x86_64                                         1/1 
  Verifying  : 1:telnet-0.17-66.el7.x86_64                                         1/1 

Installed:
  telnet.x86_64 1:0.17-66.el7                                                          

Complete!
[root@bogon ~]# telnet 127.0.0.1 11211
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
hello
ERROR
set mykey 0 60 5
hello
STORED
^C
quit
Connection closed by foreign host.
[root@bogon ~]# pwd
/root
[root@bogon ~]# ls
anaconda-ks.cfg  Documents  logs   nacos            Pictures  Templates
Desktop          Downloads  Music  original-ks.cfg  Public    Videos
[root@bogon ~]# yum install fastFD
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
No package fastFD available.
Error: Nothing to do
[root@bogon ~]# git clone https://github.com/happyfish100/fastdfs.git
Cloning into 'fastdfs'...
remote: Enumerating objects: 2777, done.
remote: Counting objects: 100% (491/491), done.
remote: Compressing objects: 100% (248/248), done.
remote: Total 2777 (delta 300), reused 382 (delta 240), pack-reused 2286
Receiving objects: 100% (2777/2777), 10.66 MiB | 38.00 KiB/s, done.
Resolving deltas: 100% (2038/2038), done.
[root@bogon ~]# pwd
/root
[root@bogon ~]# ls
anaconda-ks.cfg  Documents  fastdfs  Music  original-ks.cfg  Public     Videos
Desktop          Downloads  logs     nacos  Pictures         Templates
[root@bogon ~]# cd fastdfs/
[root@bogon fastdfs]# ls
client  COPYING-3_0.txt  HISTORY  INSTALL     README.md     storage  tracker
common  docker           images   make.sh     README_zh.md  systemd
conf    fastdfs.spec     init.d   php_client  setup.sh      test
[root@bogon fastdfs]# make
make: *** No targets specified and no makefile found.  Stop.
[root@bogon fastdfs]# ./make.sh 
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/local/include
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I../tracker -I/usr/include/fastcommon
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
[root@bogon fastdfs]# yum install -y git gcc gcc-c++ make automake autoconf libtool pcre pcre-devel zlib zlib-devel openssl-devel wget
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.huaweicloud.com
 * epel: mirrors.tuna.tsinghua.edu.cn
 * extras: mirrors.huaweicloud.com
 * updates: mirrors.huaweicloud.com
Package gcc-4.8.5-44.el7.x86_64 already installed and latest version
Package gcc-c++-4.8.5-44.el7.x86_64 already installed and latest version
Package 1:make-3.82-24.el7.x86_64 already installed and latest version
Package pcre-8.32-17.el7.x86_64 already installed and latest version
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package autoconf.noarch 0:2.69-11.el7 will be installed
--> Processing Dependency: m4 >= 1.4.14 for package: autoconf-2.69-11.el7.noarch
--> Processing Dependency: perl(Data::Dumper) for package: autoconf-2.69-11.el7.noarch
---> Package automake.noarch 0:1.13.4-3.el7 will be installed
--> Processing Dependency: perl(Thread::Queue) for package: automake-1.13.4-3.el7.noarch
--> Processing Dependency: perl(TAP::Parser) for package: automake-1.13.4-3.el7.noarch
---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be updated
--> Processing Dependency: git = 1.8.3.1-23.el7_8 for package: perl-Git-1.8.3.1-23.el7_8.noarch
---> Package git.x86_64 0:1.8.3.1-25.el7_9 will be an update
---> Package libtool.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package openssl-devel.x86_64 1:1.0.2k-26.el7_9 will be installed
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-26.el7_9 for package: 1:openssl-devel-1.0.2k-26.el7_9.x86_64
--> Processing Dependency: krb5-devel(x86-64) for package: 1:openssl-devel-1.0.2k-26.el7_9.x86_64
---> Package pcre-devel.x86_64 0:8.32-17.el7 will be installed
---> Package zlib.x86_64 0:1.2.7-20.el7_9 will be updated
---> Package zlib.x86_64 0:1.2.7-21.el7_9 will be an update
---> Package zlib-devel.x86_64 0:1.2.7-20.el7_9 will be updated
---> Package zlib-devel.x86_64 0:1.2.7-21.el7_9 will be an update
--> Running transaction check
---> Package krb5-devel.x86_64 0:1.15.1-55.el7_9 will be installed
--> Processing Dependency: libkadm5(x86-64) = 1.15.1-55.el7_9 for package: krb5-devel-1.15.1-55.el7_9.x86_64
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-55.el7_9 for package: krb5-devel-1.15.1-55.el7_9.x86_64
--> Processing Dependency: libverto-devel for package: krb5-devel-1.15.1-55.el7_9.x86_64
--> Processing Dependency: libselinux-devel for package: krb5-devel-1.15.1-55.el7_9.x86_64
--> Processing Dependency: libcom_err-devel for package: krb5-devel-1.15.1-55.el7_9.x86_64
--> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.15.1-55.el7_9.x86_64
---> Package m4.x86_64 0:1.4.16-10.el7 will be installed
---> Package openssl-libs.x86_64 1:1.0.2k-19.el7 will be updated
--> Processing Dependency: openssl-libs(x86-64) = 1:1.0.2k-19.el7 for package: 1:openssl-1.0.2k-19.el7.x86_64
---> Package openssl-libs.x86_64 1:1.0.2k-26.el7_9 will be an update
---> Package perl-Data-Dumper.x86_64 0:2.145-3.el7 will be installed
---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be updated
---> Package perl-Git.noarch 0:1.8.3.1-25.el7_9 will be an update
---> Package perl-Test-Harness.noarch 0:3.28-3.el7 will be installed
---> Package perl-Thread-Queue.noarch 0:3.02-2.el7 will be installed
--> Running transaction check
---> Package keyutils-libs-devel.x86_64 0:1.5.8-3.el7 will be installed
---> Package krb5-libs.x86_64 0:1.15.1-50.el7 will be updated
--> Processing Dependency: krb5-libs(x86-64) = 1.15.1-50.el7 for package: krb5-workstation-1.15.1-50.el7.x86_64
---> Package krb5-libs.x86_64 0:1.15.1-55.el7_9 will be an update
---> Package libcom_err-devel.x86_64 0:1.42.9-19.el7 will be installed
---> Package libkadm5.x86_64 0:1.15.1-50.el7 will be updated
---> Package libkadm5.x86_64 0:1.15.1-55.el7_9 will be an update
---> Package libselinux-devel.x86_64 0:2.5-15.el7 will be installed
--> Processing Dependency: libsepol-devel(x86-64) >= 2.5-10 for package: libselinux-devel-2.5-15.el7.x86_64
--> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.5-15.el7.x86_64
---> Package libverto-devel.x86_64 0:0.2.5-4.el7 will be installed
---> Package openssl.x86_64 1:1.0.2k-19.el7 will be updated
---> Package openssl.x86_64 1:1.0.2k-26.el7_9 will be an update
--> Running transaction check
---> Package krb5-workstation.x86_64 0:1.15.1-50.el7 will be updated
---> Package krb5-workstation.x86_64 0:1.15.1-55.el7_9 will be an update
---> Package libsepol-devel.x86_64 0:2.5-10.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================
 Package                   Arch         Version                    Repository     Size
=======================================================================================
Installing:
 autoconf                  noarch       2.69-11.el7                base          701 k
 automake                  noarch       1.13.4-3.el7               base          679 k
 libtool                   x86_64       2.4.2-22.el7_3             base          588 k
 openssl-devel             x86_64       1:1.0.2k-26.el7_9          updates       1.5 M
 pcre-devel                x86_64       8.32-17.el7                base          480 k
Updating:
 git                       x86_64       1.8.3.1-25.el7_9           updates       4.4 M
 zlib                      x86_64       1.2.7-21.el7_9             updates        90 k
 zlib-devel                x86_64       1.2.7-21.el7_9             updates        50 k
Installing for dependencies:
 keyutils-libs-devel       x86_64       1.5.8-3.el7                base           37 k
 krb5-devel                x86_64       1.15.1-55.el7_9            updates       273 k
 libcom_err-devel          x86_64       1.42.9-19.el7              base           32 k
 libselinux-devel          x86_64       2.5-15.el7                 base          187 k
 libsepol-devel            x86_64       2.5-10.el7                 base           77 k
 libverto-devel            x86_64       0.2.5-4.el7                base           12 k
 m4                        x86_64       1.4.16-10.el7              base          256 k
 perl-Data-Dumper          x86_64       2.145-3.el7                base           47 k
 perl-Test-Harness         noarch       3.28-3.el7                 base          302 k
 perl-Thread-Queue         noarch       3.02-2.el7                 base           17 k
Updating for dependencies:
 krb5-libs                 x86_64       1.15.1-55.el7_9            updates       810 k
 krb5-workstation          x86_64       1.15.1-55.el7_9            updates       821 k
 libkadm5                  x86_64       1.15.1-55.el7_9            updates       180 k
 openssl                   x86_64       1:1.0.2k-26.el7_9          updates       494 k
 openssl-libs              x86_64       1:1.0.2k-26.el7_9          updates       1.2 M
 perl-Git                  noarch       1.8.3.1-25.el7_9           updates        56 k

Transaction Summary
=======================================================================================
Install  5 Packages (+10 Dependent packages)
Upgrade  3 Packages (+ 6 Dependent packages)

Total size: 13 M
Total download size: 9.6 M
Downloading packages:
No Presto metadata available for updates
(1/17): krb5-devel-1.15.1-55.el7_9.x86_64.rpm                   | 273 kB  00:00:00     
(2/17): keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm              |  37 kB  00:00:00     
(3/17): autoconf-2.69-11.el7.noarch.rpm                         | 701 kB  00:00:00     
(4/17): automake-1.13.4-3.el7.noarch.rpm                        | 679 kB  00:00:00     
(5/17): libcom_err-devel-1.42.9-19.el7.x86_64.rpm               |  32 kB  00:00:00     
(6/17): libselinux-devel-2.5-15.el7.x86_64.rpm                  | 187 kB  00:00:00     
(7/17): libverto-devel-0.2.5-4.el7.x86_64.rpm                   |  12 kB  00:00:00     
(8/17): libsepol-devel-2.5-10.el7.x86_64.rpm                    |  77 kB  00:00:00     
(9/17): libtool-2.4.2-22.el7_3.x86_64.rpm                       | 588 kB  00:00:00     
(10/17): perl-Data-Dumper-2.145-3.el7.x86_64.rpm                |  47 kB  00:00:00     
(11/17): pcre-devel-8.32-17.el7.x86_64.rpm                      | 480 kB  00:00:01     
(12/17): m4-1.4.16-10.el7.x86_64.rpm                            | 256 kB  00:00:01     
(13/17): openssl-devel-1.0.2k-26.el7_9.x86_64.rpm               | 1.5 MB  00:00:01     
(14/17): perl-Thread-Queue-3.02-2.el7.noarch.rpm                |  17 kB  00:00:00     
(15/17): perl-Test-Harness-3.28-3.el7.noarch.rpm                | 302 kB  00:00:00     
(16/17): perl-Git-1.8.3.1-25.el7_9.noarch.rpm                   |  56 kB  00:00:01     
(17/17): git-1.8.3.1-25.el7_9.x86_64.rpm                        | 4.4 MB  00:00:07     
---------------------------------------------------------------------------------------
Total                                                     1.3 MB/s | 9.6 MB  00:07     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : zlib-1.2.7-21.el7_9.x86_64                                         1/33 
  Updating   : krb5-libs-1.15.1-55.el7_9.x86_64                                   2/33 
  Updating   : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                              3/33 
  Updating   : libkadm5-1.15.1-55.el7_9.x86_64                                    4/33 
  Updating   : perl-Git-1.8.3.1-25.el7_9.noarch                                   5/33 
  Updating   : git-1.8.3.1-25.el7_9.x86_64                                        6/33 
  Updating   : zlib-devel-1.2.7-21.el7_9.x86_64                                   7/33 
  Installing : libcom_err-devel-1.42.9-19.el7.x86_64                              8/33 
  Installing : perl-Data-Dumper-2.145-3.el7.x86_64                                9/33 
  Installing : perl-Thread-Queue-3.02-2.el7.noarch                               10/33 
  Installing : perl-Test-Harness-3.28-3.el7.noarch                               11/33 
  Installing : libverto-devel-0.2.5-4.el7.x86_64                                 12/33 
  Installing : libsepol-devel-2.5-10.el7.x86_64                                  13/33 
  Installing : m4-1.4.16-10.el7.x86_64                                           14/33 
  Installing : autoconf-2.69-11.el7.noarch                                       15/33 
  Installing : automake-1.13.4-3.el7.noarch                                      16/33 
  Installing : pcre-devel-8.32-17.el7.x86_64                                     17/33 
  Installing : libselinux-devel-2.5-15.el7.x86_64                                18/33 
  Installing : keyutils-libs-devel-1.5.8-3.el7.x86_64                            19/33 
  Installing : krb5-devel-1.15.1-55.el7_9.x86_64                                 20/33 
  Installing : 1:openssl-devel-1.0.2k-26.el7_9.x86_64                            21/33 
  Installing : libtool-2.4.2-22.el7_3.x86_64                                     22/33 
  Updating   : krb5-workstation-1.15.1-55.el7_9.x86_64                           23/33 
  Updating   : 1:openssl-1.0.2k-26.el7_9.x86_64                                  24/33 
  Cleanup    : zlib-devel-1.2.7-20.el7_9.x86_64                                  25/33 
  Cleanup    : 1:openssl-1.0.2k-19.el7.x86_64                                    26/33 
  Cleanup    : perl-Git-1.8.3.1-23.el7_8.noarch                                  27/33 
  Cleanup    : git-1.8.3.1-23.el7_8.x86_64                                       28/33 
  Cleanup    : krb5-workstation-1.15.1-50.el7.x86_64                             29/33 
  Cleanup    : libkadm5-1.15.1-50.el7.x86_64                                     30/33 
  Cleanup    : krb5-libs-1.15.1-50.el7.x86_64                                    31/33 
  Cleanup    : 1:openssl-libs-1.0.2k-19.el7.x86_64                               32/33 
  Cleanup    : zlib-1.2.7-20.el7_9.x86_64                                        33/33 
  Verifying  : libselinux-devel-2.5-15.el7.x86_64                                 1/33 
  Verifying  : keyutils-libs-devel-1.5.8-3.el7.x86_64                             2/33 
  Verifying  : krb5-devel-1.15.1-55.el7_9.x86_64                                  3/33 
  Verifying  : pcre-devel-8.32-17.el7.x86_64                                      4/33 
  Verifying  : automake-1.13.4-3.el7.noarch                                       5/33 
  Verifying  : m4-1.4.16-10.el7.x86_64                                            6/33 
  Verifying  : zlib-1.2.7-21.el7_9.x86_64                                         7/33 
  Verifying  : 1:openssl-devel-1.0.2k-26.el7_9.x86_64                             8/33 
  Verifying  : libsepol-devel-2.5-10.el7.x86_64                                   9/33 
  Verifying  : libverto-devel-0.2.5-4.el7.x86_64                                 10/33 
  Verifying  : perl-Test-Harness-3.28-3.el7.noarch                               11/33 
  Verifying  : 1:openssl-libs-1.0.2k-26.el7_9.x86_64                             12/33 
  Verifying  : perl-Thread-Queue-3.02-2.el7.noarch                               13/33 
  Verifying  : git-1.8.3.1-25.el7_9.x86_64                                       14/33 
  Verifying  : zlib-devel-1.2.7-21.el7_9.x86_64                                  15/33 
  Verifying  : libtool-2.4.2-22.el7_3.x86_64                                     16/33 
  Verifying  : perl-Data-Dumper-2.145-3.el7.x86_64                               17/33 
  Verifying  : krb5-libs-1.15.1-55.el7_9.x86_64                                  18/33 
  Verifying  : krb5-workstation-1.15.1-55.el7_9.x86_64                           19/33 
  Verifying  : perl-Git-1.8.3.1-25.el7_9.noarch                                  20/33 
  Verifying  : autoconf-2.69-11.el7.noarch                                       21/33 
  Verifying  : libkadm5-1.15.1-55.el7_9.x86_64                                   22/33 
  Verifying  : 1:openssl-1.0.2k-26.el7_9.x86_64                                  23/33 
  Verifying  : libcom_err-devel-1.42.9-19.el7.x86_64                             24/33 
  Verifying  : libkadm5-1.15.1-50.el7.x86_64                                     25/33 
  Verifying  : git-1.8.3.1-23.el7_8.x86_64                                       26/33 
  Verifying  : perl-Git-1.8.3.1-23.el7_8.noarch                                  27/33 
  Verifying  : krb5-workstation-1.15.1-50.el7.x86_64                             28/33 
  Verifying  : 1:openssl-1.0.2k-19.el7.x86_64                                    29/33 
  Verifying  : zlib-1.2.7-20.el7_9.x86_64                                        30/33 
  Verifying  : zlib-devel-1.2.7-20.el7_9.x86_64                                  31/33 
  Verifying  : 1:openssl-libs-1.0.2k-19.el7.x86_64                               32/33 
  Verifying  : krb5-libs-1.15.1-50.el7.x86_64                                    33/33 

Installed:
  autoconf.noarch 0:2.69-11.el7          automake.noarch 0:1.13.4-3.el7               
  libtool.x86_64 0:2.4.2-22.el7_3        openssl-devel.x86_64 1:1.0.2k-26.el7_9       
  pcre-devel.x86_64 0:8.32-17.el7       

Dependency Installed:
  keyutils-libs-devel.x86_64 0:1.5.8-3.el7    krb5-devel.x86_64 0:1.15.1-55.el7_9     
  libcom_err-devel.x86_64 0:1.42.9-19.el7     libselinux-devel.x86_64 0:2.5-15.el7    
  libsepol-devel.x86_64 0:2.5-10.el7          libverto-devel.x86_64 0:0.2.5-4.el7     
  m4.x86_64 0:1.4.16-10.el7                   perl-Data-Dumper.x86_64 0:2.145-3.el7   
  perl-Test-Harness.noarch 0:3.28-3.el7       perl-Thread-Queue.noarch 0:3.02-2.el7   

Updated:
  git.x86_64 0:1.8.3.1-25.el7_9                 zlib.x86_64 0:1.2.7-21.el7_9           
  zlib-devel.x86_64 0:1.2.7-21.el7_9           

Dependency Updated:
  krb5-libs.x86_64 0:1.15.1-55.el7_9       krb5-workstation.x86_64 0:1.15.1-55.el7_9   
  libkadm5.x86_64 0:1.15.1-55.el7_9        openssl.x86_64 1:1.0.2k-26.el7_9            
  openssl-libs.x86_64 1:1.0.2k-26.el7_9    perl-Git.noarch 0:1.8.3.1-25.el7_9          

Complete!
[root@bogon fastdfs]# ./make.sh 
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/local/include
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I../tracker -I/usr/include/fastcommon
../common/fdfs_global.c:20:31: fatal error: fastcommon/logger.h: No such file or directory
 #include "fastcommon/logger.h"
                               ^
compilation terminated.
make: *** [../common/fdfs_global.o] Error 1
[root@bogon fastdfs]# ls
client  COPYING-3_0.txt  HISTORY  INSTALL     README.md     storage  tracker
common  docker           images   make.sh     README_zh.md  systemd
conf    fastdfs.spec     init.d   php_client  setup.sh      test
[root@bogon fastdfs]# cd ..
[root@bogon ~]# ls
anaconda-ks.cfg  Documents  fastdfs  Music  original-ks.cfg  Public     Videos
Desktop          Downloads  logs     nacos  Pictures         Templates
[root@bogon ~]# cd fsfd
[root@bogon fsfd]# ls
fastdfs
[root@bogon fsfd]# git clone https://github.com/happyfish100/libfastcommon.git
Cloning into 'libfastcommon'...
remote: Enumerating objects: 4883, done.
remote: Counting objects: 100% (1147/1147), done.
remote: Compressing objects: 100% (383/383), done.
remote: Total 4883 (delta 818), reused 976 (delta 755), pack-reused 3736
Receiving objects: 100% (4883/4883), 2.01 MiB | 33.00 KiB/s, done.
Resolving deltas: 100% (3641/3641), done.
[root@bogon fsfd]# cd libfastcommon; git checkout V1.0.67
Note: checking out 'V1.0.67'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 4df1107... add function fc_safe_writev
[root@bogon libfastcommon]# ./make.sh clean && ./make.sh && ./make.sh install
rm -f 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 locked_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 common_blocked_queue.o multi_socket_client.o skiplist_set.o uniq_skiplist.o json_parser.o buffered_file_writer.o server_id_func.o fc_queue.o sorted_queue.o fc_memory.o shared_buffer.o thread_pool.o array_allocator.o sorted_array.o 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 locked_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 common_blocked_queue.lo multi_socket_client.lo skiplist_set.lo uniq_skiplist.lo json_parser.lo buffered_file_writer.lo server_id_func.lo fc_queue.lo sorted_queue.lo fc_memory.lo shared_buffer.lo thread_pool.lo array_allocator.lo sorted_array.lo  libfastcommon.so libfastcommon.a
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o hash.o hash.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o chain.o chain.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o shared_func.o shared_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ini_file_reader.o ini_file_reader.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o logger.o logger.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sockopt.o sockopt.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o base64.o base64.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sched_thread.o sched_thread.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o http_func.o http_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o md5.o md5.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o pthread_func.o pthread_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o local_ip_func.o local_ip_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o avl_tree.o avl_tree.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ioevent.o ioevent.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o ioevent_loop.o ioevent_loop.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_task_queue.o fast_task_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_timer.o fast_timer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o locked_timer.o locked_timer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o process_ctrl.o process_ctrl.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_mblock.o fast_mblock.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o connection_pool.o connection_pool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_mpool.o fast_mpool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_allocator.o fast_allocator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_buffer.o fast_buffer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o multi_skiplist.o multi_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o flat_skiplist.o flat_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o system_info.o system_info.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fast_blocked_queue.o fast_blocked_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o id_generator.o id_generator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o char_converter.o char_converter.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o char_convert_loader.o char_convert_loader.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o common_blocked_queue.o common_blocked_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o multi_socket_client.o multi_socket_client.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o skiplist_set.o skiplist_set.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o uniq_skiplist.o uniq_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o json_parser.o json_parser.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o buffered_file_writer.o buffered_file_writer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o server_id_func.o server_id_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fc_queue.o fc_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sorted_queue.o sorted_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o fc_memory.o fc_memory.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o shared_buffer.o shared_buffer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o thread_pool.o thread_pool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o array_allocator.o array_allocator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -o sorted_array.o sorted_array.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o hash.lo hash.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o chain.lo chain.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o shared_func.lo shared_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ini_file_reader.lo ini_file_reader.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o logger.lo logger.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sockopt.lo sockopt.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o base64.lo base64.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sched_thread.lo sched_thread.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o http_func.lo http_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o md5.lo md5.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o pthread_func.lo pthread_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o local_ip_func.lo local_ip_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o avl_tree.lo avl_tree.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ioevent.lo ioevent.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o ioevent_loop.lo ioevent_loop.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_task_queue.lo fast_task_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_timer.lo fast_timer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o locked_timer.lo locked_timer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o process_ctrl.lo process_ctrl.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_mblock.lo fast_mblock.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o connection_pool.lo connection_pool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_mpool.lo fast_mpool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_allocator.lo fast_allocator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_buffer.lo fast_buffer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o multi_skiplist.lo multi_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o flat_skiplist.lo flat_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o system_info.lo system_info.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fast_blocked_queue.lo fast_blocked_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o id_generator.lo id_generator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o char_converter.lo char_converter.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o char_convert_loader.lo char_convert_loader.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o common_blocked_queue.lo common_blocked_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o multi_socket_client.lo multi_socket_client.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o skiplist_set.lo skiplist_set.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o uniq_skiplist.lo uniq_skiplist.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o json_parser.lo json_parser.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o buffered_file_writer.lo buffered_file_writer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o server_id_func.lo server_id_func.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fc_queue.lo fc_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sorted_queue.lo sorted_queue.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o fc_memory.lo fc_memory.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o shared_buffer.lo shared_buffer.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o thread_pool.lo thread_pool.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o array_allocator.lo array_allocator.c  
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -c -fPIC -o sorted_array.lo sorted_array.c  
gcc -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 locked_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 common_blocked_queue.lo multi_socket_client.lo skiplist_set.lo uniq_skiplist.lo json_parser.lo buffered_file_writer.lo server_id_func.lo fc_queue.lo sorted_queue.lo fc_memory.lo shared_buffer.lo thread_pool.lo array_allocator.lo sorted_array.lo -lm -ldl -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 locked_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 common_blocked_queue.o multi_socket_client.o skiplist_set.o uniq_skiplist.o json_parser.o buffered_file_writer.o server_id_func.o fc_queue.o sorted_queue.o fc_memory.o shared_buffer.o thread_pool.o array_allocator.o sorted_array.o
mkdir -p /usr/lib64
mkdir -p /usr/lib
mkdir -p /usr/include/fastcommon
install -m 755 libfastcommon.so /usr/lib64
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 locked_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 common_blocked_queue.h multi_socket_client.h skiplist_set.h uniq_skiplist.h fc_list.h locked_list.h json_parser.h buffered_file_writer.h server_id_func.h fc_queue.h sorted_queue.h fc_memory.h shared_buffer.h thread_pool.h fc_atomic.h array_allocator.h sorted_array.h /usr/include/fastcommon
[root@bogon libfastcommon]# cd ..
[root@bogon fsfd]# ls
fastdfs  libfastcommon
[root@bogon fsfd]# git clone https://github.com/happyfish100/libserverframe.git
Cloning into 'libserverframe'...
fatal: unable to access 'https://github.com/happyfish100/libserverframe.git/': TCP connection reset by peer
[root@bogon fsfd]# git clone https://github.com/happyfish100/libserverframe.git
Cloning into 'libserverframe'...
fatal: unable to access 'https://github.com/happyfish100/libserverframe.git/': TCP connection reset by peer
[root@bogon fsfd]# git clone https://github.com/happyfish100/libserverframe.git
Cloning into 'libserverframe'...
fatal: unable to access 'https://github.com/happyfish100/libserverframe.git/': Failed connect to github.com:443; Connection refused
[root@bogon fsfd]# git clone https://gitee.com/fastdfs100/libserverframe.git
Cloning into 'libserverframe'...
remote: Enumerating objects: 2218, done.
remote: Counting objects: 100% (817/817), done.
remote: Compressing objects: 100% (803/803), done.
remote: Total 2218 (delta 568), reused 0 (delta 0), pack-reused 1401
Receiving objects: 100% (2218/2218), 452.70 KiB | 157.00 KiB/s, done.
Resolving deltas: 100% (1613/1613), done.
[root@bogon fsfd]# 
[root@bogon fsfd]# cd libserverframe; git checkout V1.1.26
Note: checking out 'V1.1.26'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at d513980... adapt newest fast_mblock_init_ex2
[root@bogon libserverframe]# ./make.sh clean && ./make.sh && ./make.sh install
rm -f sf_nio.lo sf_iov.lo sf_service.lo sf_global.lo sf_func.lo sf_util.lo sf_configs.lo sf_proto.lo sf_sharding_htable.lo sf_cluster_cfg.lo sf_connection_manager.lo sf_serializer.lo sf_binlog_index.lo sf_file_writer.lo sf_binlog_writer.lo sf_ordered_writer.lo sf_shared_mbuffer.lo idempotency/server/server_channel.lo idempotency/server/request_htable.lo idempotency/server/channel_htable.lo idempotency/server/server_handler.lo idempotency/server/request_metadata.lo idempotency/client/receipt_handler.lo idempotency/client/client_channel.lo libserverframe.so 
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_nio.lo sf_nio.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_iov.lo sf_iov.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_service.lo sf_service.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_global.lo sf_global.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_func.lo sf_func.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_util.lo sf_util.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_configs.lo sf_configs.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_proto.lo sf_proto.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_sharding_htable.lo sf_sharding_htable.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_cluster_cfg.lo sf_cluster_cfg.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_connection_manager.lo sf_connection_manager.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_serializer.lo sf_serializer.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_binlog_index.lo sf_binlog_index.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_file_writer.lo sf_file_writer.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_binlog_writer.lo sf_binlog_writer.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_ordered_writer.lo sf_ordered_writer.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o sf_shared_mbuffer.lo sf_shared_mbuffer.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/server/server_channel.lo idempotency/server/server_channel.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/server/request_htable.lo idempotency/server/request_htable.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/server/channel_htable.lo idempotency/server/channel_htable.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/server/server_handler.lo idempotency/server/server_handler.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/server/request_metadata.lo idempotency/server/request_metadata.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/client/receipt_handler.lo idempotency/client/receipt_handler.c  -Iinclude -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O3 -fPIC -c -o idempotency/client/client_channel.lo idempotency/client/client_channel.c  -Iinclude -I/usr/local/include
cc -shared -o libserverframe.so sf_nio.lo sf_iov.lo sf_service.lo sf_global.lo sf_func.lo sf_util.lo sf_configs.lo sf_proto.lo sf_sharding_htable.lo sf_cluster_cfg.lo sf_connection_manager.lo sf_serializer.lo sf_binlog_index.lo sf_file_writer.lo sf_binlog_writer.lo sf_ordered_writer.lo sf_shared_mbuffer.lo idempotency/server/server_channel.lo idempotency/server/request_htable.lo idempotency/server/channel_htable.lo idempotency/server/server_handler.lo idempotency/server/request_metadata.lo idempotency/client/receipt_handler.lo idempotency/client/client_channel.lo -lpthread -lfastcommon 
mkdir -p /usr/lib64
mkdir -p /usr/lib
mkdir -p /usr/include/sf/idempotency/common
mkdir -p /usr/include/sf/idempotency/server
mkdir -p /usr/include/sf/idempotency/client
install -m 755 libserverframe.so /usr/lib64
cp -f sf_types.h sf_global.h sf_define.h sf_nio.h sf_service.h sf_func.h sf_util.h sf_configs.h sf_proto.h sf_cluster_cfg.h sf_sharding_htable.h sf_connection_manager.h sf_serializer.h sf_binlog_index.h sf_file_writer.h sf_binlog_writer.h sf_ordered_writer.h sf_buffered_writer.h sf_iov.h sf_shared_mbuffer.h /usr/include/sf
cp -f idempotency/common/idempotency_types.h /usr/include/sf/idempotency/common
cp -f idempotency/server/server_types.h idempotency/server/server_channel.h idempotency/server/request_htable.h idempotency/server/channel_htable.h idempotency/server/server_handler.h idempotency/server/request_metadata.h /usr/include/sf/idempotency/server
cp -f idempotency/client/client_types.h idempotency/client/receipt_handler.h idempotency/client/client_channel.h idempotency/client/rpc_wrapper.h /usr/include/sf/idempotency/client
[root@bogon libserverframe]# cd ..
[root@bogon fsfd]# cd fastdfs; git checkout V6.9.5
Note: checking out 'V6.9.5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 7c58b14... common/fdfs_global.c: upgrade g_fdfs_version
[root@bogon fastdfs]# ./make.sh clean && ./make.sh && ./make.sh install
rm -f ../common/fdfs_global.o tracker_proto.o tracker_mem.o tracker_service.o tracker_status.o tracker_global.o tracker_func.o fdfs_server_id_func.o fdfs_shared_func.o tracker_relationship.o tracker_dump.o fdfs_trackerd
rm -f ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/fdfs_server_id_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_sync_func.o storage_service.o storage_sync.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 fdfs_storaged 
rm -f ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../tracker/fdfs_server_id_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o ../common/fdfs_global.lo ../common/fdfs_http_shared.lo ../common/mime_file_parser.lo ../tracker/tracker_proto.lo ../tracker/fdfs_shared_func.lo ../tracker/fdfs_server_id_func.lo ../storage/trunk_mgr/trunk_shared.lo tracker_client.lo client_func.lo client_global.lo storage_client.lo 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 fdfs_regenerate_filename libfdfsclient.a libfdfsclient.so
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_proto.o tracker_proto.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_mem.o tracker_mem.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_service.o tracker_service.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_status.o tracker_status.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_global.o tracker_global.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_func.o tracker_func.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o fdfs_server_id_func.o fdfs_server_id_func.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o fdfs_shared_func.o fdfs_shared_func.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_relationship.o tracker_relationship.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o tracker_dump.o tracker_dump.c  -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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_server_id_func.o fdfs_shared_func.o tracker_relationship.o tracker_dump.o -L/usr/lib64 -lpthread -lfastcommon -lserverframe -I../common -I/usr/local/include
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o storage_sync_func.o storage_sync_func.c  -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -o fdfs_storaged fdfs_storaged.c  ../common/fdfs_global.o ../tracker/fdfs_shared_func.o ../tracker/fdfs_server_id_func.o ../tracker/tracker_proto.o tracker_client_thread.o storage_global.o storage_func.o storage_sync_func.o storage_service.o storage_sync.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 -lserverframe -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_http_shared.o ../common/fdfs_http_shared.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/mime_file_parser.o ../common/mime_file_parser.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_global.lo ../common/fdfs_global.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../common/fdfs_http_shared.lo ../common/fdfs_http_shared.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../common/mime_file_parser.lo ../common/mime_file_parser.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../tracker/tracker_proto.lo ../tracker/tracker_proto.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../tracker/fdfs_shared_func.lo ../tracker/fdfs_shared_func.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o ../tracker/fdfs_server_id_func.lo ../tracker/fdfs_server_id_func.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o tracker_client.lo tracker_client.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o client_func.lo client_func.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o client_global.lo client_global.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -fPIC -o storage_client.lo storage_client.c  -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -o fdfs_regenerate_filename fdfs_regenerate_filename.c  ../common/fdfs_global.o ../common/fdfs_http_shared.o ../common/mime_file_parser.o ../tracker/tracker_proto.o ../tracker/fdfs_shared_func.o ../tracker/fdfs_server_id_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 -lserverframe -I../common -I../tracker -I/usr/include/fastcommon
ar rcs 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 ../tracker/fdfs_server_id_func.o ../storage/trunk_mgr/trunk_shared.o tracker_client.o client_func.o client_global.o storage_client.o
gcc -Wall -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -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 ../tracker/fdfs_server_id_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 -lserverframe
mkdir -p /usr/bin
mkdir -p /etc/fdfs
cp -f fdfs_trackerd /usr/bin
if [ ! -f /etc/fdfs/tracker.conf ]; then cp -f ../conf/tracker.conf /etc/fdfs/tracker.conf; fi
if [ ! -f /etc/fdfs/storage_ids.conf ]; then cp -f ../conf/storage_ids.conf /etc/fdfs/storage_ids.conf; fi
mkdir -p /usr/bin
mkdir -p /etc/fdfs
cp -f fdfs_storaged  /usr/bin
if [ ! -f /etc/fdfs/storage.conf ]; then cp -f ../conf/storage.conf /etc/fdfs/storage.conf; 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 fdfs_regenerate_filename /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 ../tracker/fdfs_server_id_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 ]; then cp -f ../conf/client.conf /etc/fdfs/client.conf; fi
[root@bogon fastdfs]# ./setup.sh /etc/fdfs
[root@bogon fastdfs]# /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
[root@bogon fastdfs]# ps -ef|grep fdfs
root      24545      1  0 01:45 ?        00:00:00 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
root      24577  18046  0 01:46 pts/0    00:00:00 grep --color=auto fdfs
[root@bogon fastdfs]# /usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
[root@bogon fastdfs]# ps -ef|grep fdfs
root      24545      1  0 01:45 ?        00:00:00 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
root      24604      1  0 01:46 ?        00:00:00 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
root      24613  18046  0 01:46 pts/0    00:00:00 grep --color=auto fdfs
[root@bogon fastdfs]# /usr/local/memcached/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /usr/local/memcached/memcached.pid
bash: /usr/local/memcached/bin/memcached: No such file or directory
[root@bogon fastdfs]# whereis memcached
memcached: /usr/bin/memcached /usr/share/man/man1/memcached.1.gz
[root@bogon fastdfs]# /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /opt/memcached/memcached.pid
[root@bogon fastdfs]# ps -ef|grep memcached
memcach+  18481      1  0 00:32 ?        00:00:00 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024
root      24755      1  0 01:48 ?        00:00:00 /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /opt/memcached/memcached.pid
root      24777  18046  0 01:48 pts/0    00:00:00 grep --color=auto memcached
[root@bogon fastdfs]# /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /opt/memcached/memcached.pid
[root@bogon fastdfs]# /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 -P /opt/memcached/memcached.pid
[root@bogon fastdfs]# ps -ef|grep memcached
memcach+  18481      1  0 00:32 ?        00:00:00 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024
root      24755      1  0 01:48 ?        00:00:00 /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 –P /opt/memcached/memcached.pid
root      24955  18046  0 01:50 pts/0    00:00:00 grep --color=auto memcached
[root@bogon fastdfs]# kill -9 24755
[root@bogon fastdfs]# /usr/bin/memcached -d -m 1024 -u root -p 11611 -c 10240 -P /opt/memcached/memcached.pid
[root@bogon fastdfs]# 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值