You have to follow the wiki instructions.
To run multiple instances on the same machine, you need to ensure that the instances don't try to bind services to the same port on the same IP address. To do that you have to ensure either that:
1) The different AS instances bind all services bind to different IP addresses.
2) Each AS instance picks different ports for each service.
The wiki describes how to implement either 1 or 2.