Chen Kozhan
===========
Directory
1 Preparatory work
2 Importing application Data
3 Deployment
3.1 Plan One
3.2 Program II
==========================================================================
1. Preparatory work
Application |
Tianjin Tobacco cigarette Sorting management system |
Application Data |
DMP file to import the Oralcle database (YC_TJYC20150204.DMP) |
2. Import Application Data
The Oracle database is already installed on the Linux operating system, and the next step is to import the data to Oracle in a remote way.
Open the PL/SQL tool under Windows
Log in with a user with SYSDBA permissions
(In this way login without configuration Dblink can be remote connection, that is, the server side of the database installed, no need to do any configuration)
Login successfully!
Next we create a user using the application's data
Open the Command Window window
To execute a command to create a user:
Sql> Create USERYC_TJYC identified by YC_TJYC;
To give the user DBA authority:
Sql> Grant DBA TOYC_TJYC;
For example, because I have already created a YC_TJYC user, I will be prompted with the following information, but still do not affect the operation:
The rest of the story is to import the application data into the YC_TJYC user.
Shortcut key: win+r, enter cmd, OK
Or
Start, so program-I, Accessories, command prompt, open
In the Command window, type the following command:
Imp Yc_tjyc/[email protected]/orclfull=y file=e:/yc_tjyc20150204.dmp
Note: Export, available exp Yc_tjyc/[email PROTECTED]/ORCL owner=yfile=e:/yc_tjyc20150204.dmp
Enter to import data
Log on with PL/SQL after the import is successful
Note: There is no need for Linux PL/SQL is installed on the operating system and can only be remotely
We're going to use this method to connect
Login YC_TJYC User Success!
3. Deployment of 3.1 programme I
Note: Apply TOMCA T manage the app to deploy, or deploy remotely, and access the Tomcat Manager app via a browser for remote upload and deploy web App
Start the Tomcat service first
Locate the Bin folder in the Tomcat installation directory and right-click on the terminal (if you configure the parameters in the environment variable, you can open the terminal in any place to execute the command):
Execute the Stop command first:
$./shutdown.sh
Then execute the start command:
$./startup.sh
This will ensure that the boot is unexpected!
See that the Tomcat service has started successfully!
Next, we open the Linux operating system under the browser, in the address bar input localhost:8080, enter
Can see this page, then we click "Managerapp", enter the user name, password to log in
The user name and password used here are: adminadmin, forgot password or user name also does not matter
You can go to the Conf directory under the Tomcat installation directory and locate the Tomcat-users.xml for configuration
After logging in, you can see this page, you only need to click "Browse ..." Select the Web app you used to fight the war package, then click "Deploy" to deploy it.
After the deployment is successful, you can see the project name of the deployment in the "Applications" list!
An error has occurred and I can find the file in the logs directory under the Tomcat installation directory: Manager.2015-02-09.log to see the cause of the error
Manager.2015-02-09.log the error content displayed:
Severity: org.apache.tomcat.util.http.fileupload.fileuploadbase$sizelimitexceededexception:the request was rejected Because its size (53891437) exceeds the Configuredmaximum (52428800)
This indicates that the uploaded deployment file exceeded the set size, so the deployment failed!
We only need to modify a configuration file, configuration file location: $tomcat _home\webapps\manager\web-inf\web.xml
See no, here limit the maximum is 50MB, and then according to their own needs to modify can
This is then modified to 100MB, i.e. 104857600
After modification, restart the Tomcat server and perform the previous deployment operation
Deployment Success!
You can see our deployed applications in the applications list!
Click on the "/tjycsort" field in the list to launch the application or enter the address of the Access application in the browser's address bar.
3.2 Programme II
Note: Manually deploying Web A pp to Tomcat
Simply place the war package of the Web App application into the WebApps in the Tomcat installation directory and start the Tomcat service.
The Tomcat service starts and then you can start the application.
The process of launching the application is to access the URL of the browser or enter the Tomcat manager app.
The process and scenario are similar, except that the method of deploying the WebApp application is inconsistent!
Linux Deployment Configuration Web APP