Jekyll serve startup reported an error, error:permission denied -bind(2)

  question, ruby

Jekyll has been successfully installed locally;
Use command: $ jekyll serve startup to report an error? ?

error:permission denied -bind(2) for 127.0.0.1:4000

Local environment: win7

图片描述

This is caused by the port 127.0.0.1: 4000 being occupied.
Resolution:
First: Find out which process occupied 4000 ports

netstat -aon | findstr “4000”

clipboard.png
The process found to occupy 4000 ports is 2844

Second: close the conflicting process (fast key ctrl+shift+esc)
clipboard.png