按照上一篇博客创建完成之后,只需要运行以下几行命令便可以在本地看到效果:
运行 npm install
然后运行 hexo g
然后运行 hexo s
默认的端口是4000,但是就是访问不到,使用命令查看:
netstat -ano
发现如下:
查看pid发现4000端口被占用,没办法改成5000了:
所以需要修改:D:\nodeModule\workspace\ihexo\node_modules\hexo-server中index.js中的数据,改为5000访问效果
如下: