Linux starts, Ftp service starts automatically

There are two ways to start the ftp server, restart the linux system after the setting is complete

Normal start server vsftpd restart

Auto start at boot

method one:

[root@localhost ~]# chkconfig --list|grep vsftpd

vsftpd          0:off   1:off   2:off    3:off    4:off    5:off    6:off

 

[root@localhost ~]#  chkconfig vsftpd on

 

[root@localhost ~]# chkconfig --list | grep vsftpd
vsftpd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
 

Method 2:
The easiest way is to add service vsftpd start to /etc/rc.local.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326511662&siteId=291194637