LoginSignup
0
0

More than 3 years have passed since last update.

Minecraft forgeをCentOS8で動かす為のTips

Last updated at Posted at 2020-04-02

事前にインストールするもの

dnf install -y java-1.8.0-openjdk
dnf install -y epel-release
dnf install -y screen

forge起動スクリプト


#!/bin/sh
/usr/bin/screen -DmS forge java -server -Xms1G -Xmx8G -XX:MetaspaceSize=512M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+DisableExplicitGC -XX:+UseCompressedOops -XX:+OptimizeStringConcat -XX:+UseTLAB -jar forge-1.14.4-28.0.18.jar

サービス

nano /etc/systemd/system/forge.service
[Unit]
Description=Forge Minecraft Server
After=network-online.target

[Service]
ExecStart=/bin/bash /home/forge/forge.sh
WorkingDirectory=/home/forge/
Restart=always
User=forge
Group=forge

[Install]
WantedBy=multi-user.target
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0