Build a high-performance computing Environment (a), install and configure Linux operating systems

Source: Internet
Author: User
Tags get ip

The general research group has just started to do calculations, often do not have a dedicated cluster, mainly with their own PC, workstation or buy several servers to run; it takes a lot of time to find out how to use Linux, to compile some open source software, and even to write some shell scripts, delaying the progress of reading documents and code papers.

In this write a few blog, the installation of Linux system, Setup, common software installation, compilation, and share to everyone (content contains only a single node, not involving the cluster, job scheduling system and cross-node computing).

1, install CentOS6.2.

1) Start the installation of the system from the interface after the CD-ROM starts.

2) Prompt to check the integrity of the disc, you can skip.

3) Follow the prompts to press the next step.

4) Select the language, the default English can be selected as required in Chinese.

4) Select keyboard mode, default us do not change.

5) Start the hard disk partition section.

6) The new drive will prompt this warning and select Yes.

7) Set the host name of the machine, and then set it up after you install it.

8) Select the time zone, general selection of Asia/Shanghai.

9) Set the root user (administrator) password, the password is too simple to prompt, can be ignored.

10) Select Custom partition, or select a different item to allow the system to be automatically partitioned.

11) This disposition of 3 partitions, 200M/boot,4g of the swap partition and all remaining points to the root partition/.

12) Select ' Write changes to disk ' to begin partitioning and formatting by setting.

13) The installation location of the boot, generally do not change (if you install the system with a U disk, the general need to change here).

14) Select the package you want to install, you can select the entire package in custom, select the development workstation here.

15) Start the installation of the selected package, depending on the machine configuration and the number of packages selected will take a variable amount of time.

16) System installation complete, reboot.

17) the system restarts.

18) The first boot of the system requires a few options to be configured.

19) Select Yes.

20) Create a normal user, enter the user name, password.

21) Set the system time.

Kdump for the system if the exception crashes, the memory will be dumped into the core file for later analysis of the reason, the general people can not understand this information, so turn it off (if the machine memory is too small, this will not be able to choose enable).

23) Select Finish to enter the system formally.

2, System settings (use the root user to log into the system).

1) Turn off the firewall.

Open a terminal, input setup, enter, the following screen appears.

Select firewall configuration Enter to remove the Enable option

Select OK to enter, prompt for warning confirmation, select Yes.

2) Close some services that you do not need.

In the terminal input

Chkconfig iptables off

Chkconfig Ip6tables off

Chkconfig Abrt-ccpp off

Chkconfig Abrt-oops off

Chkconfig ABRTD off

Chkconfig NetworkManager off

Chkconfig Avahi-daemon off

Chkconfig bluetooth off

Chkconfig Certmonger off

Chkconfig iSCSI Off

Chkconfig Iscsid off

Chkconfig Kdump off

Chkconfig LIBVIRTD off

Chkconfig libvirt-guests off

chkconfig postfix off

Chkconfig Qpidd off

3) Turn off SELinux.

Edit SELinux file, modify to Selinux=disabled (takes effect after reboot)

Gedit/etc/sysconfig/selinux

4) set up the network.

Enter the network configuration option on the Setup Open screen

Select device configuration to configure the IP address for the network card

Network cards are generally shown as eth0, eth1, etc., the general server has more than two network cards, the machine only a single network card eth0

Set the address for the ETH0 network card, if it is automatically get IP select Use DHCP then directly select OK

Configuring host names and DNS using DNS configuration

Fill in the appropriate host name and DNS information

After the network is configured, be sure to use Save&quit to save the network settings information and exit the interface.

Note: because the NetworkManager management network is turned on by default, it is recommended to manually modify the Onboot in the NIC profile/etc/sysconfig/network-scripts/ifcfg-ethx to Yes, Enable the network to boot with the machine.

If the machine has multiple network cards, you can use the Ethtool–p eth0 to locate the eth0 corresponding network port (the network port has a light flashing).

5) Modify the/etc/hosts file to include your host name.

If the fixed IP recommendation is written as follows two lines:

127.0.0.1 localhost

Own host name of the IP itself

The installation configuration of the operating system ends here.

Build a high-performance computing Environment (a), install and configure Linux operating systems

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.