Hi,
I'm still new in Matter Most a not very experienced in Linux, but have you looked at the installation instructions?
https://www.mattermost.org/installation/
For Example, on Debian 8, you have to follow the Instructions at Point 8 at http://docs.mattermost.com/install/prod-debian.html to start Mattermost automatically.