1.emerge --seach ftp 搜索自己中意的版本。我选定了proftp。
2.emerge proftp 安装
3.vim /etc/proftpd/proftpd.conf
ServerName "ceal-ftp2"
ServerType standalone
DefaultServer on
RequireValidShell off
#AuthPAM off
#AuthPAMConfig ftp
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
MaxInstances 30
# Set the user and group under which the server will run.
User lab
Group lab
# Normally, we want files to be overwriteable.
AllowOverwrite on
Allowall
# A basic anonymous configuration, with no upload directories.
User ftp
Group ftp
# We want clients to be able to login with "anonymous" as well as "ftp".
UserAlias anonymous ftp
# Limit the maximum number of anonymous logins.
MaxClients 10
# We want 'welcome.msg' displayed at login, and '.message' displayed
# in each newly chdired directory.
DisplayLogin welcome.msg
DisplayChdir .message
# Limit WRITE everywhere in the anonymous chroot.
Denyall
Denyall
Denyall
Denyall
Allowall
Denyall
Allowall
4.rc-update add proftpd default 添加到自启动中。
5./etc/init.d/proftpd start
这样ftp服务器就可以用了。
未解决的问题:
/etc/init.d/proftpd restart不行,不知为什么?希望高人指点。
阅读(1804) | 评论(0) | 转发(0) |