欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

安裝、配置和驗(yàn)證FTP服務(wù)器的步驟

 更新時(shí)間:2024年12月10日 15:46:24   作者:月光技術(shù)雜談  
文章介紹了如何安裝、配置和驗(yàn)證FTP服務(wù)器的步驟,包括安裝vsftpd、配置文件設(shè)置、創(chuàng)建用戶、設(shè)置密碼和建立主目錄,最后進(jìn)行了本地驗(yàn)證,感興趣的朋友跟隨小編一起看看吧

ftp服務(wù)器搭建-安裝、配置及驗(yàn)證

#安裝

sudo apt-get install vsftpd

#配置文件

cat > /etc/vsftpd.conf  << "EOF"
listen=NO
listen_ipv6=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO
local_root=/home/test            #需要建立 對(duì)應(yīng)的root dir
EOF

#創(chuàng)建用戶

echo test  > /etc/vsftpd.chroot_list

#設(shè)置密碼

password test 

#建立主目錄

mkdir /home/test 
sudo chmod -R 777 /home/test 
touch test						#放一個(gè)測(cè)試文件 

#本地驗(yàn)證

root@localhost:/home/ftp# ftp localhost
Connected to localhost.
220 (vsFTPd 3.0.5)
Name (localhost:root): test 
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
200 EPRT command successful. Consider using EPSV.
150 Here comes the directory listing.
-rw-r--r--    1 0        0              13 Nov 24 15:46 test
226 Directory send OK.
ftp> get test
local: test remote: test
200 EPRT command successful. Consider using EPSV.
150 Opening BINARY mode data connection for test (0 bytes).
226 Transfer complete.

到此這篇關(guān)于ftp服務(wù)器搭建-安裝、配置及驗(yàn)證的文章就介紹到這了,更多相關(guān)ftp服務(wù)器搭建內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

最新評(píng)論