> For the complete documentation index, see [llms.txt](https://mixdao.gitbook.io/dfinity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mixdao.gitbook.io/dfinity/si-.-jiao-cheng/5.-ji-suan-han-shu-zhong-shi-yong-zheng-shu/qi-dong-ben-di-wang-luo.md).

# 启动本地网络

开始构建项目前，需要连接到本地或远程 ICP 网络。

启动本地网络需要 dfx.json 文件，需要确认在项目根目录操作。在这篇教程中，建议开启 2 个终端，一个启动网络，另一个管理项目。

启动网络步骤

1. 打开新的终端
2. 进入项目根目录
3. 使用下面的命令启动 ICP 本地网络\
   \&#xNAN;**`dfx start`**

   这是可能会有警告信息显示，这取决于使用的平台安全策略配置。这时请选择允许。

   启动本地网络后，终端会显示网络操作信息。
4. 切换到项目终端
