Port is switching again and again to 8080, how to permanently change it to 8081

I have made the changes in conf file, but they are somehow getting erased again and again when I restart the server. I don’t know what is happening.

use sudo nano <file_name> to change the port

Yes, I have done that. But the thing is that when I restart the server again, it’s no more on the .