Centos7卸載FastDFS6.1卸載(六)


今天由於安裝了高版本的fastdfs,與nginx不兼容,因此要卸載掉,重新安裝。

轉載:http://www.leftso.com/blog/244.html

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_tracker

-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 ~]#

1

 

看到全是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 ~]#

2

刪除:

[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已經卸載。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM