RHEL8.6 FTPサーバーソフトのvsftpdをインストールする

環境
# cat/etc/redhat-release
Red Hat Enterprise Linux release 8.6 (Ootpa)

操作方法
1.vsftpdをインストールします。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# yum -y install vsftpd
# yum -y install vsftpd
# yum -y install vsftpd

2.インストールされたバージョンの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# rpm -q vsftpd
vsftpd-3.0.3-35.el8.x86_64
# rpm -q vsftpd vsftpd-3.0.3-35.el8.x86_64
# rpm -q vsftpd
vsftpd-3.0.3-35.el8.x86_64

3.firewall-cmdでftpポートを開放します

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# firewall-cmd --add-service=ftp --permanent
# firewall-cmd --reload
# firewall-cmd --add-service=ftp --permanent # firewall-cmd --reload
# firewall-cmd --add-service=ftp --permanent
# firewall-cmd --reload

vsftpdを許可します。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl enable vsftpd
# systemctl enable vsftpd
# systemctl enable vsftpd

4.vsftpdを再起動

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl restart vsftpd
# systemctl restart vsftpd
# systemctl restart vsftpd