The Dell server configures the CentOS version of the

Source: Internet
Author: User

First step: Install Linux

The essential

1. Custom partition (root directory 3.8G, ext3,; swap2.5g)

2.2. Installation mode selection, preferably not Minimla, (currently selected as basic Service)

The configuration time will be required on the first boot. My choice is to synchronize with the network and then add the server time zone,

I am here in the Southwest, so add the Southwest server time zone code

S2d.tim.edu.cn

Other regions, and so on.

Step Two: Network configuration

The essential:

1. Turn off iptables (run Setup) and SELinux (Vim/etc/selinux/config)

2. Modify the configuration file vim/etc/sysconfig/network-scripts/ifcfg-nlip-node-01,

Modify the Onboot configuration and change it to Onboot =yes.

3. Hosts ' files

Vm/etc/hosts

Add the host and IP address of all the servers you want to configure. form a mapping relationship.

Step three: Build a Samba server (for file transfer, upload to download)

The essential:

1. Create a shared folder (/usr/upload), and give permissions (Chmod–r777/upload)

2. Load the installation software from the optical drive mount–t ios9660–o ro/dev/cdrom/mnt/cdrom; go to the Packages folder, RPM–IVH Samba-..

3. Modifying a configuration file (vi etc/samba/smb.conf)

After opening the file, modify it at the bottom:

The content is: (note that the previous comment is removed, otherwise it will not take effect)

[Sharedir]

Comment =sharedir

Path =/usr/upload

Public = yes

writable = yes

Available = yes

Browesable = yes

Valid Users =root

4. Adding the root user to the Sambauser directive

Smbpassword–a username

5. Start the SMB Service

Fourth step: Uninstall the system's own OPENJDK

The essential

1. First check to see if the system comes with the JDK's installation directory

Rpm–qa | grep java

2. Uninstall Rmp–e–nodeps java-1.4.2-gcj-compat-1.4.2.0-40jpp.115

There are some other commands.

Rpm-qa | grep GCJ

Rpm-qa | grep JDK

if OpenJDK source cannot be found, you can also uninstall this

Yum-y Remove Java java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
Yum-y Remove Java Java-1.6.0-openjdk-1.6.0.0-1.7.b09.el5

3. Installing the JDK

Create a new folder first

Mkdir/usr/java

Then give permission

CHOMD 777 jdk-1.5..........rpm modified to executable file

RPM–IVH jdk-1.5.......rpm

4. Modify the configuration file/etc/profile

Java_home=/usr/java/jdk1.7.0_51

Path= $PATH: $JAVA _home/lib/dt/jar: $JAVA _home/lib/toois.jar: $JAVA _home/jre/lib/rt.jar

5. Making the document effective

Source/etc/profile

6. Test instructions

Java-version

The Dell server configures the CentOS version of the

Related Article

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.