michael@buen:/etc/init.d$ sudo nginx -t && service nginx reload nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful * Reloading nginx configuration nginx [fail] michael@buen:/etc/init.d$ sudo nginx -t && sudo service nginx reload nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful * Reloading nginx configuration nginx [ OK ]
Put sudo on service too
That fixed it for me thanks!
ReplyDelete