Linux FTP 服务器配置简单说明Word格式.docx
《Linux FTP 服务器配置简单说明Word格式.docx》由会员分享,可在线阅读,更多相关《Linux FTP 服务器配置简单说明Word格式.docx(10页珍藏版)》请在冰豆网上搜索。
![Linux FTP 服务器配置简单说明Word格式.docx](https://file1.bdocx.com/fileroot1/2022-10/27/caf048b0-ff80-4ac0-99cd-7e47174851fc/caf048b0-ff80-4ac0-99cd-7e47174851fc1.gif)
是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)
1
MASQUERADE
all
--
192.168.122.0/24
!
ChainOUTPUT(policyACCEPT)
filter
ChainINPUT(policyACCEPT)
ACCEPT
udp
0.0.0.0/0
udpdpt:
53
2
tcp
tcpdpt:
3
67
4
ChainFORWARD(policyACCEPT)
stateRELATED,ESTABLISHED
REJECT
reject-withicmp-port-unreachable
5
Youhavenewmailin/var/spool/mail/root
--添加开放21号端口:
[root@singledb~]#/sbin/iptables-IINPUT-ptcp--dport21-jACCEPT
[root@singledb~]#
/etc/init.d/iptablesstatus
destinat