> For the complete documentation index, see [llms.txt](https://hexoscript.gitbook.io/hexo-script/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/yi-jian-an-zhuang-hexo-bo-ke.md).

# 一键安装hexo博客

## hexo\_win的使用

您需要在存放install.sh脚本的目录中,右键打开git bash运行以下命令:

```bash
source install.sh hexo_win
```

{% hint style="info" %}
&#x20;提示:此时你可以去来一杯卡布奇诺,大约两分钟的时间,博客即可自动安装完成,如图:
{% endhint %}

![完成图](/files/-LlupnWqOZVWU6iL3uK9)

{% hint style="success" %}
当您看到出现\`Please run hexo s to check it out!\`的提示,证明您已经安装成功,此时你可以运行hexo s 然后查看你的博客
{% endhint %}

```
cd hexoblog
hexo s
```

{% hint style="info" %}
注意:要先cd到hexoblog目录哦!执行以上命令即可
{% endhint %}

![本地预览](/files/-LluqmWs7L0rHAJhJkR-)

可以看到出现了一段地址:[http://localhost:4000](<http://localhost:4000 >)

> 在浏览器访问:[http://localhost:4000 ](<http://localhost:4000 >),你就可以在本地预览了,浏览情况如图:

![](/files/-LlurN1aku8F_ZGR35Av)
