File tree Expand file tree Collapse file tree 10 files changed +26
-4
lines changed Expand file tree Collapse file tree 10 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 2929## Administrative Commands
3030
3131 Starting the Server:
32+ sudo systemctl start nginx
3233 sudo service nginx start
3334
3435 Stopping the Server:
36+ sudo systemctl stop nginx
3537 sudo service nginx stop
3638
3739 Restarting the Server:
40+ sudo systemctl restart nginx
3841 sudo service nginx restart
3942
43+ Reloading the Server:
44+ sudo systemctl reload nginx
45+
4046 Checking the Server Status:
47+ sudo systemctl status nginx
4148 sudo service nginx status
4249
4350 Disable the Server at Boot-Up:
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ systemctl reload nginx
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- service nginx restart
3+ systemctl restart nginx
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ service nginx restart
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- service nginx start
3+ systemctl start nginx
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ service nginx start
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- service nginx status
3+ systemctl status nginx
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ service nginx status
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- service nginx stop
3+ systemctl stop nginx
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ service nginx stop
You can’t perform that action at this time.
0 commit comments