user749798
user749798

Reputation: 5380

sudo nginx -t password issue

I installed nginx, and when I run the following command...

sudo nginx -t

I get the following

Password:
Sorry, try again.
Password:
sudo: nginx: command not found

I don't remember ever setting a password and ran through the ones I would have used. Is there a way to find out what password to use or reset it?

Upvotes: 2

Views: 625

Answers (1)

user149341
user149341

Reputation:

sudo uses your login password. In the snippet above, you got it right the second time around.

The error sudo: nginx: command not found indicates that nginx is either not installed, or not installed where you think it is.

Upvotes: 2

Related Questions