Jump to content
  • 0

R>Shortcuts to (Run, Restart, Stop, Recompile) the VPS server


Sqwaz

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  08/17/19
  • Last Seen:  

hi, I'm looking for some help to create a shortcut (using .bat or any other format) files that:
my VPS server os:  Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-113-generic x86_64)
1- Run the server ( ./login-server, ./char-server, ./map-server)
2- Restart the server 
3- Stop The server
4- Recompile the server

I know how to use these commands only, which doesnt do much: 
 

root@test -pw test
cd ..
cd home/test/
git pull


 

but I know about these commands to recompile the server but I dont know how to use them:

tmux a -> to open a new windows or something like that
make clean
make server



The Manual way that my friends sent me is:

cd ..
cd home/Test/
=====
If you want to Stop the server:
tmux (Another Instance will appear)
ctrl+b+x 
then press Y
Repeat it 3 times untill nothing shows up when you type tmux a
=====
If you want to Start the Server:
tmux 
./login-server
ctrl+b+d
tmux
./char-server
ctrl+b+d
tmux
./map-server
=====
To Compile:
make clean
make server



but I just want to make a shortcut files that make my work easier, can someone help me with that?

Summery:
run command files in windows 10 to remotely execute commands on my VPS linux server that Run, Restart, Stop, Recompile rAthena

Edited by Sqwaz
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

2 hours ago, Sqwaz said:

hi, I'm looking for some help to create a shortcut (using .bat or any other format) files that:
my VPS server os:  Ubuntu 22.04.4 LTS (GNU/Linux 5.15.0-113-generic x86_64)
1- Run the server ( ./login-server, ./char-server, ./map-server)
2- Restart the server 
3- Stop The server
4- Recompile the server

I know how to use these commands only, which doesnt do much: 
 

root@test -pw test
cd ..
cd home/test/
git pull


 

but I know about these commands to recompile the server but I dont know how to use them:

tmux a -> to open a new windows or something like that
make clean
make server



The Manual way that my friends sent me is:

cd ..
cd home/Test/
=====
If you want to Stop the server:
tmux (Another Instance will appear)
ctrl+b+x 
then press Y
Repeat it 3 times untill nothing shows up when you type tmux a
=====
If you want to Start the Server:
tmux 
./login-server
ctrl+b+d
tmux
./char-server
ctrl+b+d
tmux
./map-server
=====
To Compile:
make clean
make server



but I just want to make a shortcut files that make my work easier, can someone help me with that?

Summery:
run command files in windows 10 to remotely execute commands on my VPS linux server that Run, Restart, Stop, Recompile rAthena

since you are using ubuntu..

the thing that basically you need to do is.

cd rathena

./configure

make clean

make sql

make server

./athena-start stop

./athena-start start

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...