1. first, check whether vsftpdrpm-qa | grepvsftpd is installed in the system. for example, if the following result is displayed, install vsfptd3.0 ftp server [root @ localhostsbin] # rpm-qa | grepvsftpdvsftpd-3.0.2-9.el7.x86_64 1. first, check whether vsftpd is installed in the system.
Rpm-qa | grep vsftpd
For example, if the following result is displayed, it indicates that the ftp server with vsfptd3.0 is installed.
[Root @ localhost sbin] # rpm-qa | grep vsftpd
Vsftpd-3.0.2-9.el7.x86_64
2. stop the vsftpd server
/Bin/sytemctl stop vsftpd. service
3. run the rpm command to clear
Rpm e vsftpd-3.0.2-9.e17.x86_64
[Root @ localhost sbin] # rpm-e vsftpd-3.0.2-9.e17.x86_64
Error: software package vsftpd-3.0.2-9.e17.x86_64 not installed
[Root @ localhost sbin] # rpm-e vsftpd-3.0.2-9.el7.x86_64
Warning:/etc/vsftpd. conf has been saved as/etc/vsftpd. conf. rpmsave
Warning/etc/vsftpd/user_list has been saved as/etc/vsftpd/user_list.rpmsave
Warning:/etc/vsftpd/ftpusers has been saved as/etc/vsftpd/ftpusers. rpmsave
[Root @ localhost sbin] #
After vsftpd software is installed, several important configuration files are automatically retained. If you are sure you do not need it, you can also manually delete it.
Run the rm command.
4. cleanup of other residual files
Other residual files may but may not completely include: files in the./etc/vsftpd/directory B. The configured system auto-start service and so on. These operations need to be handled manually. of course they do not need to be handled, which has little impact.
You can run the following command:Find/-name '* vsftpd *'Find the file that contains vsftpd, and delete it.