debian

Filezilla在Debian上的端口如何修改

小樊
53
2025-03-14 19:38:55
栏目: 智能运维

要在Debian上修改FileZilla的端口,您需要进行以下步骤:

修改FileZilla Server的端口

  1. 安装FileZilla Server(如果您还没有安装):
sudo apt update
sudo apt install filezilla-server
  1. 停止并禁用FileZilla Server(如果它正在运行):
sudo systemctl stop filezilla-server
sudo systemctl disable filezilla-server
  1. 编辑FileZilla Server配置文件
sudo nano /opt/filezilla-server/etc/settings.xml
<Setting name="LocalPort">21</Setting>
  1. 重启FileZilla Server以应用更改:
sudo systemctl restart filezilla-server
  1. 验证端口是否已更改

使用netstat命令查看FileZilla Server监听的端口:

netstat -tuln | grep filezilla-server

修改FileZilla客户端的端口

  1. 启动FileZilla并连接到您的FTP服务器。

  2. 进入传输设置

  1. 更改被动模式端口范围(如果您使用的是被动模式):
  1. 应用更改并保存设置。

请注意,修改端口可能会影响到您的防火墙设置,确保您的防火墙允许新端口的流量。如果您在修改端口后无法连接,请检查防火墙规则是否允许新端口的通信。

0
看了该问题的人还看了