1

I am trying to use FTP on CentOS. I use this way to install:

sudo  yum -y install vsftpd 

when I use whereis to check the location of vsftpd, I can find it:

enter image description here

But when I try

service vsftpd start

The error is:

bash: service: command not found

I have tried all different ways to fix it. But none of them worked. Could anyone please help me here?

  • 2
    The error refers to the service command, not to the vsftpd. I believe that on CentOS, you need to use systemctl. – Martin Prikryl Oct 3 '19 at 7:08
  • Yeah. thanks a lot. Could you please also tell me how to generate a new user and password. because when I use useradd, I get the error: bash: useradd: command not found – Feng Chen Oct 3 '19 at 10:34
  • @FengChen that's because the correct command is adduser. To unlock the account, use passwd followed by the new user name you created. – Anaksunaman Oct 3 '19 at 10:58
  • thanks a lot. cool – Feng Chen Oct 3 '19 at 11:37
1

The error refers to the service command, not to the vsftpd.

On CentOS, you need to use systemctl.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.