Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Steps to build MPICH2 development environment on CentOS 6.4     - DIY security of Linux platform (Linux)

- secureCRT remote login Linux must first open the connection protocol (Linux)

- VirtualBox virtual machine to install Linux (Linux)

- iptraf: A Practical TCP / UDP network monitoring tools (Linux)

- Debian 8.1 (amd64) deployed Memcached (Server)

- How to Install lightweight Budgie desktop on Ubuntu 14.04 (v8) (Linux)

- Tomcat configuration memory and remote debug port (Server)

- Ten SCP transfer command example (Linux)

- build Android environment on Ubuntu 12.04 (Server)

- Using Java program determines whether it is a leap year (Programming)

- CentOS 7 hard disk expansion toss record (Linux)

- Git uses a standard process (Linux)

- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)

- Java polymorphism and exception handling (Programming)

- Observation network performance tools for Linux (Linux)

- Oracle database with test data insertion speed (Database)

- How to install Perl modules from CPAN (Linux)

- ORA-12545: Connection failed because the target host or object does not exist (Database)

- C language programming entry - Common operators (Programming)

- Oracle GoldenGate Installation and Configuration Tutorial Introduction (Database)

  Steps to build MPICH2 development environment on CentOS 6.4
  Add Date : 2017-03-23      

A total of five machines are fitted with CentOS6.4 system, host names are node0, node1, node2, node3, node4. node0 as a master node, where the master node refers to node0 as an NFS server side.

MPICH2 installation package: mpich2-1.2.1p1.tar.gz, can be downloaded from the official website MPICH

The following operations are using the root user name

Configuration 5 machine network. For details, see my other article "CentOS static IP network configuration"

2. Create a unified user name and the same password for the cluster of five machines:

useradd cluster
passwd cluster

Modify / etc / sudoers file, add the following line to make cluster has root privileges temporary capacity:

cluster ALL = (ALL) ALL

The following operations are using the cluster user name

 3. Configure SSH, so no password is required between any two machines can directly log on to each other. For details, see my other article "two hosts without a password and log in directly to each other SSH configuration"

4. Configure NFS, node0 as a server-side, four other machine as the client, all the machines are shared directory / home / cluster / mirror, configuration procedure, see my other article "CentOS installation process under the NFS"

5. Install MPICH2 development environment on node0

First make sure the system is installed gcc, g ++, make and compile these tools python

Create MPICH2 installation directory:

mkdir / home / cluster / mirror / mpich2

The mpich2-1.2.1p1.tar.gz upload / home / cluster / mirror, and unzip:

tar -zxv -f mpich2-1.2.1p1.tar.gz

Run the following command in the / home / cluster / mirror / mpich2-1.2.1p1 directory:

./configure --prefix = / home / cluster / mirror / mpich2
make install

Create /home/cluster/mpd.hosts file, as follows:


6. Configure environment variables on five machines

In /home/cluster/.bashrc document added:

export PATH = $ PATH: / home / cluster / mirror / mpich2 / bin
export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: / home / cluster / mirror / mpich2 / lib

Make configuration files take effect:

source /home/cluster/.bashrc

MPICH2 test whether the installation was successful:

which mpd
which mpiexec

Create /home/cluster/.mpd.conf file, as follows ( "" the contents of an arbitrary string, but all machines to be the same):

secretword = "lab311"

.mpd.conf Modify file permissions so that only the user cluster have read and write permissions to the file:

chmod 600 /home/cluster/.mpd.conf

Test each machine can start mpd Manager, under normal circumstances, the results of the present mpdtrace the host name of the machine, pay attention to after the test must use mpdallexit closed mpd command, otherwise there will be a connection failure error when you start behind the cluster:

mpd &

7. node0 test the entire cluster

Before starting the cluster you will need to turn off the firewall for all machines:

sudo service iptables stop
sudo chkconfig iptables off

Start Cluster (parameter -n 5 start showing five machines):

mpdboot -n 5 -f /home/cluster/mpd.hosts

Check the machine has been launched:


Under normal circumstances will appear the following results:


Shut down the cluster:

- CentOS / Linux kernel upgrade (Linux)
- Use Ansible to bulk manage remote servers (Server)
- RPM package fabrication method (Linux)
- Ubuntu 10.10 install Oracle 10g graphic tutorials (Database)
- Linux more command Detailed (Linux)
- OpenSUSE 13.1 OpenSUSE 12.3 and how to install Cinnamon 2.2 Desktop (Linux)
- Migrate Oracle database files to ASM (Database)
- Python data types summary (Programming)
- Oracle Database asynchronous IO cause slow query response (Database)
- Java JDK has been able to compile without warning (Programming)
- MongoDB start under Linux (Database)
- Protect your files, modify the Linux value Umask (Linux)
- JavaScript common array manipulation functions and usage (Programming)
- Linux environment to configure Apache + Django + wsgi (Server)
- Docker Basic Concepts (Linux)
- CentOS install Java 1.8 (Linux)
- OpenWRT environment to build (Linux)
- New experience Budgie (Budgerigar) desktop environment (Linux)
- Multi-core CPU, multi-threading and parallel computation (Linux)
- How comprehensive resist attacks from the network (Linux)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.