add the old snippet md files
This commit is contained in:
parent
fc0dd204c7
commit
bcf8313a4b
110 changed files with 3048 additions and 0 deletions
22
old_snippets/restart-nginx.en.md
Normal file
22
old_snippets/restart-nginx.en.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: "restart nginx"
|
||||
date: 2021-02-07T00:33:09+01:00
|
||||
draft: false
|
||||
snippet_types:
|
||||
- nginx
|
||||
---
|
||||
|
||||
Normally I use
|
||||
```shell
|
||||
$ sudo systemctl restart nginx
|
||||
```
|
||||
|
||||
but recently I had to take more drastic measures.
|
||||
|
||||
```shell
|
||||
sudo pkill -f nginx & wait $!
|
||||
sudo systemctl start nginx
|
||||
```
|
||||
|
||||
source -- [stackoverflow](https://stackoverflow.com/questions/14972792/nginx-nginx-emerg-bind-to-80-failed-98-address-already-in-use)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue