The translation is temporarily closed for contributions due to maintenance, please come back later.
English Italian
To stop the server, as `root` type:
[command]#systemctl stop vsftpd.service#
The [option]`restart` option is a shorthand way of stopping and then starting [command]#vsftpd#. This is the most efficient way to make configuration changes take effect after editing the configuration file for [command]#vsftpd#.
To restart the server, as `root` type:
[command]#systemctl restart vsftpd.service#
The [option]`condrestart` (_conditional restart_) option only starts [command]#vsftpd# if it is currently running. This option is useful for scripts, because it does not start the daemon if it is not running.
To conditionally restart the server, as `root` type:
[command]#systemctl condrestart vsftpd.service#
By default, the [command]#vsftpd# service does *not* start automatically at boot time. To configure the [command]#vsftpd# service to start at boot time, use a service manager such as [command]#systemctl#. See xref:infrastructure-services/Services_and_Daemons.adoc#ch-Services_and_Daemons[Services and Daemons] for more information on how to configure services in {MAJOROS}.
Configuring the Firewall for FTP
By default, `firewalld` blocks incoming FTP connections. To allow FTP connections, as `root` type:
[command]#firewall-cmd --add-service=ftp#
The change will be applied immediately, but will be lost next time `firewalld` is reloaded or the system restarted. To make it permanent, type:
[command]#firewall-cmd --permanent --add-service=ftp#
For more information on configuring `firewalld`, see the link:++https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Security_Guide/++[Red{nbsp}Hat Enterprise{nbsp}Linux{nbsp}7 Security Guide].
Starting Multiple Copies of [command]#vsftpd#
indexterm:[vsftpd,starting multiple copies of]indexterm:[vsftpd,multihome configuration] Sometimes one computer is used to serve multiple `FTP` domains. This is a technique called _multihoming_. One way to multihome using [command]#vsftpd# is by running multiple copies of the daemon, each with its own configuration file.
To do this, first assign all relevant `IP` addresses to network devices or alias network devices on the system. For more information about configuring network devices, device aliases, and additional information about network configuration scripts, refer to the [citetitle]_link:++https://docs.fedoraproject.org/en-US/Fedora/networking++[{MAJOROS} Networking Guide]_.
Next, the DNS server for the `FTP` domains must be configured to reference the correct machine. For information about BIND and its configuration files, refer to the [citetitle]_link:++https://docs.fedoraproject.org/en-US/Fedora/networking++[{MAJOROS} Networking Guide]_.
If there is more configuration files present in the `/etc/vsftpd` directory, calling [command]#systemctl start vsftpd.service# results in the `/etc/rc.d/init.d/vsftpd` initscript starting the same number of processes as the number of configuration files. Each configuration file must have a unique name in the `/etc/vsftpd/` directory and must be readable and writable only by `root`.