溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

在虛擬機(jī)中安裝ftp

發(fā)布時(shí)間:2020-08-08 08:57:43 來(lái)源:ITPUB博客 閱讀:178 作者:zchbaby2000 欄目:服務(wù)器

安裝ftp
yum -y install vsftpd
 
查看
vsftpd -v

取消匿名登陸
修改vsftpd.conf文件
vi /etc/vsftpd/vsftpd.conf

把 anonymous_enable=YES,改為NO,然后重啟vsftpd

3、設(shè)置開(kāi)機(jī)啟動(dòng):
# chkconfig vsftpd on

4、啟動(dòng)ftp服務(wù)
# service vsftpd start
檢查服務(wù)狀態(tài)
# service vsftpd status
停止服務(wù):
# service vsftpd stop
重啟服務(wù)
# service vsftpd restart

vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
#SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
#SELINUXTYPE=targeted
SELINUX=disabled
setenforce 0

查看SELinux狀態(tài):
# getenforce
修改好之后,reboot重啟下,然后執(zhí)行g(shù)etenforce命令查看SELinux狀態(tài)
[root@localhost ~]# getenforce
Disabled

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI