Skip to content

Instantly share code, notes, and snippets.

@lukehedger
Last active February 28, 2022 16:57
Show Gist options
  • Save lukehedger/3cb6ec65e753d850ccea to your computer and use it in GitHub Desktop.
Save lukehedger/3cb6ec65e753d850ccea to your computer and use it in GitHub Desktop.
Kill Jekyll server

Stopping a Jekyll server with ctrl-z can cause issues as the process is not stopped fully. To kill it:

$ lsof -wni tcp:4000
$ kill -9 <PID of process>

And next time, use crtl-c to stop.

@nathanhleung
Copy link

Thanks!

@suvozy
Copy link

suvozy commented Apr 11, 2020

Try this!

ps aux |grep jekyll |awk '{print $2}' | xargs kill -9

@kevinsingh5
Copy link

Accidentally stopped instead of killing Jekyll and this helped. Thanks!

@xandermar
Copy link

ps aux |grep jekyll |awk '{print $2}' | xargs kill -9

Worked for me. Thanks!

@suvozy
Copy link

suvozy commented Feb 28, 2022

@xandermar @kevinsingh5 You're welcome ☺️ 🙇‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment