I’d say try reading this site it’s about ubuntu but that doesn’t matter the only real difference is in step 1
step 2 describes adding an admin user and password (you probobly need to run step 2 as root but I’m not sure)
https://www.digitalocean.com/community/tutorials/how-to-install-ejabberd-xmpp-server-on-ubuntu