Linux deployment Project (ORACLE+REDIS+ACTIVEMQ+ELASTICSEARCH+TOMCAT+JDK8)

Source: Internet
Author: User
Tags bz2 syslog sqlplus

First successful installation of the 64-bit version of Linux on VMware

Here are the programs that need to be installed:

Installing JDK:JDK8 64-bit Linux compression pack

Installing the Oracle:oracle XE 11g Linux installation file

Installing the TOMCAT:TOMCAT8 compression pack

Installing the redis:redis3.0 compression pack

Installing the activemq:activemq5.14.0 compression pack

Installing the elasticsearch:es2.4 compression pack

Installing the IK word breaker plugin: ik2.x Compressed Package

Connecting to remote Linux operations

Connect to Linux remotely using SECURECRT

Configuring SECURECRT Sessions

Upload the required installation package to Linux

Launch the uploaded software

Get remote connections

Select the desired file, right click on upload.

Installing the configuration JDK

First, we introduce different decompression methods of different files.

    1, *. Tar with TAR–XVF decompression     2, *.gz with gzip-D or gunzip extract     3, *.tar.gz and * . tgz extract    with Tar–xzf 4, *.bz2 with bzip2-D or with bunzip2 decompression     5, *. tar.bz2 with Tar–xjf extract     6 , *. Z Extract     7, *. Tar with uncompress. Z decompression with Tar–xzf     8, *. rar with Unrar e decompression     9, *.zip with unzip decompression    

1 Uninstalling your own JDK

See Rpm-qa First | grep java

Then: Openjdk:rpm-e--nodeps rpm The name of the JDK to uninstall

2 Unzip the uploaded JDK installation package

Unzip Jdk-8u65-linux-x64.zip

3 Moving the installation directory to/USR

mv./jdk1.8.0_65//usr/

4 Create a link simplified catalog

Ln-s/usr/jdk1.8.0_65//USR/JDK

5 Editing environment variables path, java_home

Vi/etc/profile
   Add    java_home =/usr/jdk to the end of file   CLASSPATH=.: $JAVA _home/lib   export PATH = $JAVA _home/bin: $PATH

6:WQ exit

7 Restart Shutdown-r Now

8 Verifying that the configuration is successful

Input Java-version

If you have insufficient permission to view the version prompt ,

Chmod-r 777/USR/JDK for authorization

Installing Tomcat

1 extracting tomcat to opt directory

TAR-ZXVF apache-tomcat-8.0.28.tar.gz-c/opt

2 Create a link simplified catalog

Ln-s/opt/apache-tomcat-8.0.28/opt/tomcat

3. Turn off the firewall

Service Iptables Stop

4 starting Tomcat

/opt/tomcat/bin/startup.sh

Installing the Oracle Database

1 Unpacking the ZIP installation package

Unzip Oracle-xe-11.2.0-1.0.x86_64.rpm.zip

2 Enter Disk1, install oracle11g XE

RPM-IVH oracle-xe-11.2.0-1.0.x86_64.rpm

There are some parameters in the 3:/etc/init.d/oracle-xe file that contain the Oracle environment variables, and we only need to copy them from Oralce_home,oralce_base,path,oralce_sid to/etc/ Profile in

   Export oracle_home=/u01/app/oracle/product/11.2.0/XE   export Oracle_sid=Xe   export oracle_base =/u01/app/Oracle   export PATH= $ORACLE _home/bin: $PATH   Lsnr= $ORACLE _home/bin/  Lsnrctl   SQLPLUS= $ORACLE _home/bin/SQLPLUS   oracle_owner=oracle

4wq Save exit

5 Make the Save effective immediately:

Source/etc/profile

Installing Redis

1. Installing GCC

Yum install-y gcc g++ gcc-c++ make

2. Unzip the Redis

Tar zxvf redis-3.0.0.tar.gz

3. Go to the Redis directory and execute make

CD redis-3.0.0
Make MALLOC=LIBC

4. Start off Redis

-Start Redis

Src/redis-server &

-Turn off Redis

SRC/REDIS-CLI shutdown

Installing ACTIVEMQ

1. Unzip the ActiveMQ

TAR-ZXVF apache-activemq-5.14.0-bin.tar.gz

2. Copy activemq to usr directory

MV Apache-activemq-5.14.0/usr

3. Enter the bin directory of the ACTIVEMQ

./activemq Start

4. See if the port is started

Netstat-an | grep 61616

5. Create a link

Ln-s/usr/apache-activemq-5.14.0//USR/ACTIVEMQ

6. Copy the boot file

Cp/usr/activemq/bin/activemq/etc/init.d

7. Editing

/etc/init.d/activemq

In the second row, add

"# # # BEGIN INIT info# provides:             activemq# Required-Start:       $remote _fs $syslog # Required- Stop:        $remote _fs $syslog # default-start:        2 3 4 5# default-stop:         0 62345 64 36 #Short-Description:    ActiveMQ server### END INIT INFO '

Add after the last #

"Export java_home=/usr/jdkactivemq_home=/usr/activemq"

8. Adding to System services

Chkconfig--

Installing Elasticsearch

1. Unzip

TAR-ZXVF elasticsearch-2.4.0.tar.gz

2. Move to the USR directory

MV Elasticsearch-2.4.0//usr/

3. Renamed to Elasticsearch

MV elasticsearch-2.4.0 Elasticsearch

4. Running Elasticsearch

/usr/elasticsearch/bin/elasticsearch-d

Error, prompt cannot be run with root

Workaround: (add: After the original Run command)

-des.insecure.allow.root=True

Elasticsearch is not open to network access

5. External network access

Modifying a configuration file config/elasticsearch.yml

network.host:0.0.0.0

6. Install ES head Plugin

Enter the bin directory to enter Elasticsearch

./plugin Install Mobz/elasticsearch-head

7. Installing the IK word breaker

Decompression: Unzip Elasticsearch-analysis-ik-2.x.zip

-Enter the Target/releases directory under elasticsearch-analysis-ik-2.x

Copy files to%es%/plugins/analysis-ik

Cp-r.//usr/elasticsearch/plugins/analysis-ik

-Enter the Target/release/config directory

Copy all the configuration files under the%es%/config

Cp-r.//usr/elasticsearch/config/

-Configuration Elasticsearch.yml

Join

Index.analysis.analyzer.ik.type: "Ik"

-Access

http://ip:9200/_analyze?analyzer=ik&pretty=true&text= I love Java

Linux deployment Project (ORACLE+REDIS+ACTIVEMQ+ELASTICSEARCH+TOMCAT+JDK8)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.