vsftpd的FAQ里就有:
Q) Help! Can I change the port that vsftpd runs on?
A1) Yes. If you are running vsftpd in standalone mode, use the "listen_port"
directive in vsftpd.conf.
A2) Yes. If you are running vsftpd from an inetd or xinetd program, this
becomes an inetd or xinetd problem. You must change the inetd or xinetd
configuration files (perhaps /etc/inetd.conf or /etc/xinetd.d/vsftpd)
A2就是把inetd.conf里的监听端口改一下,比如:
21 stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
改成
8888 stream tcp nowait root /usr/sbin/in.ftpd in.ftpd
就成了在8888端口监听了。