I’ve always just run the server directly from the JAR in a screen
session. If you’re just running a simple server and don’t need the features of Pterodactyl it’s definitely the easiest option. Just download the JAR from Minecraft’s website to a new directory, and run with java -Xmx4G -Xms4G -jar minecraft_server.1.21.6.jar nogui
(The page says 1 gig of RAM, but I’d recommend more if you have it available).
Either works fine; I just use screen out of habit lol.