Wednesday, January 30, 2013

How to have linux VPS keep running java server?

Q. I have the server an all working.
Minecraft server actually.
But I noticed the server will stop when I close my putty the server will server aswell.
How do I get it to constantly run? Even if my computer is off or not

A. one way would be to use nohup. just start your program with something like:
nohup ./yourprogram
that will keep the program alive, even when you log out. but this will not work with programs that take input from the console.
another way is to use a screen session (if screen is installed). with the command "screen" you start a shell session in which you can then start programs. if you press ctrl+a, ctrl+d (in that order), the session gets detached and will continue after you log out. after logging in, you can resume the session with "screen -r sessionname".
for more informations, try "man screen" or "man nohup".

How do i configure vnc on a linux vps?
Q. I installed vnc server with yum on putty and don't know what to do now, launched it and can't connect to it.

A. You have a vncserver running?

vncserver -list

If not, set your vncpasswd with that very utility if you haven't, then run...

vncserver

to start one up on the default port 1. Can also say "vncserver :2" and so forth. Then connect to the IP with a viewer. Might have to say IP:5901 (5902, whatever the port is you started it on)

vncserver -kill :1 (or whatever port), when you're done with the server.

How to become a system administrator?
Q. I had trouble with my computer so i called up my mothers friend- a system administrator. After 30 min. on the phone he fixed the problem with a bunch of commands and stuff. Im pretty good with computers myself( im running linux ) but his knowledge was just much much much much much more superior then mine. Does anyone know any books,or programs of stuff that will help me become like syst admin?

A. build up a list of contacts who can help you. i'm currently working on a linux VPS and like you i havent got many contacts. If you want we can add each other?
also use google - using that i managed to get my VPS from nothing to a web server (just need to finish on DNS but every time i get an error) and i'm certain google will answer my questions

good luck!



Nec Projector Review

Plastic Shed Reviews

Ati Graphic Reviews

Nurse Uniforms Reviews

Cabochons Reviews

Inflatable Water Slides Reviews

Barcode Scanner Reviews

No comments:

Post a Comment