Linux下proftpd的安装配置与管理方法
2007-06-12 00:00:00 来源:WEB开发网核心提示: 2.启动:[root@localhost root]# /usr/local/sbin/proftpd -c/usr/local/etc/proftpd.conf-c选项用来指定配置文件的位置,不指定的话默认位置是 /usr/local/etc/proftpd.conf ,Linux下proft
2.启动:
[root@localhost root]
# /usr/local/sbin/proftpd -c
/usr/local/etc/proftpd.conf
-c选项用来指定配置文件的位置,不指定的话默认位置是 /usr/local/etc/proftpd.conf 。
正常情况下proftpd应该启动了,ps aux 应该可以查到proftpd的进程,或netstat -an 也可以看到21端口的服务已经起来了。(ftp默认端口)
如果要设置开机自启动ftp server,只需在/etc/rc.d/rc.local中加入一行
/usr/local/sbin/proftpd
#!/bin/sh
#
# This script will be executed
*after* all the other init scripts.
# You can put your own
initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/local/sbin/proftpd
四.软件的配置。1.初始配置文件
默认配置文件的位置为:
/usr/local/etc/proftpd.conf (如果文件不存在可以从压缩包中把配置文件样例拷贝过来即可)下面逐项分析其中一些常选项:(#后面的部分是注释)
# This is a basic ProFTPD
configuration file
(rename it to
# 'proftpd.conf' for actual use.
It establishes a single server
# and a single anonymous login.
It assumes that you have a user/group
# "nobody" and "ftp" for normal
operation and anon.
ServerName "
ServerType
standalone
DefaultServer
on
# Port 21 is the standard FTP port.
Port 21
更多精彩
赞助商链接