CentOS 6.3 Server Installation Configuration
1. Download and install CentOS
CentOS-6.3-x86_64-minimal.iso
Http://centos.arcticnetwork.ca/6.3/isos/x86_64/CentOS-6.3-x86_64-minimal.iso
2. IP configuration
Vi/etc/sysconfig/network-scripts/ifcfg-em1
DEVICE = "em1"
BOOTPROTO = "static"
HWADDR = "***"
NM_CONTROLLED = "yes"
IPADDR = 192.168.1.80
NETMASK = 255.255.255.0
Bkjia = 192.168.1.1
BROADCAST = 192.168.1.255
DNS1 = 211.98.2.4
DNS2 = 211.98.4.1
ONBOOT = "yes"
TYPE = "Ethernet"
UUID = "***"
3. Development Libraries And Development Tools
Shell executes the following two commands:
Yum groupinstall "Development Libraries"
Yum groupinstall "Development Tools"
4. Download and install JDK
-The version I selected is the jdk-6u37-linux-x64.bin
Http://download.oracle.com/otn-pub/java/jdk/6u37-b06/jdk-6u37-linux-x64.bin? AuthParam = 1354695286_79ec0310b842ca7a97de73108f45b99
-Copy the downloaded file to the/usr/local directory (this directory is not required)
-Modify permissions
[Root @ bkjia local] # ls-l jdk-6u37-linux-x64.bin
-Rw-r --. 1 root 72048548 December 5 16:20 jdk-6u37-linux-x64.bin
-Installation
[Root @ bkjia local] #./jdk-6u37-linux-x64.bin
The jdk directory is missing.
[Root @ bkjia local] # ls
Bin etc games include jdk1.6.0 _ 37 jdk-6u37-linux-x64.bin lib lib64 libexec sbin share src
-Configuration
[Root @ bkjia ~] # Vi/etc/profile
Add JDK configuration information before the export command
Export JAVA_HOME =/usr/local/jdk1.6.0 _ 37
Export CLASSPATH =.: $ JAVA_HOME/jre/lib: $ JAVA_HOME/lib/tools. jar
Export PATH = $ PATH: $ JAVA_HOME/bin
Run the following command to make the change take effect:
[Root @ bkjia ~] # Source/etc/profile
Verify:
Iptables-I input-I em1-p tcp -- dport 10001-j ACCEPT
Iptables-I OUTPUT-o em1-p tcp -- sport 10001-j ACCEPT
/Etc/rc. d/init. d/iptables save