> 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 %}

![完成图](https://3437725263-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-LluplfJDETDQ1wIHNxR%2F-LlupnWqOZVWU6iL3uK9%2F5.png?alt=media\&token=30690ad9-b4fb-4240-ad96-1ea7686d888c)

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

```
cd hexoblog
hexo s
```

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

![本地预览](https://3437725263-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-LluplfJDETDQ1wIHNxR%2F-LluqmWs7L0rHAJhJkR-%2F6.png?alt=media\&token=88e71510-22da-4c59-bd41-1d7bb2909436)

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

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

![](https://3437725263-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlpfTEtpw-XHjloYx-t%2F-LluplfJDETDQ1wIHNxR%2F-LlurN1aku8F_ZGR35Av%2F7.png?alt=media\&token=c9b96207-b162-43de-839b-1837d1241566)
