# How deploy dgraph on a linux server?

**URL:** <https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372>\
**Category:** Dgraph\
**Created:** [December 20, 2021, 5:14pm UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372 "2021-12-20T17:14:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![littleone](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/littleone/32/6333_2.png) [@littleone](https://discuss.dgraph.io/u/littleone)\
**Post date:** [December 20, 2021, 5:14pm UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/1 "2021-12-20T17:14:18Z")

</div>

I buy a centos server, install docker, run the install command below:

```auto
docker run --rm -it -p "8080:8080" -p "9080:9080" -p "8000:8000" -v ~/dgraph:/dgraph "dgraph/standalone:v21.03.2"

```

it works fine, then I try to access ratel at [http://my-server-ip:8000](http://my-server-ip:8000), get error:

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/f/fca87056efc22749432e4313c6d5f16b9bcffe85.png)

what I missed?

by the way, the zero and alpha works fine, for I can run query with curl command in the local dev.

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [December 20, 2021, 11:39pm UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/2 "2021-12-20T23:39:12Z")

</div>

You can remove the port 8000 from the docker command(cuz there’s no Ratel binary in that image) and use [https://play.dgraph.io/](https://play.dgraph.io/) instead.

OR you can use the Ratel image [Docker Hub](https://hub.docker.com/r/dgraph/ratel/tags)

---

<div class="post-metadata">

**Author:** ![littleone](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/littleone/32/6333_2.png) [@littleone](https://discuss.dgraph.io/u/littleone)\
**Post date:** [December 22, 2021, 1:37am UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/3 "2021-12-22T01:37:14Z")

</div>

yes it works

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/8/8ced414b87c5d44296afc72dbc2b5e4f730384f4.png)  
but how to connect to it? what’s is the password?  
 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/8/887ad8d7fb2bb7a4798ef58a5965ed3a36ac8820.png)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [December 22, 2021, 2:59am UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/4 "2021-12-22T02:59:24Z")

</div>

> [@littleone](#):
>
> but how to connect to it? what’s is the password?

ACL only needs to be logged in if you have enabled it and will use ACL (which is an enterprise feature).

---

<div class="post-metadata">

**Author:** ![littleone](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/littleone/32/6333_2.png) [@littleone](https://discuss.dgraph.io/u/littleone)\
**Post date:** [December 22, 2021, 4:25am UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/5 "2021-12-22T04:25:30Z")

</div>

but the continue button is disabled now, and it looks like the endpoint is not available, how to continue?

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/285124d770c57e775747e50daa1fc0f434d204b4.png)

I never meet this problem in local development environment

 ![image](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/3/34cd3006e1bd101c7273ef5b92a0de5c594d1ac7.png)

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [December 22, 2021, 6:56am UTC](https://discuss.dgraph.io/t/how-deploy-dgraph-on-a-linux-server/16372/6 "2021-12-22T06:56:58Z")

</div>

This is probably a know issue called “Google”. They have altered the rules of the browser connecting with something outside the local network. This is “CORS”. In this case, you should use the Ratel image instead. And also always in the same network and IP range.
