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

How to detect whether ftp is enabled in linux

青灯夜游
Release: 2022-03-25 16:38:42
Original
14606 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template