How to edit it without losing changes
The file sits in the server's root folder. Stop the server before editing it: a running server can write its own copy back on shutdown and overwrite what you changed. Edit, save, then start the server again. On StormNodes, open it from the File Manager, which saves straight to the server.
Keys are written as key=value with no spaces around the equals sign. True and false are lowercase.
Settings worth changing
These are the keys owners change most, with what they do:
- motd: the text under your server name in the multiplayer list
- max-players: the player cap shown to clients
- difficulty and gamemode: peaceful, easy, normal, hard; survival, creative, adventure, spectator
- white-list and enforce-whitelist: restrict joining to listed players
- view-distance and simulation-distance: the two biggest performance levers
- online-mode: keep true unless the server sits behind a proxy that authenticates players
- spawn-protection: radius around spawn that non-operators cannot edit
- level-name and level-seed: which world folder to load, and the seed for new worlds
- allow-flight: whether players flying without permission get kicked
- hardcore: one life, then spectator mode
Settings that are now game rules
Minecraft 1.21.9 removed pvp, allow-nether, spawn-monsters and enable-command-block from server.properties and turned them into game rules. If you run 1.21.9 or newer and those keys are missing, that is expected. Change them with the /gamerule command instead; in 1.21.11 and newer the names are minecraft:pvp, minecraft:allow_entering_nether_using_portals, minecraft:spawn_monsters and minecraft:command_blocks_work.
Game rules are stored in the world rather than in server.properties, so they stay with the world if you move it to another server.
Settings most people should leave alone
server-ip should normally be empty; filling it in with the wrong address stops the server binding to its port. network-compression-threshold, max-tick-time, rate-limit and the management-server keys are for specific situations. If a guide tells you to change them, make sure you understand why first.
server-port on a hosted server must match the port the host assigned. Changing it in the file alone will make the server unreachable.