Wind Letter Net (ithov.com) original article: below we introduce three kinds of methods, let vsftpd boot time can automatically run, below we carry on the detailed explanation.
1. Use Chkconfig
[Root@localhost ~]# chkconfig--level vsftpd on
[root@localhost ~]# chkconfig--list | grep vsftpd
Vsftpd&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; 0: Close 1: Close 2: Close 3: Enable 4: Close 5: Enable 6: Off
In this way, VSFTPD is running on Level 3 and level 5!
2, modify/etc/rc.local file, join/ETC/RC.D/INIT.D/VSFTPD start this line.
[Root@localhost ~]# vi/etc/rc.local
#!/bin/sh
#
# This script would be executed *after* all the other init scripts.
# You can put your own initialization stuff with If you don ' t
# want to does the full Sys V style init stuff.
Touch/var/lock/subsys/local
/ETC/RC.D/INIT.D/VSFTPD start
3, modify/etc/rc.local file, join/ETC/RC.D/INIT.D/VSFTPD start this line.
[Root@localhost ~]# cat/etc/rc.local
#!/bin/sh
#
# This script would be executed *after* all the other init scripts.
# You can put your own initialization stuff with If you don ' t
# want to does the full Sys V style init stuff.
Touch/var/lock/subsys/local
/ETC/RC.D/INIT.D/VSFTPD start
The above three methods are introduced, after the modification completes, restarts the server.
[Root@localhost ~]# reboot
Broadcast Message from Root@localhost.localdomain
(/dev/pts/0) at 16:09 ...
The system is on down for reboot now!
Re-view the running status of the VSFTPD
[Root@localhost ~]# Service VSFTPD Status
VSFTPD (PID 1749) running ...
The system shows VSFTPD is running, so it has been implemented VSFTPD with the Linux system automatically start service!
In addition, two kinds of graphical setup methods are introduced.
Using the NTSYSV command
[Root@localhost ~]# Ntsysv
Find VSFTPD, "*" in the previous option, and then OK.
Use service configuration
In the System menu--> Management--> Service, the system will open the Service configuration interface,
Find the VSFTPD service, we can through the Service menu, select Custom, depending on the need to select the level of operation can be.