第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

<Linux>動手搭建簡單的FTP服務(wù)器 vsftpd-2.2.2

標(biāo)簽:
Linux
安装vsftpd和ftp

yum -y install vsftpd ftp

配置

vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO 禁止匿名访问
ascii_upload_enable=YES 允许使用ascii码上传
ascii_download_enable=YES 允许使用ascii码下载
userlist_deny=NO 这条需手动添加到最后,使用FTP用户表,表里没有的用户需要添加才能登录

删掉其他用户,加入root用户

vi /etc/vsftpd/user_list
root

注释被禁止登录的root用户

vi /etc/vsftpd/ftpusers
删掉root或者注释掉#root

开机自动启动

chkconfig vsftpd on

查看selinux安全设置

getsebool -a |grep ftpd
allow_ftpd_anon_write --> off
allow_ftpd_full_access --> off(注意这条)
allow_ftpd_use_cifs --> off
allow_ftpd_use_nfs --> off
ftpd_connect_db --> off
ftpd_use_passive_mode --> off

更改selinux安全设置

setsebool -P ftp_home_dir 1
setsebool -P allow_ftpd_full_access 1

更新iptables防火墙规则 放开21端口

/sbin/iptables -I INPUT -p tcp --dport 21 -j ACCEPT
/etc/rc.d/init.d/iptables save
/etc/init.d/iptables restart

重启服务

service vsftpd restart

测试

[root@localhost ~]# ftp 127.0.0.1
Connected to 127.0.0.1 (127.0.0.1).
220 (vsFTPd 2.2.2)
Name (127.0.0.1:root): root
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> pwd
257 "/root"
ftp>

點擊查看更多內(nèi)容
10人點贊

若覺得本文不錯,就分享一下吧!

評論

作者其他優(yōu)質(zhì)文章

正在加載中
感謝您的支持,我會繼續(xù)努力的~
掃碼打賞,你說多少就多少
贊賞金額會直接到老師賬戶
支付方式
打開微信掃一掃,即可進(jìn)行掃碼打賞哦
今天注冊有機(jī)會得

100積分直接送

付費專欄免費學(xué)

大額優(yōu)惠券免費領(lǐng)

立即參與 放棄機(jī)會
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號

舉報

0/150
提交
取消