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.
Difference between revisions of "Dirigible/Infrastructure/Update Trial"
< Dirigible | Infrastructure
m |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
ssh vsacct@dirigible.eclipse.org | ssh vsacct@dirigible.eclipse.org | ||
su | su | ||
− | cd /opt/tomcat/apache-tomcat- | + | cd /opt/tomcat/apache-tomcat-8.5.23/bin/ |
sudo -u tomcat ./shutdown.sh | sudo -u tomcat ./shutdown.sh | ||
ps -ef|grep tomcat (kill it if necessary) | ps -ef|grep tomcat (kill it if necessary) | ||
− | cd /opt/tomcat/apache-tomcat- | + | cd /opt/tomcat/apache-tomcat-8.5.23/work/ |
rm -R Catalina | rm -R Catalina | ||
− | cd /opt/tomcat/apache-tomcat- | + | cd /opt/tomcat/apache-tomcat-8.5.23/webapps/ |
rm ROOT.war | rm ROOT.war | ||
rm -R ROOT | rm -R ROOT | ||
− | sudo -u tomcat wget http://download.eclipse.org/dirigible/drops/<version>/ | + | sudo -u tomcat wget http://download.eclipse.org/dirigible/drops/<version>/tomcat/desktop-all/ROOT.war |
cd ../bin | cd ../bin | ||
sudo -u tomcat ./catalina.sh run <&- & | sudo -u tomcat ./catalina.sh run <&- & | ||
Line 25: | Line 25: | ||
==== Count of Users ==== | ==== Count of Users ==== | ||
− | cd /opt/tomcat/apache-tomcat- | + | cd /opt/tomcat/apache-tomcat-8.5.23/bin/target/dirigible/repository/root/users |
ls -alh | grep -c ^d | ls -alh | grep -c ^d | ||
[[Category:Dirigible]] | [[Category:Dirigible]] |
Revision as of 12:05, 19 January 2018
Update Trial
Login to Trial VM
ssh vsacct@dirigible.eclipse.org su cd /opt/tomcat/apache-tomcat-8.5.23/bin/ sudo -u tomcat ./shutdown.sh ps -ef|grep tomcat (kill it if necessary) cd /opt/tomcat/apache-tomcat-8.5.23/work/ rm -R Catalina cd /opt/tomcat/apache-tomcat-8.5.23/webapps/ rm ROOT.war rm -R ROOT sudo -u tomcat wget http://download.eclipse.org/dirigible/drops/<version>/tomcat/desktop-all/ROOT.war cd ../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.23/bin/target/dirigible/repository/root/users ls -alh | grep -c ^d