how to update minecraft server and keep world Minecraft Servers

how to update minecraft server and keep world