1. 程式人生 > >解決vsftpd不能重啟的問題 (cannot read config file)

解決vsftpd不能重啟的問題 (cannot read config file)

我重啟vsftpd時,總是報500 OOPS: cannot read config file:restart :
網上有不少的相關的問題,但是都沒能解決,而且我的路徑是 /usr/sbin/vsftpd 。有些的電腦是在/etc/init.d/vsftpd。
檢視vsftpd在那個路徑下面使用下面的命令檢視

which vsftpd 命令檢視vsftpd所在的路徑下面:

我們回到剛才的問題:
故障原因是沒有啟用vsftpd,並設定其執行級別。

解決方法:

用root帳號登陸後,在/etc 目錄下
輸入:chkconfig --level 35 vsftpd on
再輸入 service vsftpd start
記錄一下,方便檢視。
歡迎大家加我的群:460952208