How To Update A Terraria Server
You can select the version of Terraria you would like to run from the settings page. Once the version is selected press Reinstall/Update button.
Make sure to run a backup of your world and player files before updating to a new version of Terraria. This is to ensure that you can revert back to the previous version if something goes wrong.