How to modify the default ftp port of amh in nginx

Source: Internet
Author: User

I have not updated my blog for three months. due to wordpress Automatic upgrade failure, it took several days, and then asked Xiao Zhang to help me manually restore the blog program and database. several days later, Mr. Zhang transferred my virtual space to vps. After several days, I uploaded the log attachments to the server. I want to change the topic one day and find that ftp is always unable to upload. during this period, John helped me test it several times, and carl also helped me test it. They can always connect normally. late the night before, I discussed this issue with John, but it was fruitless. if you suddenly think of an isp blocking port 80, then Port 21 is also possible. so I tried to modify the ftp port to solve the problem! A dirty word is coming out.

The vps is installed on the amh vm panel. Follow these steps to modify the ftp port:

The code is as follows: Copy code

# Log on to SSH

# Vi open the configuration file

Vi/etc/pure-ftpd.conf

# Insert the binding port configuration
Bind, 210
: Wq, save and exit vi

# Restart FTPwww.111cn.net

/Usr/local/sbin/redhat. init restart
 
# Configure iptables and add Port 211

Vi/etc/amh-iptables

# Insert
-A input-p tcp-m tcp-dport 211-j ACCEPT

# Execution

/Sbin/iptables-restore </etc/amh-iptables

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.