免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 12192 | 回复: 5
打印 上一主题 下一主题

[FTP] 500 OOPS: failed to open xferlog log file:/var/log [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-11-28 21:51 |只看该作者 |倒序浏览
今天,上FTP时,出现一个问题
提示如下:
500 OOPS: failed to open xferlog log file:/var/log/xferlog

不能打开一个文件。

就在网上搜了下。解决的方法有两种,如下:
方法一:

解决方法:
在终端输入命令:
setsebool ftpd_disable_trans 1
service vsftpd restart
回车就可以了。网络太强大。

方法二:

I had the same problem recently, I also got the message:
500 OOPS: failed to open xferlog log file:/var/log/xferlog

This is what I did:

Open a terminal
Switch to root using su -
service vsftpd stop
Wait for the message: Shutting down vsftpd: [ OK ]
After this I removed the log file
rm /var/log/vsftpd.log
Type "y" for the question: rm: remove regular file `/var/log/vsftpd.log'?
service vsftpd start

After I did this everything worked OK.
vsftpd created a new log file in /var/log/ and it logged every upload/download.
I hope this have helped you.



---------------------------------

我用的第二种方法,但是发现/var/log/vsftpd.log这个文件没有。

应该是删除这个:/var/log/xferlog

嗯,删了,重启下服务一切OK!!



知道,如何解决但是不知道,为什么会有这个错误??

论坛徽章:
0
2 [报告]
发表于 2009-11-28 23:31 |只看该作者
failed to open xferlog log  当时什么权限
setsebool - set SELinux boolean value,你的selinux开着呢吧?

论坛徽章:
0
3 [报告]
发表于 2009-11-28 23:57 |只看该作者
原帖由 7717060 于 2009-11-28 23:31 发表
failed to open xferlog log  当时什么权限
setsebool - set SELinux boolean value,你的selinux开着呢吧?



嗯。。这个SELINUX如何关闭呢??

   在网上听说,这个关的很麻烦,关不好, 还会让系统不稳定!!

论坛徽章:
0
4 [报告]
发表于 2009-11-29 00:08 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2009-11-29 00:16 |只看该作者
原帖由 hnrainll 于 2009-11-28 23:57 发表



嗯。。这个SELINUX如何关闭呢??

   在网上听说,这个关的很麻烦,关不好, 还会让系统不稳定!!

安全系数下降点,但是不会不稳定。

论坛徽章:
0
6 [报告]
发表于 2009-11-29 17:43 |只看该作者
原帖由 7717060 于 2009-11-29 00:16 发表

安全系数下降点,但是不会不稳定。

嗯。。。去看看!!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP