Describe when someone would need this information. For example "when connecting to wi-fi for the first time".
Add the steps involved:
cd /opt/ wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u91-b14/jdk-8u91-linux-x64.tar.gz" tar xzf jdk-8u91-linux-x64.tar.gz cd /opt/jdk1.8.0_91/ alternatives --install /usr/bin/java java /opt/jdk1.8.0_91/bin/java 2 alternatives --config java There are 3 programs which provide 'java'. Selection Command ----------------------------------------------- * 1 /opt/jdk1.7.0_71/bin/java + 2 /opt/jdk1.8.0_45/bin/java 3 /opt/jdk1.8.0_77/bin/java 4 /opt/jdk1.8.0_91/bin/java Enter to keep the current selection[+], or type selection number: 4 |
alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_91/bin/jar 2 alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_91/bin/javac 2 alternatives --set jar /opt/jdk1.8.0_91/bin/jar alternatives --set javac /opt/jdk1.8.0_91/bin/javac |
export JAVA_HOME=/opt/jdk1.8.0_91
JRE_HOME
export JRE_HOME=/opt/jdk1.8.0_91/jre
export PATH=$PATH:/opt/jdk1.8.0_91/bin:/opt/jdk1.8.0_91/jre/bin
Fetch the version of tomcat you want from apache.org
cd /opt wget http://www.us.apache.org/dist/tomcat/tomcat-8/v8.0.27/bin/apache-tomcat-8.0.27.tar.gz tar xzf apache-tomcat-8.0.27.tar.gz |
Configuring Environment variables
echo "export CATALINA_HOME="/opt/apache-tomcat-8.0.27"" >> ~/.bashrc source ~/.bashrc |
cd /opt/apache-tomcat-8.0.27 ./bin/startup.sh |
<userHome> == ~/ Use the following command to extract from a tar.gz file: tar -xzf <tar.gz file> Remember some commands can only issued as root, if you log in as root and execute the commands, remember to exit from root and test that what you wanted to happen works as s none root user |
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|