HELP: how do I screen my server ubuntu 16

Status
This thread has been locked.

ayeaye

Banned
Feedback score
8
Posts
274
Reactions
68
Resources
0
I installed screen but cant figure out how to screen the server (spigot.jar)

when using hte command"
screen -S minecraft java -Xms1024M -Xmx1024M -jar spigot.jar nogui
"

it says it cannot exec because there is no such directory as java

the spigot.jar is located in /var/anvilgames
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Court

Freelance Developer
Supreme
Feedback score
16
Posts
129
Reactions
103
Resources
0
Hi,

Which directory are you in? Type "pwd" for that.
Also, technically you don't need screen (I personally don't use it).
If you are in the wrong directory, type cd /var/anvilgames

Try typing java -Xms1024M -Xmx1024M -jar spigot.jar nogui
If that doesn't work, try using the screen method (making sure you are in the correct directory!)
screen -S minecraft java -Xms1024M -Xmx1024M -jar spigot.jar nogui

Thanks,
iCourt
 

Court

Freelance Developer
Supreme
Feedback score
16
Posts
129
Reactions
103
Resources
0
You do if you want the server to run in the background and not stop when you close your SSH connection.

The problem ayeaye is facing is he is specifying the java command in the screen command and that's not how screen works.
First you would do
Code:
screen -S minecraft
Then you would do
Code:
java -Xms1024M -Xmx1024M -jar spigot.jar nogui
And to exit the screen (and leave it running in the background) type Ctrl + A + D.

To resume the screen session, type this
Code:
screen -r minecraft
Thanks for the input. I personally don't like my server running in the background, my computer glitches out when I restart the server after using it.
But, either way, both solutions work.
 

ayeaye

Banned
Feedback score
8
Posts
274
Reactions
68
Resources
0
Hi,

Which directory are you in? Type "pwd" for that.
Also, technically you don't need screen (I personally don't use it).
If you are in the wrong directory, type cd /var/anvilgames

Try typing java -Xms1024M -Xmx1024M -jar spigot.jar nogui
If that doesn't work, try using the screen method (making sure you are in the correct directory!)
screen -S minecraft java -Xms1024M -Xmx1024M -jar spigot.jar nogui

Thanks,
iCourt
You do if you want the server to run in the background and not stop when you close your SSH connection.

The problem ayeaye is facing is he is specifying the java command in the screen command and that's not how screen works.
First you would do
Code:
screen -S minecraft
Then you would do
Code:
java -Xms1024M -Xmx1024M -jar spigot.jar nogui
And to exit the screen (and leave it running in the background) type Ctrl + A + D.

To resume the screen session, type this
Code:
screen -r minecraft
thanks a bunch! works now
 
Banned forever. Reason: Scamming (https://builtbybit.com/threads/ayeaye-scam-report.439190/)
Status
This thread has been locked.
Top