--- notion-id: 3b941c12-c4a6-49b6-8e11-affead19ae3b --- 安装Nodejs 安装Git ```powershell npm install -g hexo-cli ``` 相关指令: ```shell hexo init #hexo初始化生成框架文件,必须是空文件夹 hexo s #部署服务器 hexo g #生成静态文件 ``` 部署主题 修改`_config.yml` 注意将`theme `修改成theme文件夹内的主题名称 ```plain text # Extensions ## Plugins: https://hexo.io/plugins/ ## Themes: https://hexo.io/themes/ theme: reimu ``` 修改`_config.yml` 修改URL避免导致布局混乱 ```plain text # URL ## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project' url: https://zhensolid.gitee.io ``` 将文件放入source文件内 `避免路径错误`