--- 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)