How do I get vsftpd to run automatically when I boot?

Source: Internet
Author: User
Keywords Boot VSFTPD auto Run
Tags .net auto run close etc get http list local

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.