在Centos 6虚拟机上启动FTP服务的步骤

本文详细介绍了在CentOS6虚拟机上安装并启动FTP服务的步骤,包括确认服务安装、安装FTP服务、启动与停止服务等,并提供了解决访问FTP根目录pub文件夹时出现连接无法建立问题的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在Centos 6虚拟机上启动FTP服务的步骤


第一步:确认FTP服务是否安装

[root@localhost dev]# yum -y install vsftpd
If nothing, the standard CentOS packages seem to be vsftp and proftp. You can install these with yum very easily (yum install vsftp for example)


第二步:安装FTP服务,确保要连接在互联网上


[root@localhost dev]# yum -y install vsftpd

Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
 * base: ftp.cs.pu.edu.tw
 * extras: ftp.cs.pu.edu.tw
 * updates: ftp.cs.pu.edu.tw
....


第三步:确认FTP服务是否启动的方法
netstat -ant | grep "LISTEN"



第四步启动ftp服务的方法
To start the server, as root type:
  /sbin/service vsftpd start

To stop the server, as root type:
  /sbin/service vsftpd stop




第五步检查防火墙设置
XP下虚拟机安装了centos,然后安装了vsftpd,现在在虚拟机下可以访问ftp根目录pub文件夹,但是在XP下访问会出现ftp文件夹错误,提示为到服务器的连接无法建立。现在我把selinux都关了也还不行。求助!


1).关闭防火墙 
 
 /etc/init.d/iptables stop 

  如果想永久关闭:
 chkconfig --level 35 iptables off 

2).关闭selinux 
 
 vi /etc/selinux/config 
  将selinux=enforcing或permissive改成disabled 
  记得要重新启动服务器! 
3).启动服务 service vsftpd start
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值