国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

centos 搭建ftp服務(wù)器詳解及簡(jiǎn)單介紹

瀏覽:157日期:2023-03-25 09:40:15

centos 搭建ftp服務(wù)器

1.安裝vsftpd

sudo yum install vsftpd

2.配置vsftpd.conf


# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO

# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES


write_enable=YES

# 本地的ftp目錄地址
local_root=/var/ftp

3.添加ftp用戶

#創(chuàng)建用戶
adduser -d /var/ftp -g ftp -s /sbin/nologin *_ftp

#修改密碼
passwd *_ftp


4.上傳權(quán)限

# 修改上傳路徑權(quán)限 777  更具個(gè)人喜好設(shè)置權(quán)限
sudo chmod -R 777 /var/ftp

# 查看 ftp 設(shè)置
getsebool -a|grep ftp

ftp_home_dir --> on
ftpd_anon_write --> off
ftpd_connect_all_unreserved --> off
ftpd_connect_db --> off
ftpd_full_access --> on
ftpd_use_cifs --> off
ftpd_use_fusefs --> off
ftpd_use_nfs --> off
ftpd_use_passive_mode --> off
httpd_can_connect_ftp --> off
httpd_enable_ftp_server --> off
sftpd_anon_write --> off
sftpd_enable_homedirs --> off
sftpd_full_access --> off
sftpd_write_ssh_home --> off
tftp_anon_write --> off
tftp_home_dir --> off

# 修改ftp_home_dir、ftpd_full_access 為 on
setsebool -P ftp_home_dir=on ftpd_full_access=on

5.設(shè)置vsftp 開(kāi)機(jī)啟動(dòng)

chkconfig vsftpd on

6.添加防火墻

firewall-cmd --permanent --add-service=ftp

firewall-cmd --reload

感謝閱讀,希望能幫助到大家,謝謝大家對(duì)本站的支持!

標(biāo)簽: FTP
相關(guān)文章:
主站蜘蛛池模板: 内丘县| 庆安县| 蓬溪县| 肥西县| 清涧县| 镇赉县| 云梦县| 兴和县| 湘潭县| 庐江县| 交城县| 甘泉县| 新安县| 阳原县| 安泽县| 伊川县| 阿图什市| 新宾| 定远县| 迁西县| 东乌珠穆沁旗| 新龙县| 运城市| 株洲市| 岳阳市| 泰顺县| 永城市| 比如县| 石柱| 贡嘎县| 安溪县| 桦川县| 崇礼县| 赫章县| 金寨县| 韶关市| 改则县| 紫阳县| 江口县| 临桂县| 罗江县|