System:Linux version 3.10.0-514.26.2.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Jul 4 15:04:05 UTC 2017
Path:/root
JavaVersion:
java version "17.0.4" 2022-07-19 LTS
Java(TM) SE Runtime Environment (build 17.0.4+11-LTS-179)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.4+11-LTS-179, mixed mode, sharing)
User:Root
Bash script right:755
PaperSpigotVersion:Latest 1.18.2
I put PaperSpigot in "/root/" and try to run it by bash script.
The content of the bash is "Java -Xms1024m -Xms1024m -jar paper.jar" and the name of the bash script is "start.sh".
I use "sh start.sh" to run it and system tells me that Error: Unable to access jarfile /root/test/paper.jar
however , i use command straightly "Java -Xms1024m -Xms1024m -jar paper.jar" and the servercore can run normally.
It seems that i cannot use bash script to run the servercore.
Background:The script could run normally before but i cannot work as before after the server exited unexpectedly because of players.And I have tried rename the paper.jar or move it to another play but i cannot solve this problem.
Path:/root
JavaVersion:
java version "17.0.4" 2022-07-19 LTS
Java(TM) SE Runtime Environment (build 17.0.4+11-LTS-179)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.4+11-LTS-179, mixed mode, sharing)
User:Root
Bash script right:755
PaperSpigotVersion:Latest 1.18.2
I put PaperSpigot in "/root/" and try to run it by bash script.
The content of the bash is "Java -Xms1024m -Xms1024m -jar paper.jar" and the name of the bash script is "start.sh".
I use "sh start.sh" to run it and system tells me that Error: Unable to access jarfile /root/test/paper.jar
however , i use command straightly "Java -Xms1024m -Xms1024m -jar paper.jar" and the servercore can run normally.
It seems that i cannot use bash script to run the servercore.
Background:The script could run normally before but i cannot work as before after the server exited unexpectedly because of players.And I have tried rename the paper.jar or move it to another play but i cannot solve this problem.