Home > Article > Operation and Maintenance > How to detect whether ftp is enabled in linux
Detection method: 1. Execute the "ps -ef | grep ftp" command. If the output information contains process information containing ftp, it is enabled. If not, it is not enabled. 2. Execute "service vsftpd status "command, if "is running" is output, it means ftp is enabled.
The operating environment of this tutorial: Ubuntu 16.04 system, Dell G3 computer.
Linux method to detect whether ftp is enabled
Method 1: Query whether the process that provides FTP service exists
ps -ef | grep ftp
If no process information containing the ftp keyword is found, it can be determined that the service is not started.
If it starts, it means the startup is successful
Method 2: Query the switch status of the vsftpd service
vsftpd is the most common FTP server. Generally, Linux systems use vsftpd to build an FTP service environment.
service vsftpd status
At this time, you will see the current switch status of ftp
The displayed information is is running
(indicated as startup status)
If is is stopped
(indicated as closed state)
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to detect whether ftp is enabled in linux. For more information, please follow other related articles on the PHP Chinese website!