在Centos 6虚拟机上启动FTP服务的步骤
第一步:确认FTP服务是否安装
[root@localhost dev]# yum -y install vsftpdIf 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

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

被折叠的 条评论
为什么被折叠?



