I want to deploy a war file developed in Java on my own server and start the application Let's prepare the environment
server
$ uname -m
x86_64
$ cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
server
$ su - root
$ sum install wget
server
$ wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u161-b12/2f38c3b165be4555a1fa6e98c45e0808/jdk-8u161-linux-x64.rpm
$ ll
170080 in total
-rw-r--r--.1 root root 174157387 December 21 04:10 jdk-8u161-linux-x64.rpm
$ sudo yum localinstall jdk-8u161-linux-x64.rpm
URLs starting with http: // ...
are on the Java SE Development Kit 8 Downloads page. URL of each file
Check the "Accept License Agreement" radio button on the above page
You can get the URL by right-clicking the file you want to download and selecting "Copy link address".
server
$ java -version
java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
I don't do yum
this time because I want to include Oracle
The story of installing jdk-1.8.0 on CentOS 6
server
$ useradd -s /sbin/nologin tomcat #Add tomcat user
$ wget http://ftp.jaist.ac.jp/pub/apache/tomcat/tomcat-8/v8.5.29/bin/apache-tomcat-8.5.29.tar.gz
$ tar -xvzf apache-tomcat-8.5.29.tar.gz
$ ll
drwxr-xr-x.9 root root 4096 March 22 22:24 apache-tomcat-8.5.29
-rw-r--r--.1 root root 9532698 March 5 22:50 apache-tomcat-8.5.29.tar.gz
$ mv apache-tomcat-8.5.29 /usr/local/tomcat
After this, it is necessary to set and deploy the port, but this time it is up to here
Thanks to our ancestors
I can't ask you again now! How to check Linux OS and version Check whether Linux is 32-bit version or 64-bit version
Do this with wget !! Comparison of curl and Wget | POSTD Difference between wget and curl-Usmysa development memo
JDK
Install Oracle's JDK8 on CentOS 6.x [CentOS7] Install Oracle Java 8 How to wget jdk on Linux
Tomcat
When updating the latest version of JDK and Tomcat installed on CentOS with yum Install Tomcat on CentOS How to build Tomcat8 on CentOS7 Procedure to install Apache Tomcat 8 on CentOS 7
[Even beginners can understand] Differences between rpm and yum and how to use them properly
Recommended Posts