Pick the loader and version
Cobblemon is published for Fabric and NeoForge. Check the Cobblemon page on Modrinth or CurseForge for the Minecraft version the current release targets, because it does not always support the newest Minecraft immediately. Install that exact Minecraft version on the server.
Install it
On Fabric, install the Fabric server, then put Cobblemon, Fabric API and Fabric Language Kotlin into mods. On NeoForge, install the NeoForge server and add Cobblemon with any dependencies its page lists. Start the server once and confirm it reaches Done.
An easier path is a Cobblemon modpack, such as the official one on Modrinth, which gives server and players the same mod set.
Memory
Cobblemon on its own is fairly light: 4 GB is enough for a small group. Popular Cobblemon packs with dozens of extra mods and custom world generation usually want 6 to 8 GB.
Add-ons and server tools
Many server owners add a claim mod, LuckPerms for permissions, spark for profiling and Chunky for pre-generation. Cobblemon add-ons extend battles, spawns and progression; check that each one supports your Cobblemon version before adding it.
Players
Every player needs Cobblemon and its dependencies at the same versions as the server, which a modpack makes painless.