# 一键安装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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/yi-jian-an-zhuang-hexo-bo-ke.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
