Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

restart nginx

sudo systemctl reload nginx
Comment

Start / Restart / Stop Nginx Commands

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
Comment

restart nginx

// 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
Comment

restart nginx mac

brew services restart nginx
Comment

restart nginx windows

@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
Comment

PREVIOUS NEXT
Code Example
Shell :: git change commit message of old commit 
Shell :: how to remove the last character terminal 
Shell :: bootstrap install for next.js 
Shell :: test environment jest-environment-jsdom cannot be found 
Shell :: install sublime text manjaro 
Shell :: upgrade ubuntu 16.04 to 20.04 
Shell :: update npm with nvm 
Shell :: jupyterlab 
Shell :: check if mongodb is installed 
Shell :: windows powershell symlink 
Shell :: install webmin ubuntu 20.04 
Shell :: if has bash 
Shell :: fatal: Not possible to fast-forward, aborting. 
Shell :: apache2 reload 
Shell :: uninstall node js from ubuntu 
Shell :: how to delete services in kubernetes 
Shell :: Another active Homebrew update process is already in progress 
Shell :: how to sign into github from terminal 
Shell :: check folder sizes linux 
Shell :: crontab file location 
Shell :: how to update remote branches list git 
Shell :: install seaborn in anaconda 
Shell :: install docker linux mint 
Shell :: download nbextensions 
Shell :: use vscode as default file editor for filezilla ubuntu 
Shell :: zsh check if directory exists 
Shell :: uncompress tar 
Shell :: brew node update 
Shell :: screen kill session 
Shell :: remove git from local folder 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =