> For the complete documentation index, see [llms.txt](https://goodblock.gitbook.io/dstor/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://goodblock.gitbook.io/dstor/storage-node-operation-guide/storage-node-operation/create-directory-and-install-dstor.md).

# Create Directory & Install dStor

### Create your IPFS Directory Manually

Best practice dictates that this directory should be on a file system that is separate from your OS. For example:&#x20;

`mkdir /ipfs mount /dev/[device array] /ipfs chown -R username`

### Install dstor-storage-node

Clone the git repo in your choice dStor directory, for example: /home/dstor

git clone <https://github.com/goodblockio/dstor-storage-node> cd dstor-storage-node

Editpre-reqs.sh and setup.sh to your needs. Fill out the IPFS directory, and read the comments.

&#x20;`source ./pre-reqs.sh`

Edit server\_name "nodename.dstor.cloud;" inside storagenode.nginx AND inside setup.sh to your node name. This will set up port openings, nginx config, certbot, ipfs and wireguard. Then Run:&#x20;

`./setup.sh`

Use .env.example file to create your own .env file. If you have questions about the .env values, you can always ask our support team for help.&#x20;

`cp .env.example .env`

To Start the node server: run <mark style="background-color:blue;">`pm2 restart ecosystem.config.js`</mark> from <mark style="background-color:blue;">`dstor-storage-node folder`</mark>&#x20;

To see logs use <mark style="background-color:blue;">`pm2 logs`</mark>&#x20;

To restart the node server: <mark style="background-color:blue;">`run pm2 restart ecosystem.config.js --update-env`</mark> from <mark style="background-color:blue;">`dstor-storage-node`</mark> folder


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://goodblock.gitbook.io/dstor/storage-node-operation-guide/storage-node-operation/create-directory-and-install-dstor.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.
