sudo vi /opt/tomcat/conf/tomcat-users.xml
<role rolename="manager-gui"/> <user password="" roles="manager-script,admin" username=""/> <user password="" roles="manager-gui,manager-script,admin" username=""/>
then restart tomcat service
sudo systemctl restart tomcat.service