Skip to main content
Jump to: navigation, search

Dirigible/Infrastructure/Update Trial

Update Trial

Login to Trial VM

   cd /opt/tomcat/apache-tomcat-8.5.30/bin/
   sudo -u tomcat ./
   ps -ef|grep tomcat (kill it if necessary)
   cd /opt/tomcat/apache-tomcat-8.5.30/work/
   rm -R Catalina
   cd /opt/tomcat/apache-tomcat-8.5.30/webapps/
   rm ROOT.war
   rm -R ROOT
   mkdir ~/trial/
   mkdir ~/trial/<version>
   scp ROOT.war<version>
   sudo -u tomcat cp /home/vsacct/trial/<version>/ROOT.war /opt/tomcat/apache-tomcat-8.5.30/webapps/
   cd /opt/tomcat/apache-tomcat-8.5.30/bin
   sudo -u tomcat ./ run <&- &


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 --dport 80 -j REDIRECT --to-ports 8080

Count of Users

   cd /opt/tomcat/apache-tomcat-8.5.30/bin/target/dirigible/repository/root/users
   ls -alh | grep -c ^d

Back to the top