xxx@CVE MINGW64 /d/git/action-hugo (main) //当前所在路径,Git分支 $ hugo server //运行本地服务端 Start building sites … hugo v0.99.1-d524067382e60ce2a2248c3133a1b3af206b6ef1+extended windows/amd64 BuildDate=2022-05-18T11:18:14Z VendorInfo=gohugoio
Built in 352 ms Watching for changes in D:\git\action-hugo\{archetypes,content,data,layouts,static,themes} Watching for config changes in D:\git\action-hugo\config.toml, D:\git\action-hugo\themes\ananke\config.yaml Environment: "development" Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop
点击返回提示的url调用浏览器打开即能看到效果。
Hexo
Hexo 需要依赖 npm ,所以需要安装 nodejs,直接到 官网 下载安装包一路默认安装,macOS及Linux按官网提示安装即可。安装完成 npm version 有相应提示。
xxx@CVE MINGW64 /d/git/action-hexo (main) //当前所在路径,Git分支 $ hexo s INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.