Deploy the war on remote server 3

I have a war file and I would like to deploy it to a remote computer. Both local and remote old glass 3 is installed and it will be responsible for deploying the application. How can I perform a remote deployment from one machine to another? Can this be done using the asadmin console on one machine and deploying to another?

+4
source share
2 answers

To send ANY commands to a remote domain application server (DAS) from a remote client, such as asadmin, you must first enable security. By default, this feature is disabled. This is easy to fix:

(1) While "on" the remote machine (2) DAS is running (3) asadmin enable-secure-admin (4) asadmin restart-domain

Now you can send asadmin commands from any remote machine.

Change is permanent. Run the command once and forget about it.

For help on the command, run this: asadmin enable-secure-admin --help

+9
source
asadmin deploy --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--passwordfile filename] [--secure|-s] [--virtualservers virtual_servers] [--type application|ejb|web|connector] [--contextroot context_root] [--force=true] [--precompilejsp=false] [--verify=false] [--name component_name] [--upload=true] [--retrieve local_dirpath] [--instance instance_name] filepath 

Note the arguments --host and -port. Specify the required host / port and your application will be deployed to the remote GF.

+4
source

Source: https://habr.com/ru/post/1384680/


All Articles