Solution to ftp connection failure suddenly

Source: Internet
Author: User
Tags ftp connection

Ideas:

1. Is selinux enabled?
2. Whether the specified ftp port is added to iptbales
3. Whether the FTP service is enabled

SEARCH command:

1. cat:/etc/selinux/config
Check whether SELINUX = disable is disabled.

2. cat/etc/sysconfig/iptables
Check whether the firewall has enabled the specified ftp port

3,
1) run the getsebool ftpd_disable_trans command to check the current status if it is not on
2) enter the command: setsebool ftpd_disable_trans 1
Of course, you can also add the-P Parameter so that you do not need to enter this command every time you start the system.
Setsebool-P ftpd_disable_trans 1

At last, we found that the ftp status is on. If it is enabled, ftp can be connected.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.