Answered by : obedient-osprey-vco5wit6fryu
sudo systemctl restart nginx
Source : https://linuxize.com/post/start-stop-restart-nginx/ | Last Update : Mon, 08 Jun 20
Answered by : troubled-tuatara-jj278d0xok43
sudo systemctl reload nginx
Source : https://phoenixnap.com/kb/nginx-start-stop-restart | Last Update : Tue, 29 Sep 20
Answered by : akbarali
{"tags":[{"tag":"textarea","content":"sudo systemctl restart nginx","code_language":"whatever"}]}
Source : | Last Update : Mon, 30 Jan 23
Answered by : jocelyn
sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo service nginx start
sudo service nginx stop
sudo service nginx restart
sudo /etc/init.d/nginx start
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx restart
Source : https://www.cyberciti.biz/faq/nginx-restart-ubuntu-linux-command/ | Last Update : Fri, 04 Jun 21
Answered by : depressed-deer-20xq3p7xm947
sudo service nginx restart
Source : https://linuxize.com/post/start-stop-restart-nginx/ | Last Update : Sat, 09 May 20
Answered by : said-hr
// The nginx package supplies a /etc/init.d/nginx script that provides the usual start|stop|restart|reload ... functionality.
/etc/init.d/nginx restart
// will restart nginx as will
service nginx restart
Source : | Last Update : Sun, 27 Feb 22
Answered by : important-impala-43yweaunysqd
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
Source : https://gist.github.com/keberwein/2fad3537fc7217704686817ec36cc10e | Last Update : Tue, 20 Apr 21
Answered by : you
const { exec } = require('child_process');
exec('sudo service nginx restart', (error, stdout, stderr) => { if (error) { console.error(`Error: ${error.message}`); return; } if (stderr) { console.error(`stderr: ${stderr}`); return; } console.log(`stdout: ${stdout}`);
});
Source : | Last Update : Tue, 19 Sep 23