差異處
這裏顯示兩個版本的差異處。
| tech:vsftpd [2009/02/06 19:55] – 建立 jonathan | tech:vsftpd [2020/09/10 13:37] (目前版本) – jonathan_tsai | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== Centos 5 啟動 ftpd 方式 ====== | ||
| + | 之前使用 unix 啟用 ftpd 都是直接更改 inetd / xinetd , 所以就直接到 / | ||
| + | <note warning> | ||
| + | < | ||
| + | 530 Must perform authentication before identifying USER. | ||
| + | Login failed. | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | 查了一下相關資訊才發現, | ||
| + | <code sh> | ||
| + | [root@G2B2C-reg xinetd.d]# rpm -qa | grep -i ftp | ||
| + | ftp-0.17-33.fc6 | ||
| + | lftp-3.5.1-2.fc6 | ||
| + | vsftpd-2.0.5-12.el5 | ||
| + | |||
| + | [root@G2B2C-reg xinetd.d]# rpm -ql vsftpd-2.0.5-12.el5 | ||
| + | / | ||
| + | / | ||
| + | / | ||
| + | /etc/vsftpd | ||
| + | / | ||
| + | / | ||
| + | : | ||
| + | : | ||
| + | </ | ||
| + | |||
| + | 因為有 **/ | ||
| + | <code sh> | ||
| + | [root@G2B2C-reg xinetd.d]# service vsftpd start | ||
| + | 正在啟動 vsftpd 中的 vsftpd: | ||
| + | [root@G2B2C-reg xinetd.d]# netstat -na | grep 21 | ||
| + | tcp 0 0 0.0.0.0: | ||
| + | : | ||
| + | : | ||
| + | [root@G2B2C-reg xinetd.d]# chkconfig vsftpd on | ||
| + | [root@G2B2C-reg xinetd.d]# chkconfig --list | grep vsftpd | ||
| + | vsftpd | ||
| + | </ | ||
| + | |||
| + | 這樣就可以開機時自動啟用 ftpd 的服務 | ||
| + | |||
| + | < | ||
| + | * CentOS 8 安裝與啟動 ftpd 的方式: | ||
| + | * <code sh> | ||
| + | yum -y install vsftpd | ||
| + | systemctl start vsftpd | ||
| + | systemctl enable vsftpd | ||
| + | </ | ||
| + | * 如果有特別需求, | ||
| + | systemctl restart vsftpd | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ===== 參考網址 ===== | ||
| + | * https:// | ||
| + | |||
| + | {{tag> | ||