Have a look at this documentation page: https://docs.mendix.com/developerportal/deploy/unix-like/ and the linked github page: https://github.com/mendix/m2ee-tools/blob/develop/doc/install-1.md