怎么改不了ftp的21端口号的?

问答中心分类: OneinStack怎么改不了ftp的21端口号的?
wlllbl asked 8 年 ago
vim /usr/local/pureftpd/etc/pure-ftpd.conf
在文件末尾增加   listen_port=8021
vi /etc/services
ftp 8021/tcp
ftp 8021/udp fsp fspd
vi /etc/sysconfig/iptables
增加一行
-A RH-Firewall-1-INPUT -p tcp -m state –state NEW -m tcp –dport 8021 -j ACCEPT
service pureftpd restart
这步骤哪些出错了?
[root@csa6df7c921 ~]# service pureftpd restart
Stopping pure-ftpd:
Starting pure-ftpd: /usr/local/pureftpd/etc/pure-ftpd.conf:446:1: property not found line 446: [listen_port=8021].
421 Configuration error
 
 

1 Answers
oneinstack answered 8 年 ago
参数不对吧