nginx -v command not found
run echo $PATH Does it contain /usr/local/sbin?
If not try PATH=/usr/sbin/:$PATH
Also, check that nginx is installed in /usr/local/sbin, by going into this directory.
run echo $PATH Does it contain /usr/local/sbin?
If not try PATH=/usr/sbin/:$PATH
Also, check that nginx is installed in /usr/local/sbin, by going into this directory.