LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 965|回复: 5

how to set a ftp server ?

[复制链接]
发表于 2004-4-3 23:48:29 | 显示全部楼层 |阅读模式
I already configure the /etc/inetd file ,command the "ftpd" line
Next start the /usr/libexec/ftpd process ,but i could not found process @@ why??
open fptd again,not found again

The client can upload file at my ftp server .please help me ! thanks.



oh.please move it to BSD forum.
发表于 2004-4-4 11:36:22 | 显示全部楼层
呵呵,这与程序设计无关,还是移动到BSD版吧。
发表于 2004-4-4 17:20:15 | 显示全部楼层

回复: how to set a ftp server ?

最初由 777 发表
I already configure the /etc/inetd file ,command the "ftpd" line
Next start the /usr/libexec/ftpd process ,but i could not found process @@ why??
open fptd again,not found again

The client can upload file at my ftp server .please help me ! thanks.



oh.please move it to BSD forum.


Well, there are many ways to configure a ftp server, if you want to use ftpd come with freebsd standard distrib:

1. uncomment the line at /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
2. add inetd_enable="YES" at /etc/rc.conf
3. reboot or kill -HUP `cat /var/run/inetd.pid` if (2) is already in your config
4. check port 21 as following:
$netstat -an | grep -i listen | grep 21
5. do a test with: ftp yourip
 楼主| 发表于 2004-4-4 23:36:52 | 显示全部楼层
thinsk to werix!!
发表于 2004-4-4 23:42:26 | 显示全部楼层
thank werix....
发表于 2004-7-20 21:44:00 | 显示全部楼层

回复: 回复: how to set a ftp server ?

最初由 werix 发表
Well, there are many ways to configure a ftp server, if you want to use ftpd come with freebsd standard distrib:

1. uncomment the line at /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
2. add inetd_enable="YES" at /etc/rc.conf
3. reboot or kill -HUP `cat /var/run/inetd.pid` if (2) is already in your config
4. check port 21 as following:
$netstat -an | grep -i listen | grep 21
5. do a test with: ftp yourip


i do,but not work

# netstat -an | grep -i listen | grep 21
# ftp 218.81.177.167
ftp: connect: Connection refused
ftp>
ftp>
Suspended
# ping 218.81.177.167
PING 218.81.177.167 (218.81.177.167): 56 data bytes
64 bytes from 218.81.177.167: icmp_seq=0 ttl=64 time=0.189 ms
64 bytes from 218.81.177.167: icmp_seq=1 ttl=64 time=0.182 ms

why?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表