Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Dirigible/Infrastructure/Update Trial"

(Created page with "== Update Trial == ==== Remote copy ==== scp dirigible-all-tomcat-trial-executable.jar vsacct@dirigible.eclipse.org:~ ==== Copy to working directory ==== ssh vsacct@...")
 
m
Line 2: Line 2:
  
 
==== Remote copy ====
 
==== Remote copy ====
     scp dirigible-all-tomcat-trial-executable.jar vsacct@dirigible.eclipse.org:~
+
     scp dirigible-allinone-<version>-trial-executable.jar vsacct@dirigible.eclipse.org:~
  
 
==== Copy to working directory ====
 
==== Copy to working directory ====
 
     ssh vsacct@dirigible.eclipse.org
 
     ssh vsacct@dirigible.eclipse.org
 
     su
 
     su
     sudo -u tomcat cp dirigible-all-tomcat-trial-executable.jar /opt/tomcat/temp/
+
     sudo -u tomcat cp dirigible-allinone-<version>-trial-executable.jar /opt/tomcat/temp/
  
 
==== Stop running processes ====
 
==== Stop running processes ====
Line 15: Line 15:
  
 
==== Run ====
 
==== Run ====
     sudo -u tomcat java -jar dirigible-all-tomcat-trial-executable.jar <&- &
+
     sudo -u tomcat java -jar dirigible-allinone-<version>-trial-executable.jar <&- &
  
  

Revision as of 11:57, 7 October 2015

Update Trial

Remote copy

   scp dirigible-allinone-<version>-trial-executable.jar vsacct@dirigible.eclipse.org:~

Copy to working directory

   ssh vsacct@dirigible.eclipse.org
   su
   sudo -u tomcat cp dirigible-allinone-<version>-trial-executable.jar /opt/tomcat/temp/

Stop running processes

   ps -ef|grep java
   kill -9 {x2 processes}
   cd /opt/tomcat/temp

Run

   sudo -u tomcat java -jar dirigible-allinone-<version>-trial-executable.jar <&- &


Forwarding

Usually this needs to be executed only on new and clean VM:

   iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
   iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080

Back to the top