Jump to content
  • 0

[Help] startLoginServer.sh


MeVsYou

Question

Hello guys,

i use linux OS (specially Ubuntu at the momment) .

I install java jdk,mysql,navicat.

Also i install my db with .sql execute file backup.

But now i have stucked on how to run startloginserver.sh  and  startgameserver.sh

 

I have tried these commands :

 

chmod +x startLoginServer.sh LoginServer_loop.sh

./startLoginServer.sh

 

chmod +x startGameServer.sh GameServer_loop.sh

./startGameServer.sh

 

But nothing happened.Even if i edit startloginserver.sh  and i put the directory,then it appears a console which say  :  nice:java etc etc.... something like this.

 

 

Any ideas plz...i NEED help !

Link to comment
Share on other sites

Recommended Posts

  • 0

ok better java say that "java" i not recognized as an internal or external command operable program or batch file ?

 

nice:java not such file or directory

 

 

 

In startloginserver.sh:i have edited to this :

 

 

#!/bin/bash

 

cd /root/Desktop/Server/login/

xterm -title "LoginServer Log" -e tail -f /root/Desktop/Server/login/log/stdout.log &

./LoginServer_loop.sh &

 

Link to comment
Share on other sites

  • 0

try add this for loginserver.sh and gameserver.sh

 

change it

 

nice -n -2 java -Xms512m -Xmx512m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1

 

for this

 

nice -n -2 /direct/path/to/java -Xms512m -Xmx512m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1
Link to comment
Share on other sites

  • 0

try add this for loginserver.sh and gameserver.sh

 

change it

 

for this

 

In case of this :

 

#!/bin/bash

 

cd /root/Desktop/Server/login/

xterm -title "LoginServer Log" -e tail -f /root/Desktop/Server/login/log/stdout.log &

./LoginServer_loop.sh &

 

 

To write this :

 

#!/bin/bash

 

cd /root/Desktop/Server/login/

nice -n -2 /direct/path/to/java -Xms512m -Xmx512m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1

./LoginServer_loop.sh &

 

 

 

 

on startloginserver.sh  ???

Link to comment
Share on other sites

  • 0
nice -n -2 /direct/path/to/java -Xms512m -Xmx512m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1

 

name red that mean you must specify the correct path to the java

Link to comment
Share on other sites

  • 0

ok Onix,but where to add this ?

in startloginserver.sh  there is not such a line.

 

try add this line and dont forget to add the correct path to the java where ticked on red :)

Link to comment
Share on other sites

  • 0

try add this line and dont forget to add the correct path to the java where ticked on red :)

 

bro listen me ,where to add this line in what file??? give me an example,i will make it correct with the direction.But in startloginserver.sh there is not such a line you gave me in order to change it.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...