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 ubuntu

systemctl restart nginx
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 :: change git commit message 
Shell :: Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed? 
Shell :: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? 
Shell :: laravel command not found after installing laravel mac 
Shell :: Exception: Error running pod install 
Shell :: reinstal apache2 ubuntu 
Shell :: install lerna 
Shell :: jupyterlab documentation 
Shell :: show mongodb version 
Shell :: git command to get the repo url 
Shell :: Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100145, now running 100415. Please use mysql_upgrade to fix this error 
Shell :: if variable has substring in bash 
Shell :: gitlab ci allow failure 
Shell :: remove orphan packages manjaro 
Shell :: check that redis is running 
Shell :: delete empty files bash 
Shell :: arch linux emoji not showing 
Shell :: debian install vim 
Shell :: open port 3000 ubuntu 
Shell :: view git stash without applying 
Shell :: see disk info linux 
Shell :: how to install podman in ubuntu 
Shell :: vim nerdtree always show hidden files 
Shell :: du sort by size 
Shell :: how to enable scroll lock in ubuntu 20 
Shell :: check th binggest file in linux 
Shell :: ubuntu install node js 
Shell :: how to add existing heroku remote 
Shell :: how to remove all docker container at once 
Shell :: centos install netstat 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =