vsftpd dead but subsys locked 的解决方法

续前面的:
C:/Program Files/SecureCRT> vsftp -v -p 21 xiong@192.168.203.132
--因为我们的vsftp的port是 21.
VSFTP 版本 5.2.2 (build 92) 启动。 (使用 SSH2Core 版本 4.1.0.267。)
[本地]: SSH2Core version 4.1.0.267
[本地]: Connecting to 192.168.203.132:21 ...
[本地]: Changing state from STATE_NOT_CONNECTED to STATE_EXPECT_KEX_INIT.
[本地]: Using protocol SSH2
[本地]: PRE-IDENT: 220 (vsFTPd 1.1.3)
[本地]: Using protocol SSH2
[本地]: PRE-IDENT: 530 Please login with USER and PASS.

[本地]: Changing state from STATE_EXPECT_KEX_INIT to STATE_TRANSPORT_STOPPING.
[本地]: Changing state from STATE_TRANSPORT_STOPPING to STATE_CLOSING.
[本地]: Changing state from STATE_CLOSING to STATE_CLOSED.
[本地]: Connected for 44 seconds, 38 bytes sent, 116 bytes received

C:/Program Files/SecureCRT> ftp 192.168.203.132
Connected to 192.168.203.132.
220 (vsFTPd 1.1.3)
User (192.168.203.132:(none)): xiong
331 Please specify the password.
Password:
230-Welcome to Xiong's Server! Have fun!
230 Login successful. Have fun.
ftp> pwd
257 "/home/xiong"

重启vsftpd服务时,发生了一个" vsftpd dead but subsys locked "错误.
解决方法如下:
1. vsftpd dead but subsys locked
在开启vsftpd 时,出现“vsftpd dead but subsys locked”的提示,
解决方法:service xinetd stop
service vsftpd start
service xinetd start

如果还不行,则可能是:超级进程中有个gssftp和vsftpd冲突;屏蔽gssftp后再重起xinet和vsftpd就ok。
步骤如下:
用netstat -tlunp|grep 21查看是否用其它FTP
再grep -i ftp /etc/xinetd.d/*
/etc/xinetd.d/gssftp:# description: The kerberized FTP server accepts FTP connections
/etc/xinetd.d/gssftp:service ftp
/etc/xinetd.d/gssftp: server = /usr/kerberos/sbin/ftpd
/etc/xinetd.d/rsync:# description: The rsync server is a good addition to an ftp server, as it
修改/etc/xinetd.d/gssftp这个文件,
disable = no改成disable = yes
然后,重启xinetd,service xinetd restart
再重启动vsftpd, service vsftpd restart


2.连接FTP server时,出现 “421 Service not available.
此时查看[root@localhost ~]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#

解决方法:
在/etc/hosts.allow 最后加入一句“vsftpd:ALL”:
vi /etc/hosts.allow
...
...
vsftpd:ALL


附常见的解决方法(我试过,不行. vsftpd <wbr>dead <wbr>but <wbr>subsys <wbr>locked <wbr>的解决方法):

In RHEL AS3Update3, after started the vsftp ftp server and connected to it from another computer,
it prompted the user neaded an authorization and stopped there. Then when you use the server configure tools to restart the vsftp service ,
it says "vsftpd dead but subsys locked". I used the followed method to figure it out.

Method 1). Open the /etc/xinit.d/gssftp file. change the line "Server_args= -l -a " to "Server_args=-l "
this will resolve the authorization problem and can connect the ftp server successfully. but the password verify process is time consumer.

Method 2). Open the /etc/xinit.d/gssftp file, change the line "disable=no" to "disable=yes"
this will make the vsftp server working as a stand alone demon and the connection is fluent.
After this operation, you must use service vsftpd restart to restart the vsftp server.


顺带说一下,有google的时候,有人认为可能是配置文件是有不明字符.
所以就需要找出除 Comment之外的有用的设置.
[root@vmserver etc]# more /etc/vsftpd/vsftpd.conf |grep ^[^#]
anonymous_enable=YES
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
pam_service_name=vsftpd
userlist_enable=YES
listen=YES
tcp_wrappers=YES
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值