LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: Qlin

启动vsftpd的问题..[已解决]

[复制链接]
 楼主| 发表于 2005-1-16 18:16:14 | 显示全部楼层
我是自己编译的.而且还出现了点问题:

root@LinuxFans vsftpd-2.0.1 # make install
if [ -x /usr/local/sbin ]; then \
install -m 755 vsftpd /usr/local/sbin/vsftpd; \
else \
install -m 755 vsftpd /usr/sbin/vsftpd; fi
if [ -x /usr/local/man ]; then \
install -m 644 vsftpd.8 /usr/local/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/local/man/man5/vsftpd.conf.5; \
elif [ -x /usr/share/man ]; then \
install -m 644 vsftpd.8 /usr/share/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/share/man/man5/vsftpd.conf.5; \
else \
install -m 644 vsftpd.8 /usr/man/man8/vsftpd.8; \
install -m 644 vsftpd.conf.5 /usr/man/man5/vsftpd.conf.5; fi
install: 无法创建一般文件‘/usr/local/man/man8/vsftpd.8’: 没有那个文件或目录
install: 无法创建一般文件‘/usr/local/man/man5/vsftpd.conf.5’: 没有那个文件或目录
make: *** [install] 错误 1

然后我就照着Makefile手动把文件复制了过去..

再然后按着wingger兄的方法.
/etc/xinetd.d/vsftpd  没有vsftpd文件
编辑/etc/vsftpd.conf文件在顶部加listen=YES
启动还是
500 OOPS: vsftpd: not configured for standalone, must be started from inetd  这个提示.
回复 支持 反对

使用道具 举报

发表于 2005-1-16 18:37:13 | 显示全部楼层
你把你的源码里的文件直接copy至man下就行啦,好好看INSTALL文档
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 18:42:06 | 显示全部楼层
Post by wingger
你把你的源码里的文件直接copy至man下就行啦,好好看INSTALL文档


我是照着Makefile cp过去的.
回复 支持 反对

使用道具 举报

发表于 2005-1-16 18:45:41 | 显示全部楼层
[root@win xinetd.d]# cat vsftpd
# default: on
# description:
#   The vsftpd FTP server serves FTP connections. It uses
#   normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/local/sbin/vsftpd
#       server_args             =
#       log_on_success          += DURATION USERID
#       log_on_failure          += USERID
        nice                    = 10
        disable                 = YES
}

你试着建立一个vsfptd文件,加入以下内容,并把disable改成YES,然后停止此服务service xinetd stop

再启动看看,如果不是xinetd那一定就是inetd了,你是用什么LINUX?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:01:49 | 显示全部楼层
用的gentoo .在/etc/init.d/里有vsftpd 如下:
root@LinuxFans init.d # cat vsftpd
#!/sbin/runscript
# Copyright 2003-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/net-ftp/vsftpd/files/vsftpd.init.d,v 1.4 2004 /10/01 03:16:13 jforman Exp $

depend() {
        need net
        use dns logger
}

checkconfig() {
        if [ ! -e ${VSFTPD_CONF} ] ; then
                eerror "lease setup ${VSFTPD_CONF} before starting vsftpd"
                eerror "There are sample configurations in /usr/share/doc/vsftpd "
                return 1
        else
                ( grep -q "^background=YES" ${VSFTPD_CONF}  && grep -q "^listen= YES" ${VSFTPD_CONF} )  || {
                eerror "${VSFTPD_CONF} must contain background=YES and listen=YE S"
                eerror "in order to start vsftpd from /etc/init.d/vsftpd"
                return 2
        }
        fi
}

start() {
        checkconfig || return 1
        ebegin "Starting vsftpd"
        start-stop-daemon --start --quiet \
                --exec /usr/sbin/vsftpd ${VSFTPD_CONF}
        eend $?
}

stop() {
        ebegin "Stopping vsftpd"
        start-stop-daemon --stop --quiet --exec /usr/sbin/vsftpd
        eend $?
}
root@LinuxFans init.d #
回复 支持 反对

使用道具 举报

发表于 2005-1-16 19:14:41 | 显示全部楼层
我的是REDHAT,你找到以xinetd或inetd方式运行的vsftpd,把它关闭了,就可以了,问题肯定是因vsftpd已经用xinetd或inetd方式监听了,所以会出这个错,

service vsftpd stop试试
回复 支持 反对

使用道具 举报

发表于 2005-1-16 19:26:20 | 显示全部楼层
Listen=yes
有没有区分大小写呢?
listen=YES,
提示很明显啊,你的standalone配置肯定有问题,一定是你vsftpd.conf没配好,一个是我上面说的那些原因
如果不是,那我也不知道了,那你可以试试把listen=YES注释掉,而用xinetd来启动
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:48:41 | 显示全部楼层
谢谢wingger兄..虽然还是不行..但一定是我什么地方没做好.准备重装一下再试试..谢谢.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 20:29:30 | 显示全部楼层
重装后解决..谢谢wingger兄   :thank
回复 支持 反对

使用道具 举报

发表于 2005-1-16 21:28:32 | 显示全部楼层
我晕!呵呵,咋回事
回复 支持 反对

使用道具 举报

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

本版积分规则

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