Linux上的ftp配置,及错误500 OOPS: could not bind listening IPv4 socket解决
2016-12-20 10:38
323 查看
像其它守护程序一样,vsftpd提供了standalone和inetd(inetd或xinetd)两种运行模式。简单解释一下,standalone一次性启动,运行期间一直驻留在内存中,优点是对接入信号反应快,缺点是损耗了一定的系统资源,因此经常应用于对实时反应要求较高的专业FTP服务器。inetd恰恰相反,由于只在外部连接发送请求时才调用FTP进程,因此不适合应用在同时连接数量较多的系统。此外,inetd模式不占用系统资源。除了反应速度和占用资源两方面的影响外,vsftpd还提供了一些额外的高级功能,如inetd模式支持per_IP(单一IP)限制,而standalone模式则更有利于PAM验证功能的应用。
1.xinetd运行模式
大多数较新的系统采用的是xinetd超级服务守护进程。使用“vi /etc/xinetd.d/vsftpd” 看一下它的内容,如下:
disable = no
socket_type = stream
wait = no
# 这表示设备是激活的,它正在使用标准的TCP Sockets。
如果“/etc/vsftpd.conf”中的有选项为“listen=YES”,注销它
------------
切换到root用户,输入命令vi /etc/vsftpd.conf
去掉local_enable=YES和write_enable=YES前面的#号,将anonymous_enable = YES的值改为NO,注释掉listen=YES(改为#listen=YES),保存退出。
------------
最后,重启xinetd,命令如下:
$ /etc/rc.d/init.d/xinetd restart
需要注意的是,“/etc/xinetd.d”目录中仅能开启一个FTP服务。
2.standalone模式
standalone模式便于实现PAM验证功能。进入这种模式首先要关闭xinetd下的vsftpd,设置
“disable = yes”,或者注销掉“/etc/inetd.conf”中相应的行。然后修改“/etc/vsftpd.con
f”中的选项为“listen=YES”。
1.xinetd运行模式
大多数较新的系统采用的是xinetd超级服务守护进程。使用“vi /etc/xinetd.d/vsftpd” 看一下它的内容,如下:
disable = no
socket_type = stream
wait = no
# 这表示设备是激活的,它正在使用标准的TCP Sockets。
如果“/etc/vsftpd.conf”中的有选项为“listen=YES”,注销它
------------
切换到root用户,输入命令vi /etc/vsftpd.conf
去掉local_enable=YES和write_enable=YES前面的#号,将anonymous_enable = YES的值改为NO,注释掉listen=YES(改为#listen=YES),保存退出。
------------
最后,重启xinetd,命令如下:
$ /etc/rc.d/init.d/xinetd restart
需要注意的是,“/etc/xinetd.d”目录中仅能开启一个FTP服务。
2.standalone模式
standalone模式便于实现PAM验证功能。进入这种模式首先要关闭xinetd下的vsftpd,设置
“disable = yes”,或者注销掉“/etc/inetd.conf”中相应的行。然后修改“/etc/vsftpd.con
f”中的选项为“listen=YES”。
相关文章推荐
- Linux上的ftp配置,及错误500 OOPS: could not bind listening IPv4 socket解决
- ftp 500 OOPS: could not bind listening IPv4 socket
- vsftp:500 OOPS: could not bind listening IPv4 socket 解决办法
- vsftp:500 OOPS: could not bind listening IPv4 socket 解决办法
- 出现500 OOPS: could not bind listening IPv4 socket的原因和解决办法
- vsftp:500 OOPS: could not bind listening IPv4 socket 解决办法
- vsftpd could not bind listening IPv4 socket解决
- 500 OOPS: could not bind listening IPv4 socket 错误
- vsftp:500 OOPS: could not bind listening IPv4 sock
- could not bind listening IPv4 socket错误
- vsftpd :could not bind listening IPv4 socket
- 解决Eclipse error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:
- 解决android sdk 运行出现 could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:的问题
- Linux:解决Permission denied: make_sock: could not bind to address
- 解决linux FTP 553 Could not create file
- linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)
- 解决在AS中使用Genymotion时发生error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037:
- 解决android sdk 运行出现 could not install -smartsocket- listener- cannot bind to 127.0.0.1-5037-的问题
- 启动SUSE11,解决问题Could not create ICE listening socket: Cannot establish any listening sockets
- linux 下apche无法监听端口解决办法(Permission denied: make_sock: could not bind to address)