`
luoping544
  • 浏览: 8027 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
文章分类
社区版块
存档分类
最新评论
阅读更多

基于vmware和centos 6.5

1、检查是否安装vsftp服务

#req -qa|grep vsftpd

 

2、如果没有,安装vsftpd

#yum install vsftpd

 

yum的时候下载失败。

修改/etc/resolv.conf

在最后增加:

nameserver 8.8.8.8

 

3、启动vsftd服务

# service vsftpd restart

 

4、可以修改配置文件内容

# vim /etc/vsftpd/vsftpd.conf

 

userlist_enable=NO

 

5、添加ftp用户

# /usr/sbin/adduser -d /opt/test_ftp -g ftp -s /sbin/nologin test

添加用户test 不能登录系统-s /sbin/nologin 路径  -d /opt/test_ftp  ftp组:-g ftp

 

创建test用户密码:

#passwd test 

 

6、测试ftp

在linux中:

#ftp 192.168.1.20

果然没有ftp命令,就安装ftp:#yum install ftp

 

在windows中,只要在浏览器中输入 ftp://192.168.1.20 

或者用ftp客户端工具连接。

 

连接不上的话,尝试关闭防火墙

#service vsftpd stop

 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics