CentOS 6.3 Server Installation Configuration

Source: Internet
Author: User

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

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.