I was not qualified to leave comments. So I added a new answer.
I ran into this problem on Mac OS X 10.10.3. And I have never installed / used Jekyll before. I could not start the jekyll server with a default port number of 4000. The reason was that the port was the same as the one used by NoMachine. FROM
$ sudo lsof -wni tcp:4000
Note. Running this command without sudo will lead to output.
I saw this output:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME nxd 449 nx 3u IPv4 0x8d22************ 0t0 TCP *:terabase (LISTEN) nxd 449 nx 4u IPv6 0x8d22************ 0t0 TCP *:terabase (LISTEN)
Port 4000 was occupied by nxd , which was started by the NoMachine process. As well as
$ sudo kill -9 449
will not work because the NoMachine nxd process will continue to restart with the new PID.
Therefore, I had to either:
Changed my jekyll server port on _config.yml to another, saved. I _config.yml line below to _config.yml and it worked.
port: 3000 # change server port to 3000
or
- Changed the default NoMachine nMD port, or Remove NoMachine
Fonzie Jun 16 '15 at 14:53 2015-06-16 14:53
source share