# STARDOG\_JAVA\_ARGS=-Dstardog.default.cli.server

**URL:** <https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486>\
**Category:** Support\
**Created:** [May 30, 2020, 7:22am UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486 "2020-05-30T07:22:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajannasa](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rajannasa](https://community.stardog.com/u/rajannasa)\
**Post date:** [May 30, 2020, 7:22am UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/1 "2020-05-30T07:22:42Z")

</div>

I want to start the server on remote linux server an connect from my workstation.  
I did set below parameter  
export STARDOG\_JAVA\_ARGS="-Dstardog.default.cli.server=[http://Servername:5820](http://Servername:5820)"

but still when it comes up says local host and not the server name...

* * *

Stardog server 7.3.0 started on Sat May 30 02:13:55 CDT 2020.

Stardog server is listening on all network interfaces.  
HTTP server available at [http://localhost:5820](http://localhost:5820).

STARDOG\_HOME=/\*\*\*\*\*\*/stardog/stardog-7.3.0/

## server status

Backup Storage Directory : .backup  
CPU Load : 0.00 %  
Connection Timeout : 10m  
Export Storage Directory : .exports  
Memory Heap : 308M (Max: 27G)  
Memory Mode : DEFAULT{Starrocks.block\_cache=20, Starrocks.dict\_block\_cache=10, Native.starrocks=70, Heap.dict\_value=50, Starrocks.txn\_block\_cache=5, Heap.dict\_index=50, Starrocks.memtable=40, Starrocks.untracked\_memory=20, Starrocks.buffer\_pool=5, Native.query=30}  
Memory Query Blocks : 0B (Max: 7.6G)  
Memory RSS : 1.9G  
Platform Arch : amd64  
Platform OS : Linux 3.10.0-1062.el7.x86\_64, Java 1.8.0\_222  
Query All Graphs : false  
Query Timeout : 5m  
Security Disabled : false  
Stardog Home : /stardog/stardog-7.3.0  
Stardog Version : 7.3.0  
Strict Parsing : true  
Uptime : 20 minutes 26 seconds  
Databases :  
+----------+-------------+------------------------------------------------------+--------------------------------------------+  
| | | Transactions | Queries |  
+----------+-------------+-------+-------+-----------+---------------+----------+---------+-------+---------------+----------+  
| Database | Connections | Open | Total | Avg. Size | Avg. Time (s) | Rate/sec | Running | Total | Avg. Time (s) | Rate/sec |  
+----------+-------------+-------+-------+-----------+---------------+----------+---------+-------+---------------+----------+  
| myDB | 1 | 0 | 0 | 0 | 0.000 | 0.000 | 1 | 1 | 32.426 | 0.001 |  
+----------+-------------+-------+-------+-----------+---------------+----------+---------+-------+---------------+----------+

connecting from studio says server is not responding

---

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [May 30, 2020, 8:28am UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/2 "2020-05-30T08:28:56Z")

</div>

That JVM arg works a little differently: it tells the client CLI commands where the server is running (once started) so the full connection string won't need to be repeated in every command. But `stardog-admin server start` won't start the server on a remote instance, for that you need ssh access to that instance.

Best,  
Pavel

---

<div class="post-metadata">

**Author:** ![rajannasa](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rajannasa](https://community.stardog.com/u/rajannasa)\
**Post date:** [May 30, 2020, 9:22am UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/3 "2020-05-30T09:22:43Z")

</div>

connecting from studio says server is not responding

when i use admin/admin and endpoint [http://servername:5820/myDB](http://servername:5820/myDB)

But if i use browser [http://servername:5820/myDB](http://servername:5820/myDB) i can see the content

any help?

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 30, 2020, 2:54pm UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/4 "2020-05-30T14:54:06Z")

</div>

You don't connect to database you connect to the server. Studio will let you select the database after you've connected.

Try connecting to `http://servername:5820`

---

<div class="post-metadata">

**Author:** ![rajannasa](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rajannasa](https://community.stardog.com/u/rajannasa)\
**Post date:** [May 31, 2020, 4:40am UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/5 "2020-05-31T04:40:59Z")

</div>

Do u guys have any links which shows how to do data modeling in stardog

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 31, 2020, 3:53pm UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/6 "2020-05-31T15:53:30Z")

</div>

Can you give some idea of what you're looking for? Beginner, intermediate, expert level? Stardog specific or OWL/SWRL? Tips and best practices etc?

---

<div class="post-metadata">

**Author:** ![rajannasa](https://avatars.discourse-cdn.com/v4/letter/r/b5ac83/32.png) [@rajannasa](https://community.stardog.com/u/rajannasa)\
**Post date:** [May 31, 2020, 8:12pm UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/7 "2020-05-31T20:12:24Z")

</div>

Beginner and intermediate trying to model something from Json mongodb to star dog

---

<div class="post-metadata">

**Author:** ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)\
**Post date:** [May 31, 2020, 10:34pm UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/8 "2020-05-31T22:34:38Z")

</div>

I would start with the relevant section in the docs

> **[Home](https://docs.stardog.com/)**
>
> Documentation for Stardog, the world’s leading Knowledge Graph Platform for the Enterprise

and follow up with these blog posts [Search | Stardog](https://www.stardog.com/search/?query=mongodb)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/stardog/original/2X/e/ed66b48a616f505106a4acde3c9cee7e6da9bc67.svg) [@system](https://community.stardog.com/u/system)\
**Post date:** [June 14, 2020, 10:34pm UTC](https://community.stardog.com/t/stardog-java-args-dstardog-default-cli-server/2486/9 "2020-06-14T22:34:39Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
