chen163 于 2010-01-01 20:25:41发表:
我的是red hat linux版本的 [root@localhost root]# rpm -qa|grep vsftpd vsftpd-1.1.3-8 //查看是否安装vsftpd 如果不安装在“主菜单”--“系统设置”--“添加/删除应用程序”--安装“ftp服务器”--“更新” [root@localhost root]# service vsftpd start 为 vsftpd 启动 vsftpd: [ 确定 ] //启动vsftpd服务 [root @localhsot root]# cd /var/ftp/pub //切换到pub目录下 [root @localhsot root]#touch test.txt //创建一个test.txt文件 [root @localhost root]#vi test.txt //输入abc [root@localhost root]# ftp localhost //输入linux主机IP或计算机名 Connected to localhost (127.0.0.1). 220 (vsFTPd 1.1.3) Name (localhost:root): anonymous //匿名用户 331 Please specify the password. Password: //不用密码回车 230 Login successful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls //ls显示文件 227 Entering Passive Mode (127,0,0,1,245,43) 150 Here comes the directory listing. drwxr-xr-x 2 0 0 4096 Feb 28 2003 pub 226 Directory send OK. ftp> cd pub //切换到pub目录下 250 Directory successfully changed. ftp> ls //显示文件 227 Entering Passive Mode (127,0,0,1,22,126) 150 Here comes the directory listing. drwxr-xr-x 2 0 0 4096 Jan 01 11:49 test.txt //test.txt 226 Directory send OK. ftp> mget test.txt mget test.txt? 227 Entering Passive Mode (127,0,0,1,223,53) 150 Opening BINARY mode data connection for test.txt (4 bytes). 226 File send OK. 4 bytes received in 7.3e-05 secs (54 Kbytes/sec) ftp> !ls anaconda-ks.cfg install.log install.log.syslog test.txt ftp> put install.log local: install.log remote: install.log 227 Entering Passive Mode (127,0,0,1,196,194) 550 Permission denied. ftp> mkdir test 550 Permission denied. ftp> bye 221 Goodbye. [root@localhost root]#vi /etc/vsftpd/vsftp.conf //进入vsftpd的配置文件 //找到 #anon_upload_enable=YES //匿名用户的上传 #anon_mkdir_write_enable=YES //匿名用户创建的权限 将这两个前面的#号去掉 按ESC :wq //保持退出 [root@localhsot root]#service vsftpd restart //重启vsftp服务 [root@localhost root]# mkdir /var/ftp/income //创建一个装上传文件目录 [root@localhost root]# chown ftp:ftp /var/ftp/income //给文件赋给ftp组和用户 [root@localhost root]# ftp localhost Connected to localhost (127.0.0.1). 220 (vsFTPd 1.1.3) Name (localhost:root): anonymous 331 Please specify the password. Password: 230 Login successful. Have fun. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 227 Entering Passive Mode (127,0,0,1,97,155) 150 Here comes the directory listing. drwxr-xr-x 2 14 50 4096 Jan 01 12:15 income drwxr-xr-x 2 0 0 4096 Jan 01 12:02 pub 226 Directory send OK. ftp> cd income 250 Directory successfully changed. ftp> ls 227 Entering Passive Mode (127,0,0,1,219,144) 150 Here comes the directory listing. 226 Directory send OK. ftp> !ls anaconda-ks.cfg install.log install.log.syslog test.txt ftp> put install.log //上传文件 local: install.log remote: install.log 227 Entering Passive Mode (127,0,0,1,176,84) 150 Ok to send data. 226 File receive OK. 27400 bytes sent in 0.0688 secs (3.9e+02 Kbytes/sec) ftp> ls 227 Entering Passive Mode (127,0,0,1,165,83) 150 Here comes the directory listing. -rw------- 1 14 50 27400 Jan 01 12:22 install.log //上传到income目录install.log文件 226 Directory send OK. ftp>bye 221 Goodbye .
ybbepiqplaa520 于 2009-12-14 12:36:37发表:
yum install -y vsftpd.i386 /etc/init.d/vsftd start
fangjie 于 2009-11-26 22:18:11发表:
vfstpd很简单啊。只要安装启动后就可以用。再复杂的就需要修改配置文档了
8533722 于 2009-10-24 14:24:14发表:
http://lihuipeng007.blog.163.com/blog/static/121084388200967104559628/
lxj123lj 于 2009-10-24 10:29:59发表:
很简单。安装vsftpd包,就可以搭建简单ftp了。详细的配它的配置文件啊
Aibuwan 于 2009-10-21 00:03:53发表:
我正在学,到时一起交流
chen163 于 2010-01-01 20:25:41发表:
我的是red hat linux版本的
[root@localhost root]# rpm -qa|grep vsftpd
vsftpd-1.1.3-8
//查看是否安装vsftpd
如果不安装在“主菜单”--“系统设置”--“添加/删除应用程序”--安装“ftp服务器”--“更新”
[root@localhost root]# service vsftpd start
为 vsftpd 启动 vsftpd: [ 确定 ]
//启动vsftpd服务
[root @localhsot root]# cd /var/ftp/pub
//切换到pub目录下
[root @localhsot root]#touch test.txt
//创建一个test.txt文件
[root @localhost root]#vi test.txt
//输入abc
[root@localhost root]# ftp localhost
//输入linux主机IP或计算机名
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.1.3)
Name (localhost:root): anonymous //匿名用户
331 Please specify the password.
Password: //不用密码回车
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls //ls显示文件
227 Entering Passive Mode (127,0,0,1,245,43)
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Feb 28 2003 pub
226 Directory send OK.
ftp> cd pub //切换到pub目录下
250 Directory successfully changed.
ftp> ls //显示文件
227 Entering Passive Mode (127,0,0,1,22,126)
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 4096 Jan 01 11:49 test.txt //test.txt
226 Directory send OK.
ftp> mget test.txt
mget test.txt?
227 Entering Passive Mode (127,0,0,1,223,53)
150 Opening BINARY mode data connection for test.txt (4 bytes).
226 File send OK.
4 bytes received in 7.3e-05 secs (54 Kbytes/sec)
ftp> !ls
anaconda-ks.cfg install.log install.log.syslog test.txt
ftp> put install.log
local: install.log remote: install.log
227 Entering Passive Mode (127,0,0,1,196,194)
550 Permission denied.
ftp> mkdir test
550 Permission denied.
ftp> bye
221 Goodbye.
[root@localhost root]#vi /etc/vsftpd/vsftp.conf
//进入vsftpd的配置文件
//找到
#anon_upload_enable=YES //匿名用户的上传
#anon_mkdir_write_enable=YES //匿名用户创建的权限
将这两个前面的#号去掉
按ESC
:wq //保持退出
[root@localhsot root]#service vsftpd restart
//重启vsftp服务
[root@localhost root]# mkdir /var/ftp/income
//创建一个装上传文件目录
[root@localhost root]# chown ftp:ftp /var/ftp/income
//给文件赋给ftp组和用户
[root@localhost root]# ftp localhost
Connected to localhost (127.0.0.1).
220 (vsFTPd 1.1.3)
Name (localhost:root): anonymous
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (127,0,0,1,97,155)
150 Here comes the directory listing.
drwxr-xr-x 2 14 50 4096 Jan 01 12:15 income
drwxr-xr-x 2 0 0 4096 Jan 01 12:02 pub
226 Directory send OK.
ftp> cd income
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (127,0,0,1,219,144)
150 Here comes the directory listing.
226 Directory send OK.
ftp> !ls
anaconda-ks.cfg install.log install.log.syslog test.txt
ftp> put install.log //上传文件
local: install.log remote: install.log
227 Entering Passive Mode (127,0,0,1,176,84)
150 Ok to send data.
226 File receive OK.
27400 bytes sent in 0.0688 secs (3.9e+02 Kbytes/sec)
ftp> ls
227 Entering Passive Mode (127,0,0,1,165,83)
150 Here comes the directory listing.
-rw------- 1 14 50 27400 Jan 01 12:22 install.log //上传到income目录install.log文件
226 Directory send OK.
ftp>bye
221 Goodbye .
ybbepiqplaa520 于 2009-12-14 12:36:37发表:
yum install -y vsftpd.i386
/etc/init.d/vsftd start
fangjie 于 2009-11-26 22:18:11发表:
vfstpd很简单啊。只要安装启动后就可以用。再复杂的就需要修改配置文档了
8533722 于 2009-10-24 14:24:14发表:
http://lihuipeng007.blog.163.com/blog/static/121084388200967104559628/
lxj123lj 于 2009-10-24 10:29:59发表:
很简单。安装vsftpd包,就可以搭建简单ftp了。详细的配它的配置文件啊
Aibuwan 于 2009-10-21 00:03:53发表:
我正在学,到时一起交流