您的位置:首页 > 运维架构 > Linux

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

2011-12-06 14:18 344 查看
在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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: