1. Installation of Java
Jdk
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
1.1, Installation jdk-1.8
[Email protected] ~]# lsanaconda-ks.cfg Desktop jdk-8u77-linux-x64.rpm [[email protected] ~]# RPM-IVH jdk-8u77-linux-x 64.rpm [[email protected] ~]# java-versionopenjdk version "1.8.0_65" OpenJDK Runtime Environment (build 1.8.0_65-b17) Open JDK 64-bit Server VM (build 25.65-b01, Mixed mode) [[email protected] ~]# Javac ... [e-Mail protected] ~]# java ...... Slightly
Configuration of the 1.2 JDK environment variable
[[email protected] ~]# echo "Java_home=/usr/java/jdk1.8.0_77" >> /etc/ profile[[email protected] ~]# echo "Jre_home=/usr/java/jdk1.8.0_77/jre" >> /etc/profile[[email protected] ~]# echo "path= $PATH: $JAVA _home/bin: $JRE _home/bin" >> /etc/profile[[email protected] ~]# echo "classpath=.: $JAVA _home/lib/ Dt.jar: $JAVA _home/lib/tools.jar: $JRE _home/lib " >> /etc/profile[[email protected] ~]# echo "Export java_home jre_home path classpath" >> /etc/profile [[email protected] ~]# tail -5 /etc/profilejava_home=/usr/java/jdk1.8.0_77jre_home=/ Usr/java/jdk1.8.0_77/jrepath=/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin :/bin:/bin:/usr/java/jdk1.8.0_77/bin:/usr/java/jdk1.8.0_77/jre/binclasspath=.:/ Usr/java/jdk1.8.0_77/lib/dt.jar:/usr/java/jdk1.8.0_77/liB/tools.jar:/usr/java/jdk1.8.0_77/jre/libexport java_home jre_home path classpath[[email protected] ~]# source /etc/profile
2, the installation of resin
2.1. Download and install resin
Resin Address of the carrier
Http://caucho.com/products/resin/download
[[email protected] ~]# rpm -ivh resin-pro-4.0.45-1.x86_64.rpm warning: resin-pro-4.0.45-1.x86_64.rpm: header v3 rsa/sha1 signature, key id 6ef6d565: nokeyerror: failed dependencies:openssl-devel is needed by resin-pro-4.0.45-1.x86_64[[email protected] ~]# yum install openssl-devel -y[[ email protected] ~]# rpm -ivh resin-pro-4.0.45-1.x86_64.rpm warning: resin-pro-4.0.45-1.x86_64.rpm: header v3 rsa/sha1 signature, key id 6ef6d565: nokeypreparing... ################################ # [100%]updating / installing... 1:resin-pro-4.0.45-1 &Nbsp; ################################# [100%]resin/4.0.45 launching watchdog at 127.0.0.1:6600Resin/4.0.45 started -server ' app-0 ' with watchdog at 127.0.0.1:6600
2.2, the Resin environment variable configuration
[Email protected] resin]# echo "Resin_home=/usr/local/share/resin" >>/etc/profile[[email protected] resin]# echo "Resin_root=/var/resin" >>/etc/profile[[email protected] resin]# echo "Export Resin_home Resin_root" > >/etc/profile[[email protected] resin]# source/etc/profile
2.3, Resin main catalogue Introduction
/etc/resin/resin.properties # Properties profile, available in key:value form for resin.xml use
/etc/resin/resin.xml # Resin Master configuration file
/var/resin/# Resin's root directory
/var/resin/webapps/# Web application in resin default deployment directory
/var/log/resin/# Resin server log storage directory
/usr/local/share/resin # Resin Server home directory (mainly for resin startup scripts, common jar packages for running procedures, and some common dynamic library files for resin)
[[Email protected] resin]# tree /usr/local/share/resin/usr/local/share/resin├── bin # resin Startup script │ ├── resinctl│ ├── resinctl.in│ ├── resin.sh│ ├── start.bat│ └── stop.bat├── lib # The jar package │ ├── activation.jar│ ├── activation commonly used in the run process. license│ ├── eclipselink-2.4.0.jar│ ├── Hibernate-validator-4.3.0.final.jar│ ├── jAvaee-16.jar│ ├── javamail-141.jar│ ├── javamail-14. license│ ├── javax.faces-2.1.24.jar│ ├── JBOSS-LOGGING-3.1.0.CR2.JAR│   ├── JSF. license│ ├── pro.jar│ ├── resin-eclipselink.jar│ ├── resin.jar│ ├── validation-api-1.0.0.ga.jar│ ├── Webservices-extra-api.jar│ ├── webservices. license│ └── webutil.jar└── libexec64 Some common dynamic library files of # resin ├── libresin_os.so ├── libresin.so └── libresinssl.so
2.4, the start of resin
[[email protected] resin]# bin/resinctl-conf/etc/resin/resin.xml start
2.5. Java Process View command
[Email protected] resin]# jps48643 WatchdogManager48691 Resin48761 Jps
3. jdk1.8 and resin4.0 automate the installation of shell scripts
#1, Install jdk1.8.0_77rpm -ivh jdk-8u77-linux-x64.rpm#2, config jdk1.8.0_77 environmentecho "java_home=/usr/java/jdk1.8.0_77" >> /etc/profileecho "jre_home=/usr /java/jdk1.8.0_77/jre " >> /etc/profileecho " path= $PATH: $JAVA _home/bin: $JRE _home/bin " >> /etc/profileecho "classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JRE _ Home/lib " >> /etc/profileecho " export java_home jre_home path CLASSPATH " >> /etc/profiletail -5 /etc/profilesource /etc/profile#3, install resin4.0.45yum install openssl-devel -yrpm -ivh resin-pro-4.0.45-1.x86_64.rpm #4, config resin4.0.45 environmentecho "Resin_home=/usr/local/share/resin" >> /etc/profileecho "Resin_root=/var/resin" >> /etc/profileecho "export Resin_home resin_root " >> /etc/profilesource /etc/profile#5, running resin bin/resinctl -conf /etc/resin/ Resin.xml start
This article is from the "Cowboy" blog, make sure to keep this source http://fangniuwa.blog.51cto.com/10209030/1763488
Steps and shell scripts for installing Jdk1.8 and resin4.0.45 in CentOS7.2