How do we change default port to 81 or something else? Thank you

Just enter 81 instead of 80. You have to stop services, schedule and detection.
You need to stop recording, also turn off schedule, guard, and counting application before you change the port.