vsftpd启动篇
vsftpd 有两种运行方式,一种是standalone 一种是 via an inetd (或者 inetd or xinetd).
1、如何启动
1)系统自带的
[root@Linux_win software]# service vsftpd restart
- 1.
- 2.
2)源包安装:
[root@Linux_win software]# /安装路径/vsftpd &
[root@Linux_win vsftpd]# /sbin/service xinetd restart
- 1.
- 2.
- 3.
- 4.
或
[root@Linux_win vsftpd]# /usr/local/sbin/vsftpd &
- 1.
- 2.
2、standlone启动
具体的运行方式由参数listen决定。当listen参数值为YES时,VSFTPD单独运行,我们可以使用脚本/etc/rc.d/init.d/vsftpd来启动、关闭以及重启VSFTPD。命令如下:
/etc/rc.d/init.d/vsftpd start|stop|restart
- 1.
- 2.
3、xinetd启动,首先要将vsftpd.conf配置文件中的listen参数值改为NO。
其次,生成一个/etc/xinetd.d/vsftpd文件
[root@Linux_win vsftpd]#vi /etc/vsftpd/vsftpd.conf或vi /etc/vsftp.conf
listen=NO
[root@Linux_win vsftpd]vi /etc/xinetd.d/vsftpd
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
内容如下:
service vsftpd
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/vsftpd
port = 21
log_on_success += PID HOST DURATION
log_on_failure += HOST
}
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
通过修改disable值为no或yes,并重新启动xinetd,从而启动或停止VSFTPD。
【编辑推荐】