解决windows10无法安装 jekyll、MSYS2

安装的路径中,连同命名,不要出现空格!不要出现空格!不要出现空格
我的安装路径:D:\Program Files\Ruby27-x64--------Program Files,出现了空格,搞了大半天!也不要出现()符号。
在这里插入图片描述

windows 平台还需要安装wdm
在这里插入图片描述

参考链接1
参考链接2

错误: ruby/2.7.0/socket.rb:201:in ‘bind’: Permission denied - bind(2) for 127.0.0.1:4000 (Errno::EACCES)
是端口号被占用了,需要换一个端口号

参考链接3

Error staring Jekyll
When you start Jekyll and you get the following message, then probably some other process is already running at the port:

C:/app_scoop/apps/ruby/2.7.0-1/lib/ruby/2.7.0/socket.rb:201:in ‘bind’: Permission denied - bind(2) for 127.0.0.1:4000 (Errno::EACCES)

To find out if something is blocking your port (in PowerShell):

PS C:\Users\xxx> netstat -ano -p tcp | sls 4000

TCP 0.0.0.0:4000 0.0.0.0:0 LISTENING 9000
The last column gives you the PID of the running process, so you need to find it out.

One of the simplest way is to do it via tasklist:

PS C:\Users\xxx> tasklist | sls 9000

nxd.exe 9000 Services 0 5 328 K
The default port is 4000, but as shown there is already nomachine’s nxd.exe running on the port. The solution is to change the default port via the --port setting.

To start Jekyll on non-default port 4001 you need to run it like this:
jekyll serve --baseurl=’’ --port 4001
Regenerate tags
If new an article is written with new tag(s) you need to generate tag(s) for the tags page. For that you need to run script which is automagically prepared at:

http://127.0.0.1:4001/admin/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值