D
D
Dwellss2021-07-04 20:59:46
Debian
Dwellss, 2021-07-04 20:59:46

How to check nginx configuration?

Debian 10. All my life, before rebooting, I checked this way:

nginx -t

But here on the new server it suddenly says:
/bin/bash: nginx: command not found
Tell me, please, what is the new command for checking the configuration now?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Page-Audit.ru, 2021-07-04
@Dwellss

service nginx configtest

R
Ronald McDonald, 2021-07-04
@Zoominger

The same, it's just that your PATH is not registered.
Try:

/usr/local/sbin/nginx - t
/bin/bash/nginx -t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question