欢迎来到天天文库
浏览记录
ID:37910094
大小:106.00 KB
页数:11页
时间:2019-06-02
《RHEL5.4配置FTP服务》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、RHEL5.4配置FTP服务下面是关于在linux下配置FTP服务的讨论,FTP介绍FTP全名是FileTransferProtocol(文件传输协议)FTP可以跨越平台,也可以运行在Internet上面,在linux下面FTP可以通过很多软件来实现,我们linux下面最常用的FTP服务器架设使用vsftpd软件。Vsftpd是一个基于GPL发布的FTP服务器软件,其中vs是指verysecure的缩写,由此可以看出,本软件的的初衷是为了服务的安全。FTP也是红帽的默认安装的服务器软件。下面是关于FTP这个
2、服务的属性FTP的相关软件包VsftpdFTP的守护进程/usr/sbin/vsftpdFTP的脚本/etc/init.d/vsftpdFTP的端口21(ftp)20(ftp-data)FTP的配置文件/etc/vsftpd/vsftpd.conf下面来具体搭建FTP服务安装软件包[root@localhost~]#[root@localhost~]#yum-yinstallvsftpdLoadedplugins:rhnplugin,securityThissystemisnotregisteredwith
3、RHN.RHNsupportwillbedisabled.SettingupInstallProcessResolvingDependencies-->Runningtransactioncheck--->Packagevsftpd.i3860:2.0.5-16.el5settobeupdated-->FinishedDependencyResolutionDependenciesResolved========================================================
4、=========================================PackageArchVersionRepositorySize=================================================================================================Installing:vsftpdi3862.0.5-16.el5Server140kTransactionSummary=========================
5、========================================================================Install1Package(s)Update0Package(s)Remove0Package(s)Totaldownloadsize:140kDownloadingPackages:vsftpd-2.0.5-16.el5.i386.rpm
6、140kB00:00Runningrpm_check_debugRunningTransactionTestFinishe
7、dTransactionTestTransactionTestSucceededRunningTransactionInstalling:vsftpd1/1Installed:vsftpd.i3860:2.0.5-16.el5Complete![root@localhost~]#FTP的软件包就安装成功了,安装完FTP服务以后,系统会自动创建/var/ftp/pub这个目录。[root@localhost~]#[root@localhost~]#ls-ld/var/ftp/pub/drwxr-xr-x9ro
8、otroot4096Mar1813:00/var/ftp/pub/[root@localhost~]#的确是有这个目录的,并且权限为755。现在我们启动FTP服务,[root@localhost~]#[root@localhost~]#servicevsftpdrestartShuttingdownvsftpd:[OK]Startingvsftpdforvsftpd:[OK][root@localhost~]#OK,服务启动成功,默认情况下,当启动FTP服务后,我们不需要做任何配置,FTP服务是可以工作的,
9、并且可以正常访问。在linux下面访问FTP服务的客户端工具一般使用这两个工具#lftp192.168.0.254#ftp192.168.0.254这两个工具的区别是lftp默认就是使用匿名的身份来访问FTP服务的,支持补齐。ftp工具访问的时候需要输入用户名和密码,而且不支持补齐。[root@localhost~]#[root@localhost~]#lftp192.168.0.254lftp192.168.0
此文档下载收益归作者所有