码迷,mamicode.com
首页 > 其他好文 > 详细

FTP服务器配置

时间:2014-09-12 02:28:23      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:服务器   软件包   

实验01:配置FTP服务器

  • 实验目标

配置FTP服务器

  • 实验步骤

一.检查vsftpd软件包是否安装

[root@dhcpserServer]# rpm -q vsftpd

package vsftpd isnot installed

二.查找软件包

[root@dhcpserServer]# cd /misc/cd/Server/

[root@dhcpserServer]# ls *vsftpd*

vsftpd-2.0.5-28.el5.x86_64.rpm

三.安装软件包

[root@dhcpserServer]# rpm -ivh vsftpd-2.0.5-28.el5.x86_64.rpm

warning:vsftpd-2.0.5-28.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186

Preparing...               ########################################### [100%]

   1:vsftpd                 ###########################################[100%]

四.重新启用vsftpd服务

[root@dhcpserServer]# service vsftpd restart

关闭 vsftpd                                              [失败]

vsftpd 启动 vsftpd                                   [确定]

[root@dhcpserServer]# service vsftpd restart

关闭 vsftpd                                              [确定]

vsftpd 启动 vsftpd                                   [确定]

[root@dhcpserServer]# chkconfig vsftpd on

[root@dhcpserServer]# ls -lh /etc > /var/ftp/pub/etc.txt

五.新建用户并设置密码

[root@dhcpserServer]# useradd kaka

[root@dhcpserServer]# echo "redhat" | passwd --stdin kaka

Changing passwordfor user kaka.

passwd: allauthentication tokens updated successfully.

六.客户端测试

进入服务器

[root@localhost~]# ftp 192.168.10.253

Connected to192.168.10.253.

220 (vsFTPd 2.0.5)

530 Please loginwith USER and PASS.

530 Please loginwith USER and PASS.

KERBEROS_V4rejected as an authentication type

Name(192.168.10.253:root): ftp

331 Please specifythe password.

Password:

230 Loginsuccessful.

Remote system typeis UNIX.

Using binary modeto transfer files.

ftp> cd pub

250 Directorysuccessfully changed.

ftp> ls

227 EnteringPassive Mode (192,168,10,253,172,46)

150 Here comes thedirectory listing.

-rw-r--r--    1 0       0           11629 Sep 11 20:34etc.txt

226 Directory sendOK.

ftp>get etc.txt (下载文件)

local: etc.txtremote: etc.txt

227 EnteringPassive Mode (192,168,10,253,33,163)

150 Opening BINARYmode data connection for etc.txt (11629 bytes).

226 File send OK.

11629 bytesreceived in 0.00018 seconds (6.5e+04 Kbytes/s)

ftp> !ls

anaconda-ks.cfg  Desktop etc.txt  install.log  install.log.syslog

ftp> putinstall.log

local: install.logremote: install.log

227 EnteringPassive Mode (192,168,10,253,88,62)

550 Permissiondenied.

ftp> quit

221 Goodbye.

[root@localhost~]# lftp 192.168.10.253(使用lftp进入服务器)

lftp192.168.10.253:~> user kaka  (输入用户名以及密码)      

口令:

lftpkaka@192.168.10.253:~> put install.log (上传文件)

33139 bytestransferred  

lftpkaka@192.168.10.253:~> quit

  • 问题和经验总结

故障现象:

[root@dhcpserServer]# service vsftpd restart

关闭 vsftpd                                              [失败]

vsftpd 启动 vsftpd                                   [失败]

解决办法:

检查软件包的安装,重装软件包

 

 


本文出自 “IT” 博客,请务必保留此出处http://9265605.blog.51cto.com/9255605/1551367

FTP服务器配置

标签:服务器   软件包   

原文地址:http://9265605.blog.51cto.com/9255605/1551367

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!