certbot: Could not find a usable 'nginx' binary

Viewed 878

I am on centos7, using certbot 1.17.0 to execute certbot --nginx

Then got an error

The nginx plugin is not working; there may be problems with your existing configuration.
The error was: NoInstallationError("Could not find a usable 'nginx' binary. Ensure nginx exists, the binary is executable, and your PATH is set correctly.")

My nginx is installed in another directory, can I specify the directory where nginx is located when running certbot

# nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
0 Answers
Related