Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "Dirigible/Infrastructure/Update Trial"
< Dirigible | Infrastructure
Line 28: | Line 28: | ||
==== Count of Users ==== | ==== Count of Users ==== | ||
− | cd /opt/tomcat/apache-tomcat-8.5. | + | cd /opt/tomcat/apache-tomcat-8.5.30/bin/target/dirigible/repository/root/users |
ls -alh | grep -c ^d | ls -alh | grep -c ^d | ||
[[Category:Dirigible]] | [[Category:Dirigible]] |
Latest revision as of 07:54, 5 July 2018
Update Trial
Login to Trial VM
ssh vsacct@dirigible.eclipse.org su cd /opt/tomcat/apache-tomcat-8.5.30/bin/ sudo -u tomcat ./shutdown.sh 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 vsacct@dirigible.eclipse.org:~/trial/<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 ./catalina.sh run <&- &
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
Count of Users
cd /opt/tomcat/apache-tomcat-8.5.30/bin/target/dirigible/repository/root/users ls -alh | grep -c ^d