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 windows

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

PREVIOUS NEXT
Code Example
Shell :: install vm guest additions ubuntu 
Shell :: open wsl folder in windows explorer 
Shell :: ubuntu boot slow 
Shell :: git can we reset a new branch to a specific commit 
Shell :: how to view a list of installed npm packages 
Shell :: remove git from folder windows 
Shell :: size of directory powershell 
Shell :: a2ensite example 
Shell :: Error: ENOSPC: System limit for number of file watchers reached 
Shell :: angular cli global update 
Shell :: vim hangs 
Shell :: restart nginx ubuntu 
Shell :: install qt creator ubuntu 20.04 
Shell :: cd: permission denied: 
Shell :: remove stash files git 
Shell :: certbot delete certificate 
Shell :: install deb file 
Shell :: undo commit git before push 
Shell :: ionic cordova live reload 
Shell :: add remote origin git 
Shell :: uninstall vmware workstation 
Shell :: settings not opening in ubuntu 18.04 
Shell :: how to check if jenkins is running 
Shell :: linux get recursive directory size 
Shell :: ubuntu ifconfig get only ip address 
Shell :: snapd install 
Shell :: check node version 
Shell :: composer tree 
Shell :: command to find Server’s Public IP Address using curl 
Shell :: git remove remote 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =