Install a NeoForge 26.2.0.62 (1.26.2) server through the Control Panel (Servers → Select your server → Game servers → Add Game Server → NeoForge 26.2.0.62 (1.26.2))
I find this to be very helpful with everything and learning how to run my own server, I think it can be a bit difficult to find a way to put mods but for the most part it works! The server itself is great, not much lag and is everything you would expect in a minecaft server!