阅读 106

ftp服务:standone模式和xinetd模式启动vsftp

1.standard模式启动

修改/etc/vsftpd.conf 

 

 

/etc/xinetd.d/vsftpd

中添加disable=yes

然后启动vsftpd服务

service vsftpd start

service vsftpd stop

service vsftpd status

 

 

2.xinetd模式启动

/etc/vsftpd.conf 中listen=no,

 

 /etc/xinetd.d/vsftpd

中添加disable=no

然后重启xinetd服务:

service xinetd start或者rcxinetd  start

 

3.检查:

1.lsof -i :21 查看端口监听

2. service vsftpd status 查看服务状态 

3.ftp 127.0.0.1 本地服务器成功

 

 

 

 

 

 

三、设置vsftp自启动的方法

inux系统ftp工具是必备软件,vsfpt是诸多ftp工具中最受站长欢迎,使用非常方便的工具之一。我们都不想系统重启或者某些原因导致FTP不能正常工作,那么将VSFTP加入开机启动是非常必要的。vsftpd有两种启动方式 自启动或者由xinetd服务启动,修改配置文件中的listen可以设置启动方式 listen=YES则为自启动,NO则由xinetd启动。需要注意的是,采用自启动的方式命令:/usr/local/sbin/vsftpd启动后当前终端会被占据。永久打开或则关闭使用下面命令即可: 
chkconfig iptables on 
chkconfig iptables off 

 

即时生效:重启后还原 
service iptables start 
service iptables stop  


方法一-常用方便的方法 
[root@localhost /]# chkconfig --list|grep vsftpd 

上面显示vsftpd 在linux任何工作等级下都没有自启动 

 

[root@localhost /]# chkconfig vsftpd on              设置vsftpd自启动 

[root@localhost /]# chkconfig --list|grep vsftpd 
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off 
上面显示表明vsftpd在Linux工作2,3,4,5等级下都会自启动服务。 


方法二- 修改rc.local文件1: 
修改文件 /etc/rc.local , 把行/usr/local/sbin/vsftpd & 插入文件中,以实现开机自动启动。 


方法三-修改rc.local文件2: 
修改/etc/rc.local,加入/etc/rc.d/init.d/vsftpd  start 

 

原文:https://www.cnblogs.com/feray-via/p/14765614.html

文章分类
代码人生
版权声明:本站是系统测试站点,无实际运营。本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件至 XXXXXXo@163.com 举报,一经查实,本站将立刻删除。
相关推荐