To build an OA environment, it is required to be in a clean and safe installation of the system, so you have to check the environment equipment, so first check the environment equipment, first look at the Linux version, shown as Linux 5.4
Next look at the CPU, the rest of the memory
View information on machine memory usage
Next look at disk usage
The preparation of the environment has been completed and the next step is to install the software.
First check that the computer does not exist in Java and JDK, and some things to uninstall first
This figure illustrates that the current machine exists. java, so download it first, use the Rpm–e statement, and then check it again.
This figure illustrates the dependency relationship, so it needs to be executed with –nodeps, indicating that it has been uninstalled successfully!
Next, look at the permissions of the JDK in the root directory.
White indicates JDK user permissions are not allowed and need to change their permissions
Turn green instructions can be executed,./jdk file, start installation
Installation protocol, press space
Enter Yes, enter
To display the installation success, the next step is to find the JDK file and enter the RPM–QL JDK
Use the Vim/etc/profile command to enter the edit, to reach the last line set environment variables
Note: "=" can not have spaces on both sides of the path must be clear between the two paths with ":" To configure the path variable, the previous path must take
Execute profile file Load environment variable, if no error, load success
Use java–version to view status, verify
Now that the JDK is installed, then install Tomcat, check the firewall status before installing, select Close and set the firewall to not start
Start installing Tomcat, unpack the package first
View Files
startup.sh: Turn on Tomcat
Shutdown.sh: Turn Tomcat off
To open and install Tomcat
Installation complete, enter the URL to confirm
Next install MySQL, first switch to the Yum source directory
Copy the Cent0s5 file of the root directory to the current directory
The Yum cache needs to be cleared during installation
To install
Get from source, enter Y, install
If it appears, you need to enter
Re-fetch the installation
Show installation Success! Input command to start MySQL
Enter MySQL to verify that the installation is successful
Next, deploy the OA environment to extract the compressed package into the/OPT directory
Input instruction Unzip Cowa2011.zip–d/opt/oa
Create a new OA folder in the/OPT directory and move the OA package to/opt/apache-tomcat/webapps
Get into OA.
Copy one of the redmoonna.sql into the/opt
Go to MySQL and insert data into the database
To see if the database was inserted successfully
Quit MySQL
Into the Web-inf in/oa.
Go to proxool.xml Modify port and password, draw arrows where the port is changed to 3306, password to empty
Go to log4j.properties. Modify log Store file generation path
Finally go to CLASSES/CACHE.CCF to modify the Tomcat cache file generation directory
After modifying, go to Tomcat's/bin directory to close Tomcat
Check to see if there's a process going on and kill
To re-open Tomcat after killing
Now that the OA deployment environment has been completed, enter the browser input URL to verify
The interface shows that the OA environment has been successfully built, enter the user name and password Click OK (initial username and password for admi,111111)
OA environment to build a successful deployment!
Third week the second-LINUX-OA environment deployment building