View the system release version of Linux
Cat/etc/issue
Cat/etc/redhat-release
View the system of the CPU
Top (Press the number keys 1, 2, 3 to switch the case of each CPU, if only 1 CPUs represent a single core)
To see the remaining memory size, there is a formula: the cache in Buffer=swp in Free+mem in Mem is the remaining memory size
View disk usage Df-h
/proc file directory generally put some hardware information
Cat/proc/cpuinfo Viewing CPU information
Cat/proc/meminfo (top or Vmstat view resource information is read from/proc/meminfo)
Preparing for the environment before deployment
Stop the firewall
A test environment is a general shutdown firewall. Firewall against themselves, put others. Current network (online) only need to open the firewall
Boot (DOS is msconfig)
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 running process outside of a kernel process that determines the runlevel to be started, so its PID is: Init reads its configuration file is the/etc/inittab init process is the root process in the Linux system, and is the ancestor of all system processes
0) Downtime, 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 state, root privilege, for system maintenance, prohibit remote login
2) Multi-user mode, but no network
3) No graphics (login after entering console command line mode) only network multi-user mode
4) unused system not used, reserved
5) A file in Linux that begins with a capital X, which refers to a graphical interface associated with a graphics-related GUI such as: X11, multi-user mode
6) Restart after booting, do not set, otherwise it will not start normally
Chkconfig--list Process Name (shows if the current service is booting)
Chkconfig--level 5 iptables off (change the operating mode of the service)
Chkconfig--level iptables off (Level5 when the level of LEVEL3 and iptables is switched off)
3, SELinux (security components): is a security enhancement tool, control
User access mechanisms
Vim/etc/sysconfig/selinux set the SELinux enforcing setting to Disabled (enforcing | Permissive | Disabled
Setenforce 0 (temporarily close null value Access user security component)
Setenforce 1 set SELinux to become enforcing mode (SELinux)
Setenforce 0 Set SELinux to be permissive mode (turn SELinux off)/usr/sbin/sestatus view selinux status
Installing Jdk-rpm.bin
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
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 the hint has a dependency, you need to add--nodeps, regardless of whether there are dependencies to delete rpm-e--nodeps ....
Change the folder Jdk-1_5_0_22-linux-i586-rpm.bin under OA to an executable file
Chmod u+x Jdk-1_5_0_22-linux-i586-rpm.bin
See where the installation of the RPM-installed JDK is located
RPM-QL (plus the file name of the installation found using RPM-QA)
./jdk-1_5_0_22-linux-i586-rpm.bin
Set environment variable Vim/etc/profile ENTER system environment variable configuration document
Source/etc/profile Loading system environment variable configuration file Java
Enter Java to confirm configuration success
Install MySQL
CentOS and Redhat common to reach 99%, so with the source of CentOS can be used on the Redhat source and system version to correspond
Centos5-base-163.repo CP to/etc/yum.repos.d/
Get package information from remote, get to local
Yum List
installing MySQL yum install mysql-server, if a timeout occurs, it needs to be installed again,
Appears 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-GPGKEY-CentOS-5
Then re-execute the Yum install Mysql-server
The show is done.
Installing Tomcat
Copy the apache-tomcat-6.0.33.tar.gz to the/pot/file
#tar ZXVF apache-tomcat-6.0.33.tar.gz Decompression
Unzip the Oa.zip to/opt/apache-tomcat-6.0.33/webapps.
Decompression Unzip Oa.zip
Move extract files to MV oa/opt/apache-tomcat-6.0.33/webapps/
Import data
Import data into MySQL and go to MySQL
Mysql>source
/opt/apachetomcat6.0.33/webapps/oa/setup/redmoonoa.sql
Modify a file
Modify the Proxool. XML file,
Modify Log4j.properties, modify
Ifconfig View IP Address
OA environment for Linux system issued