Centos启动FTP及常见问题

来源:互联网 发布:入骨相思君知不知 编辑:程序博客网 时间:2024/06/11 09:44

Linux每天学习一点


CentOS启动ftp命令:service vsftpd start

验证是否连通 ftp localhost

若报错ftp command not found,则需要安装ftp包

64位操作系统下运行如下命令:

rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/ftp-0.17-54.el6.x86_64.rpm

如果出现类似 libc.so.6 is needed by ftp-0.17-35.el5.i386  这样的错误,则先运行以下命令

rpm –Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/glibc-2.12-1.166.el6.x86_64.rpm


关闭防火墙命令

1) 永久性生效,重启后不会复原

开启: chkconfig iptables on

关闭: chkconfig iptables off

2) 即时生效,重启后复原

开启: service iptables start

关闭: service iptables stop


root用户连接FTP上传文件出现的问题;

启动VSFTP、关闭防火墙、user_list 和ftpuser注释掉root用户后,连接FTP报错如下:

500 OOPS: cannot change directory:/root
500 OOPS: priv_sock_get_cmd
远程主机关闭连接。

需要执行以下命令 setenforce  0,就可以连接了。



0 0
原创粉丝点击