The second blog of the third week-Linux-oa environment deployment and construction

Building an oa environment requires a clean and safe system suitable for installation, so you must first check the environmental equipment, so you must first check the environmental equipment, first look at the linux version, which is displayed as linux 5.4

Next, look at the cpu situation, the remaining memory

View information about machine memory usage

Next, check the disk usage

The preparation of the environment is complete, the next step is to install the software.

First, check whether java and jdk exist in the computer. If there are any, uninstall them first.

This picture shows that there is .java on the current machine, so you need to download it first, use the rpm -e statement, and then check it again

 

This figure shows that there is a dependency relationship, so you need to use –nodeps to execute, indicating that the uninstallation has been successful!

Next, check the permissions of jdk in the root directory

The white color indicates that the use permission of the jdk user is not allowed, and its permission needs to be changed.

It turns green to indicate that it can be executed, ./jdk file, and start the installation

Install agreement, press space

Enter yes and press Enter

The installation is successful. Next, you need to find the jdk file and enter rpm –ql jdk

Use the vim /etc/profile command to enter the editor, reach the last line to set the environment variables

Note: There can be no spaces on the left and right sides of "=". The path must be clear. When configuring the PATH variable with ":", the previous path must be with

Execute the profile file to load the environment variables, if no error is reported, the load is successful

Use java --version to view the status, verify

At this point, the jdk installation is complete, then install tomcat, check the firewall status before installation, choose to close and set to open and not start the firewall

Start to install tomcat, first unzip the compressed package

check the file

Startup.sh: start Tomcat

Shutdown.sh: shuts down tomcat

Start and install tomcat

The installation is complete, enter the URL to confirm

Next install mysql, first switch to the yum source directory

Copy the Cent0S5 file in the root directory to the current directory

The yum cache needs to be cleared during the installation process

to install

Get from source, enter y, install

If it appears as shown, you need to enter

Re-get install

Shows that the installation was successful! Enter the command to start mysql

Enter mysql to verify that the installation was successful

Next, deploy the oa environment and extract the compressed package to the /opt directory

Enter the command 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

enter into oa

Copy the redmoonna.sql in it to /opt

Enter into mysql and insert data into the database

Check if the database is inserted successfully

exit mysql

Go to WEB-INF in /oa

Enter proxool.xml to modify the port and password, the port where the arrow is drawn is changed to 3306, and the password is changed to empty

Enter log4j.properties to modify the log storage file generation path

Finally, go to classes/cache.ccf to modify the tomcat cache file generation directory

After the modification, go to the /bin directory of tomcat and close tomcat

Check to see if there are any ongoing processes and kill them

Restart tomcat after killing

So far the oa deployment environment has been completed, enter the browser and enter the URL to verify

The interface appears, indicating that the oa environment has been successfully built. Enter the user name and password and click ok (the initial user name and password are admi, 111111)

The Oa environment was successfully built and deployed!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325121896&siteId=291194637