LoginSignup
0
0

More than 5 years have passed since last update.

tomcat 環境構築

Last updated at Posted at 2017-12-02

tomcatのインストール
環境はUbuntu16.04

JDKとJREをインストール

まずはhttp://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
からJDKをダウンロードして、
次にインストール

#cd ~/Downloads/
#gunzip jdk-8u152-linux-x64.tar.gz
#tar xf jdk-8u152-linux-x64.tar
#cp -r jdk-8u152-linux-x64 /usr/local/lib

#add-apt-repository ppa:webupd8team/java
#apt-get install oracle-java8-installer

 環境変数設定

#echo 'JAVA_HOME=/usr/local/lib/jdk1.8.0_152' >> /etc/profile
#echo 'export JAVA_HOME' >> /etc/profile
#echo 'PATH=$PATH:$JAVA_HOME/bin' >> /etc/profile

tomcatをインストール

まずはtomcatの公式サイトからダウンロード
次にインストール

#cd ~/Downloads/
#gunzip apache-tomcat-8.5.24.tar.gz
#tar xf apache-tomcat-8.5.24.tar
#cp -r apache-tomcat-8.5.24  /opt
#cd /opt/apache-tomcat-8.5.24/bin/
#./startup.sh
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0