Answer the question
In order to leave comments, you need to log in
Can't start Minecraft server on CentOS 7 via terminal?
Hello! I'm at the finish line for creating a minecraft server. I create it for the sake of interest, and to have fun with friends and remember about youth)
So, I did everything according to the lesson at the link .
I enter the necessary commands, and I get an error:
[[email protected] ~]# systemctl daemon-reload
[[email protected] ~]# systemctl start minecraft
[[email protected] ~]# systemctl status minecraft
● minecraft.service - Minecraft Server
Loaded: loaded (/etc/systemd/system/minecraft.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-09-07 09:13:27 MSK; 3s ago
Process: 9557 ExecStart=/usr/bin/java -Xmx1024M -Xms512M -jar server.jar nogui (code=exited, status=203/EXEC)
Main PID: 9557 (code=exited, status=203/EXEC)
Sep 07 09:13:27 266943.simplecloud.ru systemd[1]: Started Minecraft Server.
Sep 07 09:13:27 266943.simplecloud.ru systemd[1]: minecraft.service: main process exited, code=exited, status...EXEC
Sep 07 09:13:27 266943.simplecloud.ru systemd[1]: Unit minecraft.service entered failed state.
Sep 07 09:13:27 266943.simplecloud.ru systemd[1]: minecraft.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Answer the question
In order to leave comments, you need to log in
Many people have problems with the daemon, I advise you to use screen (no).
Install pm2
Write a sh script that starts the server.
And run this sh via pm2.
Save the config and do an autoload at system startup, you're done. You can consider this an analogue of systemctl =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question