Download current Client
OC (Openshift Client)
Https://mirror.openshift.com/pub/openshift-v3/clients/3.9.14/windows/oc.zip
1 switch to the directory where OC resides.
2 Login to the console and click "Copy Login Command" on your username
3 Running OC Login https://api.starter-us-west-2.openshift.com--token=85bfawhsr62xb-fxridjdvjcjvyworvnq9xpkqqju2o on the command line
4 Enter your account number and password
Oc-new Porject Javaweb
OC New-app wildfly:latest~. --name Myhelloworld New Application Server
OC start-build myhelloworld--from-file=d:\helloworld.war upload War pack
OC Expose SVC Myhelloworld make project visible to public network
OC Get Routes View project deployment, the following is the project of the Bo master deployment
OC Get routesname host/port PATH SERVICES PORT termination wildcardmyhelloworld myhelloworld-jdk180.7e14.starter-us-west-2.openshiftapps.com myhelloworld 8080-tcp None
The war name the blogger just deployed is HelloWorld.
You can access the browser as long as you enter Http://myhelloworld-jdk180.7e14.starter-us-west-2.openshiftapps.com/helloworld.
The effect is as follows
Reference URL: https://blog.openshift.com/deploying-war-file-openshift-online-3/
OpenShift uploading a Java Web project