Project actual deployment record (Ubuntu)

Source: Internet
Author: User

Server for Ubuntu system

Install JDK version: jdk-7u79-linux-x64.tar.gz

Installing the Tomcat version: apache-tomcat-7.0.69.tar.gz

Database Oracle, exported DMP file (Note Export database version with import version issue)

1. Installing the JDK

-p/usr/-xvf jdk-7u79-linux-/etc/profile Add export javahome =/usr/jdk/jdk1 at the end of the file. 7 . 0_79  JDK Extract directory export jre_home= $JAVA _home/jreexport PATH= $JAVA _home/bin; $PATH


App Configuration takes effect
sudo source/etc/profile

To see if the configuration was successful



A successful configuration of JDK version information, such as Java version "1.7.0_79", appears

2. Install Tomcat

-p/usr/
After the decompression name is too long, modify the file name


Configuring the Tomcat Environment

Introducing a JDK environment in front of a file

sudo vi/usr/tomcat/tomcat7/bin/catalina.sh

Add to
Export java_home=/usr/jdk/jdk1.7.0_79
Export Jre_home = $JAVA _home/jre

Save
Continue to configure
sudo vi/etc/profile

After JDK configuration, add
Export catalina=/USR/TOMCAT/TOMCAT7
Export Tomcat_home= $CATALINA
Save

Application takes effect
Sudo/etc/profile

Configuration complete

3. Start Tomcat

sudo/usr/tomcat/tomcat7/bin/start.sh

See prompt for Tomcat start to start successfully

  

4. Project Database Import
Set up a user with a DBA user, setting permissions as needed
Add Import Database functionality (or direct to DBA, connect, resource permissions)
Start Import Database after app (remote import)

Successful import at once

5. Import Project
The root directory directly packaged by the project is placed directly into the Tomcat release directory to extract and start the project
There was an episode that resolved as follows:
Project comparison in actual project The default JVM configuration does not start correctly, prompting for memory overflow errors
Java.lang.OutOfMemoryError:Java Heap Space exception
Or
Java.lang.OutOfMemoryError:PermGen Space
You need to set the heap size manually at this time
Continue editing
sudo vi/usr/tomcat/tomcat7/bin/catalina.sh

Add in front of Cygwin=false
Export java_opts= "-xms256m-xmx512m-xx:permsize=128m-xx:maxpermsize=256m"

Save reboot Tomcat in effect, all normal deployment successful



Remember the server room deployment project experience

 

Project actual deployment record (Ubuntu)

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.