vsftpd 啟動篇
vsftpd啟動篇
vsftpd 有兩種運行方式,一種是standalone 一種是 via an inetd (或者 inetd or xinetd).
1、如何啟動
1)系統自帶的
- [root@Linux_win software]# service vsftpd restart
2)源包安裝:
- [root@Linux_win software]# /安裝路徑/vsftpd &
- [root@Linux_win vsftpd]# /sbin/service xinetd restart
或
- [root@Linux_win vsftpd]# /usr/local/sbin/vsftpd &
2、standlone啟動
具體的運行方式由參數listen決定。當listen參數值為YES時,VSFTPD單獨運行,我們可以使用腳本/etc/rc.d/init.d/vsftpd來啟動、關閉以及重啟VSFTPD。命令如下:
- /etc/rc.d/init.d/vsftpd start|stop|restart
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
內容如下:
- 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
- }
通過修改disable值為no或yes,并重新啟動xinetd,從而啟動或停止VSFTPD。
【編輯推薦】