10

構成ファイルを開けない理由がわかりません。

$ ll /etc/vsftpd/vsftpd.conf
-rw-r--r-- 1 xuehui1 root 4182 Aug 20  2012 /etc/vsftpd/vsftpd.conf //exits
$ sudo /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf
500 OOPS: cannot open config file:/etc/vsftpd/vsftpd.conf

ここに vsftpd.conf があり、他の Linux マシン (centos) ではうまく動作しますが、これは?

# Example config file /etc/vsftpd/vsftpd.conf
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
chroot_local_user=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
use_localtime=YES
4

9 に答える 9

8

を使用するservice vsftpd [start/restart/stop]だけでなく、vsftpd [start/restart/stop]

于 2014-04-14T10:00:48.423 に答える
7

OSによっては、誤ったコマンドを実行したために以下のエラーが発生する場合があります。たとえば、Linux Mint 15 で次のコマンドを実行しました。

sudo vsftpd restart

私が受け取った出力は次のとおりです。

500 OOPS: cannot read config file: restart

vsftpd デーモンを再起動する正しいコマンドは次のとおりです。

sudo restart vsftpd 

これにより、次の出力が得られました。

vsftpd start/running, process 2231
于 2014-11-09T00:16:23.720 に答える
2

私の解決策は、systemctl コマンドで vsftpd を起動することでした。

sudo systemctl start vsftpd
于 2016-05-10T11:28:33.473 に答える
0

これは私のためにトリックをしました

sudo restart vsftpd
于 2015-04-03T13:21:28.000 に答える
0

これは私のために働いた:

sudo systemctl restart vsftpd.service
于 2019-07-01T16:29:18.300 に答える
-1

これは私がしました

sudo dpkg-reconfigure vsftpd
于 2015-12-10T05:14:18.530 に答える