B4J Tutorial [server] Run a Server on a VPS

Status
Not open for further replies.

Erel

Administrator
Staff member
Licensed User
Please start a new thread for this in the questions forum.
 

Beknazar

Member
Licensed User
3. Start the server with:
B4X:
nohup path_to_java/bin/java -jar somejar.jar > nohup.out &
The console output will be written to nohup.out.
You need to use nohup as otherwise the server will be killed when you log out.
Erel,
please explain how to start server?
Where it is necessary to write?
thanks
 

Erel

Administrator
Staff member
Licensed User
This line starts the server process:

nohup path_to_java/bin/java -jar somejar.jar > nohup.out &
 

avalle

Active Member
Licensed User
Perhaps just useful for noobs...
B4X:
nohup path_to_java/bin/java -jar somejar.jar > nohup.out &
somejar.jar
  • replace the filename with you B4J compiled JAR file.
  • Compile the server app in Release mode.
  • The compiled JAR file can be found in the Objects folder within your B4J project folder.
  • The default name is "result.jar". You can rename it as you like (still keeping the .jar extension ideally).
nohup.out
  • It's the file containing the console output.
  • Rename it as you like.
 

ajk

Active Member
Licensed User
The question may be a bit about the topic: how much theoretically you can squeeze from this type of server? I mean the maximum number of simultaneously served customers.
100 ?, 1000 ?, 1000,000?
 
Status
Not open for further replies.
Top