centos卸载FastDFS

1.停止服务

[root@bogon fdfs]#service fdfs_trackerd stop

[root@bogon fdfs]#service fdfs_storaged stop

2.通过storage.conf找到base_path和store_path然后删除

[root@bogon fdfs]# cat /etc/fdfs/storage.conf |grep base_path

base_path=/opt/fastdfs_storage

# store_path#, based 0, if store_path0 not exists, it's value is base_path

[root@bogon fdfs]#

[root@bogon fdfs]# cat /etc/fdfs/storage.conf |grep store_path

store_path_count=1

# store_path#, based 0, if store_path0 not exists, it's value is base_path

store_path0=/opt/fastdfs_storage_data

#store_path1=/home/yuqing/fastdfs2

# store_path (disk), value can be 1 to 256, default value is 256

[root@bogon fdfs]#

删除上面标红的路径,

注意,如果有未备份的文件,请先备份再删除

[root@bogon fdfs]# rm -rf /opt/fastdfs_storage

[root@bogon fdfs]# rm -rf /opt/fastdfs_storage_data

3.通过tracker.conf找到base_path然后删除

[root@bogon fdfs]# cat /etc/fdfs/tracker.conf |grep base_path

base_path=/opt/fastdfs_tracker

[root@bogon fdfs]#rm –rf /opt/fastdfs_tracker

4. 删除配置文件目录

[root@bogon ~]# pwd

/root

[root@bogon ~]# rm -rf /etc/fdfs/

[root@bogon ~]#

5. 删除链接文件

删除tracker的链接文件

#rm –rf /usr/local/bin/fdfs_trackerd

#rm –rf /usr/local/bin/stop.sh

#rm –rf /usr/local/bin/restart.sh

删除storage的链接文件

#rm –rf /usr/local/bin/fdfs_storaged

6. 删除/usr/bin目录下FastDFS的可执行文件

首先通过ls命令查看文件,然后删除

[root@bogon ~]# ll /usr/bin/fdfs_*

-rwxr-xr-x. 1 root root 262099 Jul 27 03:01 /usr/bin/fdfs_appender_test

-rwxr-xr-x. 1 root root 261796 Jul 27 03:01 /usr/bin/fdfs_appender_test1

-rwxr-xr-x. 1 root root 252140 Jul 27 03:01 /usr/bin/fdfs_append_file

-rwxr-xr-x. 1 root root 251274 Jul 27 03:01 /usr/bin/fdfs_crc32

-rwxr-xr-x. 1 root root 252223 Jul 27 03:01 /usr/bin/fdfs_delete_file

-rwxr-xr-x. 1 root root 253062 Jul 27 03:01 /usr/bin/fdfs_download_file

-rwxr-xr-x. 1 root root 252756 Jul 27 03:01 /usr/bin/fdfs_file_info

-rwxr-xr-x. 1 root root 265444 Jul 27 03:01 /usr/bin/fdfs_monitor

-rwxr-xr-x. 1 root root 878573 Jul 27 03:01 /usr/bin/fdfs_storaged

-rwxr-xr-x. 1 root root 268499 Jul 27 03:01 /usr/bin/fdfs_test

-rwxr-xr-x. 1 root root 267636 Jul 27 03:01 /usr/bin/fdfs_test1

-rwxr-xr-x. 1 root root 374059 Jul 27 03:01 /usr/bin/fdfs_trackerd

-rwxr-xr-x. 1 root root 253166 Jul 27 03:01 /usr/bin/fdfs_upload_appender

-rwxr-xr-x. 1 root root 254296 Jul 27 03:01 /usr/bin/fdfs_upload_file

[root@bogon ~]#

看到全是FastDFS的文件,删除:

[root@bogon ~]# rm -rf  /usr/bin/fdfs_*

[root@bogon ~]#

7. 删除/usr/include/目录下FastDFS相关的shell脚本

首先查看文件:

[root@bogon ~]# ll /usr/include/fastdfs/*

-rw-r--r--. 1 root root  3752 Jul 27 03:01 /usr/include/fastdfs/client_func.h

-rw-r--r--. 1 root root   794 Jul 27 03:01 /usr/include/fastdfs/client_global.h

-rw-r--r--. 1 root root   531 Jul 27 03:01 /usr/include/fastdfs/fdfs_client.h

-rw-r--r--. 1 root root   946 Jul 27 03:01 /usr/include/fastdfs/fdfs_define.h

-rw-r--r--. 1 root root  1005 Jul 27 03:01 /usr/include/fastdfs/fdfs_global.h

-rw-r--r--. 1 root root  3117 Jul 27 03:01 /usr/include/fastdfs/fdfs_http_shared.h

-rw-r--r--. 1 root root  2699 Jul 27 03:01 /usr/include/fastdfs/fdfs_shared_func.h

-rw-r--r--. 1 root root   990 Jul 27 03:01 /usr/include/fastdfs/mime_file_parser.h

-rw-r--r--. 1 root root 20104 Jul 27 03:01 /usr/include/fastdfs/storage_client1.h

-rw-r--r--. 1 root root 21755 Jul 27 03:01 /usr/include/fastdfs/storage_client.h

-rw-r--r--. 1 root root 11555 Jul 27 03:01 /usr/include/fastdfs/tracker_client.h

-rw-r--r--. 1 root root 11983 Jul 27 03:01 /usr/include/fastdfs/tracker_proto.h

-rw-r--r--. 1 root root 14349 Jul 27 03:01 /usr/include/fastdfs/tracker_types.h

-rw-r--r--. 1 root root  6945 Jul 27 03:01 /usr/include/fastdfs/trunk_shared.h

[root@bogon ~]#

删除:

[root@bogon ~]# rm -rf /usr/include/fastdfs/

[root@bogon ~]#

8.删除/usr/lib64目录下的库文件

查看:

[root@bogon lib64]# ll libfdfsclient*

-rwxr-xr-x. 1 root root 255538 Jul 27 03:01 libfdfsclient.so

删除:

[root@bogon lib64]# rm -rf libfdfsclient*

9.删除/usr/lib/目录下的库

查看:

[root@bogon lib64]# ll libfdfsclient*

-rwxr-xr-x. 1 root root 255538 Jul 27 03:01 libfdfsclient.so

删除:

[root@bogon lib64]# rm -rf libfdfsclient*

 经过以上步骤,FastDFS已经彻底卸载

你可能感兴趣的:(centos卸载FastDFS)