Linux FTP 服务器配置简单说明Word格式.docx

上传人:b****3 文档编号:15069236 上传时间:2022-10-27 格式:DOCX 页数:10 大小:19.19KB
下载 相关 举报
Linux FTP 服务器配置简单说明Word格式.docx_第1页
第1页 / 共10页
Linux FTP 服务器配置简单说明Word格式.docx_第2页
第2页 / 共10页
Linux FTP 服务器配置简单说明Word格式.docx_第3页
第3页 / 共10页
Linux FTP 服务器配置简单说明Word格式.docx_第4页
第4页 / 共10页
Linux FTP 服务器配置简单说明Word格式.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

Linux FTP 服务器配置简单说明Word格式.docx

《Linux FTP 服务器配置简单说明Word格式.docx》由会员分享,可在线阅读,更多相关《Linux FTP 服务器配置简单说明Word格式.docx(10页珍藏版)》请在冰豆网上搜索。

Linux FTP 服务器配置简单说明Word格式.docx

是vsftp, 

即VerySecurityFileTransferProtocol. 

还有一个是proftp(Professionftp)。

我们这里也是简单的说明下vsftp的配置。

vsftp提供3种远程的登录方式:

(1)匿名登录方式

就是不需要用户名,密码。

就能登录到服务器电脑里面

(2)本地用户方式

需要帐户名和密码才能登录。

而且,这个帐户名和密码,都是在你linux系统里面,已经有的用户。

(3)虚拟用户方式

同样需要用户名和密码才能登录。

但是和上面的区别就是,这个用户名和密码,在你linux系统中是没有的(没有该用户帐号)

二. 

Vsftp的安装配置

2.1 

安装

vsftp 

的安装包,可以在安装里找到。

用yum 

安装过程也很简单。

具体参考:

Linux 

搭建 

YUM 

服务器

安装命令:

yuminstallvsftpd

2.2. 

相关命令

2.2.1 

启动与关闭

[root@singledb~]#servicevsftpdstart

Startingvsftpdforvsftpd:

OK 

]

[root@singledb~]#servicevsftpdstop

Shuttingdownvsftpd:

[root@singledb~]#servicevsftpdrestart

[FAILED]

[root@singledb~]#/etc/init.d/vsftpdstart

[root@singledb~]#/etc/init.d/vsftpdstop

[root@singledb~]#/etc/init.d/vsftpdrestart

[root@singledb~]#/etc/init.d/vsftpdstatus

vsftpd(pid3931)isrunning...

[root@singledb~]#

2.2.2. 

其他命令

--查看vsftpd 

启动状态

[root@singledb~]#chkconfig--listvsftpd

vsftpd 

0:

off 

1:

2:

3:

4:

5:

6:

off

[root@singledb~]#chkconfig 

vsftpdon

on 

这里看到,默认情况下从2到5设置为on了。

2到5是多用户级别。

这个对应的是linux不同的运行级别。

我们也可以加level 

选项来指定:

[root@singledb~]#chkconfig--level0vsftpdon 

[root@singledb~]#chkconfig--listvsftpd 

我们看到0已经设置为on了。

我们可以使用manchkconfig 

来查看帮助:

--levellevels

Specifiestherunlevelsanoperationshouldpertainto.Itis 

given 

as 

astringofnumbersfrom0to7.Forexample,--level35specifiesrunlevels3 

and5.

传统的init 

定义了7个运行级(runlevel),每一个级别都代表系统应该补充运行的某些特定服务:

(1)0级是完全关闭系统的级别

(2)1级或者S级代表单用户模式

(3)2-5 

级 

是多用户级别

(4)6级 

是 

重新引导的级别

关于Linux 

的运行级别,在我的Blog:

开机引导与关机过程(5.1init 

和运行级)

(1)查看防火墙

我一般都是把系统的防火墙关闭了。

因为开了会有很多限制。

[root@singledb~]#/etc/init.d/iptablesstatus

Table:

nat

ChainPREROUTING(policyACCEPT)

num 

target 

protoptsource 

destination 

ChainPOSTROUTING(policyACCEPT)

MASQUERADE 

all 

-- 

192.168.122.0/24 

!

ChainOUTPUT(policyACCEPT)

filter

ChainINPUT(policyACCEPT)

ACCEPT 

udp 

0.0.0.0/0 

udpdpt:

53

tcp 

tcpdpt:

67

ChainFORWARD(policyACCEPT)

stateRELATED,ESTABLISHED

REJECT 

reject-withicmp-port-unreachable

Youhavenewmailin/var/spool/mail/root

--添加开放21号端口:

[root@singledb~]#/sbin/iptables-IINPUT-ptcp--dport21-jACCEPT

[root@singledb~]# 

/etc/init.d/iptablesstatus 

destinat

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 工程科技

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1