See FlexDeploy installation instructions for the target application server platform.
WebLogic
Tomcat (Existing Tomcat server installation)
Tomcat (Tomcat server installation included)