- 论坛徽章:
- 0
|
今天,上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!!
知道,如何解决但是不知道,为什么会有这个错误?? |
|