Tcp port adding using firewalld

i used the below command to add port 8081 to tcp. task failed. can anyone help me with this.

sudo firewall-cmd --zone=public --add-port=8081/tcp

Hello, sohan
It seems like you missed to add “–permanent” flag to make a rules permanent.