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?

3
  • 2
    The error refers to the service command, not to the vsftpd. I believe that on CentOS, you need to use systemctl. Commented Oct 3, 2019 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
    Commented Oct 3, 2019 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. Commented Oct 3, 2019 at 10:58

1 Answer 1

1

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

On CentOS, you need to use systemctl.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .