作者ficecmiraror (秘密ID)
看板Linux
標題Re: [問題] FTP架不起來~QQ~
時間Mon Oct 6 13:46:53 2008
※ 引述《ficecmiraror (秘密ID)》之銘言:
: 如題
: 不管我用VSFTPD或是PROFTPD都一樣
: 去查NETSTAT時都會出現這個問題
: tcp6 0 0 :::21 :::* LISTEN
: 請問一下~
: 是否要加什麼參數才能讓他起來@@?
: (現在我是用VSFTPD)
設定檔:
###########about host###########
listen=YES
listen_ipv6=YES
use_localtime=YES
pasv_enable=YES
xferlog_enable=YES
write_enable=NO
accept_timeout=60
idle_session_timeout=300
connect_from_port_20=YES
pasv_min_port=65400
pasv_max_port=65430
banner_file=/home/mirrorfca/welcome.txt
###########about host###########
###########about user###########
dirmessage_enable=YES
local_enable=YES
local_max_rate=3000
chroot_local_user=YES
chroot_list_enable=NO
anonymous_enable=NO
###########about user###########
我的OS是UBUNTU
拍謝~之前一直以為那個要在其他地方設定才會好@@~
因為之前我裝PROFTPD也有這問題
換過來VSFTPD後也有這問題
所以我才會這麼認為@@~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.102.201
1F:推 Adama:所以你的問題?port 21有listen的話代表ftpd起來了啊 10/06 13:49
2F:→ ficecmiraror:剛重開機後~ sudo netstat -tulnp| grep 21變沒反應 10/06 13:50
3F:→ Adama:再不然用/etc/init.d/vsftpd status確定一下 10/06 13:50
4F:→ ficecmiraror:但我的顯示和鳥哥的不同~這是因為OS不同嗎@@? 10/06 13:50
5F:→ Adama:是那裡不同你嘛說清楚 orz 10/06 13:51
6F:→ Adama:還是在服務裡你沒有把vsftpd設成隨開機啟動? 10/06 13:52
7F:→ ficecmiraror:tcp6 0 0 :::21 :::* LINTEN<=我的 10/06 13:52
8F:→ ficecmiraror:tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 11689/ 10/06 13:53
9F:→ ficecmiraror:鳥哥的~ 10/06 13:53
10F:→ ficecmiraror:我確定過了~VSFTPD有隨開機啟動~ 10/06 13:54
11F:推 Adama:看起來是一樣的,差別是鳥哥是IPv4你的是IPv6 10/06 13:54
12F:→ ficecmiraror:但我下/etc/init.d/vsftpd start 10/06 13:54
13F:→ ficecmiraror:一樣無法連到@@~ 10/06 13:55
14F:推 hippotsai:防火牆有開嗎? 10/06 14:02
15F:→ ficecmiraror:剛電腦重開後~連TCP6那行都沒出來了~Orz 10/06 15:27
16F:→ ficecmiraror:請問一下~為什麼我下SUDO /etc/init.d/vsftpd star 10/06 15:28
17F:→ ficecmiraror:都沒反應~QQ? 10/06 15:28
18F:→ ficecmiraror:我下sudo /etc/init.d/vsftpd restart後~他會說 10/06 15:33
19F:→ ficecmiraror: * Stopping FTP server: vsftpd 10/06 15:33
20F:→ ficecmiraror:No /usr/sbin/vsftpd found running; none killed. 10/06 15:34
21F:→ ficecmiraror: * Starting FTP server: vsftpd [ OK ] 10/06 15:34
22F:→ ficecmiraror:但一樣沒有出現21的PORT 10/06 15:34
23F:推 legnaleurc:先用localhost連連看 10/06 16:14
24F:→ ficecmiraror:後來我放棄重灌了~Orz~結果變成可看不可讀。。。 10/06 16:29
25F:→ ficecmiraror:不過大概知道原因在那裡了@@~現在我的問題應該 10/06 16:35
26F:→ ficecmiraror:是權限 10/06 16:35