centos卸載FastDFS

1.停止服務(wù)

[root@bogon fdfs]#service fdfs_trackerd stop

[root@bogon fdfs]#service fdfs_storaged stop

2.通過(guò)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]#

刪除上面標(biāo)紅的路徑,

注意,如果有未備份的文件,請(qǐng)先備份再刪除

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

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

3.通過(guò)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的可執(zhí)行文件

首先通過(guò)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相關(guān)的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目錄下的庫(kù)文件

查看:

[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/目錄下的庫(kù)

查看:

[root@bogon lib64]# ll libfdfsclient*

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

刪除:

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

?經(jīng)過(guò)以上步驟,FastDFS已經(jīng)徹底卸載

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容