现在的位置: 首页 > 综合 > 正文

FreeBSD 开启 FTP服务

2013年07月13日 ⁄ 综合 ⁄ 共 291字 ⁄ 字号 评论关闭
使用 inetd 的方式启动 FTP 服务器,方法如下:

1. 把 那两行注释去掉

#vim /etc/inetd.conf

ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l

ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l

然后在 /etc/rc.conf 中加入:

2. #vim /etc/rc.conf

inetd_enable="YES"

3. 启动ftpd服务

#/usr/libexec/ftpd -D -l -l

4. 使用命令查看打开的端口:netstat -an(不知道看一下又什么用,我的刚开始不运行这条命令,ftp就连接不了)

抱歉!评论已关闭.