Build OA Environment Help documentation on Linux

Source: Internet
Author: User
Tags documentation safe mode disk usage root access

Directory

Building an OA environment in Linux

The construction of any environment is based on a clean, non-toxic,

A computer or virtual machine that meets the minimum configuration.

New environment, the first thing is to check the hardware environment, suitable for building the OA environment image.

First, View Linux System Release version

Two methods of command:

$ cat/etc/issue

$ cat/etc/redhat-release

Release version for Linux 5.4

Second, view the CPU system

$ top (Press the number key to switch between each CPU, if there are only 1 CPUs, it represents a single core)

To view the remaining memory size, there is a formula:

The cache in the BUFFER+SWP in Free+mem in Mem is the remaining memory size

Third, view disk usage

$ df–h

/proc file directory generally put some hardware information

$ cat/proc/cpuinfo View CPU Information

$ cat/proc/meminfo (top or Vmstat view resource information is read from/proc/meminfo)

Iv. preparation before the deployment of the environment
    1. Stop the firewall

The firewall is generally turned off when testing the environment. Why should I turn off the firewall? Firewall against oneself, prevent others

Current network (online) only need to open the firewall

There are two ways to turn off the firewall:

Setup

Select firewall configuration

Select Disable, confirm

2 Power-on self-booting

The kernel of the Linux operating system is loaded into memory, waiting for the kernel to load successfully, the first program to run is the INIT program.

The init process is the first process to start running outside of a kernel process, and the function is to determine the runlevel to be started, so it has a PID of 1. Init read its config file is/etc/inittab

(#代表此行是注释)

The init process is the root process in a Linux system and is the ancestor of all system processes.

0 shutdown, machine shutdown, system shutdown status, the system default operation level cannot be set to 0, otherwise it will not start normally

1 single-user mode is a bit like Windows Safe Mode (F8 entry). Single-user working status, root access, with

For system maintenance, remote login is forbidden.

2 Multi-user mode, but no network

3 No Graphics (enter console command line mode after login), only the network multi-user mode

4 unused system not used, reserved (not used)

5 files beginning with uppercase X in Linux, referring to graphics-related GUI

such as: X11, graphical interface in multi-user mode

6 reboot after boot, do not set , otherwise it will not start normally

To view system self-Startup items: Chkconfig--list

Chkconfig--list {Name} shows if the current service is booting

Chkconfig--level 5 iptables off the more service run mode, set the service RunLevel

Chkconfig--level iptables off simultaneous closing of Iptables 3 and 5

3.Selinux (security component): Is a security enhancement tool that controls user access mechanisms

$ vi/etc/sysconfig/selinux Set the enforcing setting of SELinux to

Disabled (enforcing|permissive (free Mode) |disabled) ( must be root permission to set

Reset

$setenforce 0 ( temporarily close null value Access user security component)

Setenforce 1 set SELinux to become enfocing mode (SELinux)

Setenforce 0 Setting SELinux to be permissive mode (off SELinux)

$/usr/sbin/sestatus View SELinux status (this is a command)

4 . Installing Jdk-rmp.bin

4.1> using Rpm-qa | grep java

See if Java exists in the current machine

Using Rpm-qa | grep JDK

To see if a JDK exists in the current machine

No JDK

4.2> If you have Java installed in your machine, you need to remove Java

RPM-E Plus Rpm-qa | grep Java Gets the Java file name

If you are prompted to have a dependency, you need to add a--nodeps representation, regardless of whether any dependencies are removed

RPM-E--nodeps xxxx

Import the OA installation package into Linux

4.3> change Jdk-1_5_0_22-linux-i586-rpm.bin to executable file

Command: $chmod u+x jdk-1_5_0_22-linux-i586-rpm.bin

Execute JDK command: $./jdk-1_5_0_22-linux-i586-rpm.bin

It can unpack itself first, Jia Cheng (Generate jdk-1_5_0_22-linux-i586-rpm.rpm in the filesystem) and install to Linux again

Press SPACEBAR to page.

Follow the prompts to enter "Yes"

In the installation

4.4> see where the installation of the RPM-installed JDK is located

$ RPM-QL [plus the file name of the installation using RPM-QA lookup] to show where to install

JDK installed in the Java folder in the/usr directory

4.5> Setting Environment variables:

Open file Vim/etc/profile Set environment variable (JAVA_HOME,CLASSPATH,PATH)

4.6> Verifying the JDK

Enter the command "Java–version" or "Javac" when the relevant version information or help information appears, indicating that the installation was successful.

5. Install MySQL

5.1> Yum Source

CentOS is 99% common with redhat, so the source of CentOS can be used on Redhat

Source and system version to correspond

Centos5-base-163.repo CP to/etc/yum.repos.d/

5.2> empty the original Yum cache

Command $ yum Clean all

5.3> Get package information from remote, get to local

$ yum List

5.4> installing MySQL

$ yum Install Mysql-server

Select "Y"

5.5> If a timeout occurs, install it again

5.6 > Appearance Warning:rpmts_hdrfromfdno

Because Redhat is a commercial version, a signature must be provided to continue the installation

$ rpm--import

Http://centos.ustc.edu.cn/centos/RPM-GPG-KEY-CentOS-5

5.7>/etc/init.d/If the mysqld appears, this is the name of the MySQL service

Show "" complete! "Means installation is complete."

Start MySQL:

/etc/init.d/mysqld start

Service mysqld Start

Enter MySQL and successfully enter MySQL

Apach-tomcat-6.0.33.tar.gz Linux_oa under the first decompression, unpacking

Build OA Environment Help documentation on Linux

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.