Home  >  Article  >  Operation and Maintenance  >  How to detect whether ftp is enabled in linux

How to detect whether ftp is enabled in linux

青灯夜游
青灯夜游Original
2022-03-25 16:35:2514462browse

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.

How to detect whether ftp is enabled in linux

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.

How to detect whether ftp is enabled in linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn