To reload NGINX in terminal
Enter sudo then
nginx -t
nginx -s reload
Are the commands to test and reload NGINX, however, how can this be done from a Java web application, which I need my web application to be able to control NGINX at least to test and reload.