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 |