debian10 ftp简单搭建
生活随笔
收集整理的這篇文章主要介紹了
debian10 ftp简单搭建
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
需求:
使用ftp服務上傳網頁代碼。
使用vsftpd服務;
ftp的上傳文件根目錄即為web服務器的網站根目錄;
ftp登錄的用戶為ftpuser;
步驟:
安裝ftp
apt-get install vsftpd
備份配置文件
cp /etc/vsftpd.conf /etc/vsftpd.conf.bak
編輯配置文件
vim /etc/vsftpd.conf
寫入配置
write_enable=YES
chroot_local_user=YES
allow_writeable_chroot=YES
local_root=/data/share/htdocs/skills
重啟服務
systemctl restart vsftpd
創建ftp根目錄
mkdir /data/share/htdocs/skills -p
更改目錄權限
chmod 777 /data/share/htdocs/skills
創建ftp用戶
useradd -m ftpuser -d /home/ftpuser
修改用戶密碼
passwd ftpuser
測試
總結
以上是生活随笔為你收集整理的debian10 ftp简单搭建的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: debian10 mariadb安装
- 下一篇: debian10 dhcp简单配置