Sometimes when you run Jekyll server locally to test the preview of your site, you will encounter an error that tells you Address is already in used. The error output in the console when you run the command jekyll –server is something similar to this
That means there’s already some other process or jekyll running on the port that jekyll uses and because of some reasons they do not close automatically. To fix this, open Terminal and run this command to list all process running at port 4000 (jekyll’s default port)
After that issue this command
Replace PID with the PID of the running process. Now run the jekyll server again. ;)