FTP关闭后无法启动

由 cashlu 在 07-21-2004 15:09 发表:

FTP关闭后无法启动

我今天刚学会用proftp架设FTP服务器,可没多久就出问题了,就是我运行了service proftpd stop成功关闭服务之后,再运行service proftpd start,出现错误提示:

[root@cash cashlu]# service proftpd start

正在启动 proftpd: - Fatal:

 1<anonymous>: directive not allowed in <anonymous> context [失败 ]   
 2  
 3  
 4  
 5以下是我的proftpd.conf的内容:   
 6  
 7# This is a basic ProFTPD configuration file (rename it to   
 8  
 9# 'proftpd.conf' for actual use. It establishes a single server   
10  
11# and a single anonymous login. It assumes that you have a user/group   
12  
13# "nobody" and "ftp" for normal operation and anon.   
14  
15  
16  
17ServerName "FTP Server"   
18  
19ServerType standalone   
20  
21DefaultServer on   
22  
23  
24  
25# Allow FTP resuming.   
26  
27# Remember to set to off if you have an incoming ftp for upload.   
28  
29AllowStoreRestart on   
30  
31  
32  
33# Port 21 is the standard FTP port.   
34  
35Port 21   
36  
37  
38  
39# Umask 022 is a good standard umask to prevent new dirs and files   
40  
41# from being group and world writable.   
42  
43Umask 022   
44  
45  
46  
47# To prevent DoS attacks, set the maximum number of child processes   
48  
49# to 30. If you need to allow more than 30 concurrent connections   
50  
51# at once, simply increase this value. Note that this ONLY works   
52  
53# in standalone mode, in inetd mode you should use an inetd server   
54  
55# that allows you to limit maximum number of processes per service   
56  
57# (such as xinetd).   
58  
59MaxInstances 30   
60  
61  
62  
63# Set the user and group under which the server will run.   
64  
65User nobody   
66  
67Group nobody   
68  
69RequireValidShell off   
70  
71# To cause every FTP user to be "jailed" (chrooted) into their home   
72  
73# directory, uncomment this line.   
74  
75#DefaultRoot ~   
76  
77  
78  
79# Normally, we want files to be overwriteable.   
80  
81<directory></directory>   
82  
83AllowOverwrite on   
84  
85
86<anonymous ftp="" home="">   
87  
88# Needed for NIS.   
89  
90  
91  
92# PersistentPasswd off   
93  
94  
95  
96# Default root can be used to put users in a chroot environment.   
97  
98# As an</anonymous></anonymous></anonymous>
Published At
Categories with 服务器类
Tagged with
comments powered by Disqus