https://github.com/eterline/minecraft-server
https://github.com/eterline/minecraft-server
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eterline/minecraft-server
- Owner: eterline
- Created: 2024-02-25T12:04:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T15:38:39.000Z (over 2 years ago)
- Last Synced: 2025-02-27T16:08:21.812Z (over 1 year ago)
- Language: Shell
- Size: 60.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Configured Minecraft Server
## Requires
install mcrcon from https://github.com/Tiiffi/mcrcon
```
git clone https://github.com/Tiiffi/mcrcon.git
cd mcrcon
make
sudo make install
```
## Fast startup.
To start the server, you will need to copy the repository to a convenient folder.
```
cd /root
git clone https://github.com/Line-Without-End/Minecraft-Server.git
cd Minecraft-Server
```
PM2 is used to operate the server and autostart it.
PM2 installation
```
sudo apt-get install build-essential
sudo apt-get install curl openssl libssl-dev
git clone https://github.com/joyent/node.git
cd node
git checkout v0.10.24
./configure
make
sudo make install
sudo npm install pm2 -g
```
After that start the server app
```
./start.sh
```
pm2 will start your server
## Connection to server
Connect to game:
> your__server_ip:55055
Rcon port:
> your__server_ip:55056
## Autostart.
To organize autostart after shutting down the server, save the list of workers.
```
pm2 save
```
To turn off the configuration service:
```
./stop.sh
```
To reboot the server manually:
```
pm2 restart mine-server
```
## Autorestart.
config the file ecosystem.config.js parameter - cron_restart
## PM2 app info
```
pm2 list
```
## Scripts
> restart.sh - displays a message about the server restart in 60 seconds, saves the world and restarts.
> server_load.sh - displays avgload information in the server chat.
> start.sh - start the server manually.