Centos7

下载镜像CentOS-7-x86_64-Minimal-1708.iso。

安装SSH

cd /etc/sysconfig/network-scripts/
vi ifcfg-ens33
ONBOOT=yes
service network restart
yum install openssh-server net-tools -y

关闭防火墙

systemctl disable firewalld.service   #关闭

关闭SELinux

vi /etc/selinux/config,重启生效,

#SELINUX=enforcing
#SELINUXTYPE=targeted
SELINUX=disabled
setenforce 0   #停止

换清华源

/etc/yum.repos.d/CentOS-Base.repo,

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum makecache

查看是否安装

rpm -qa | grep "***"

安装组件

yum install gcc gcc-c++ gcc-gfortran -y
yum install wget make gdb cmake git zip uzip java-1.8.0-openjdk -y
yum install ntpdate -y&&ntpdate time.windows.com && hwclock -w
timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海

查看硬盘和文件大小

df -h   #查看硬盘
du -hs   #查看文件夹

显示所有进程

top -bn1

Torque安装

https://cndaqiang.github.io/2018/01/11/torque-install-centos/

https://blog.csdn.net/u012460749/article/details/78582990

https://www.cnblogs.com/smbin/p/8492470.html

https://www.jianshu.com/p/8addedb633e8

MKL链接写法

https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/

MKL环境变量

source /opt/intel/composer_xe_2015/bin/compilervars.sh intel64
source /opt/intel/impi/5.0.1.035/intel64/bin/mpivars.sh
source /opt/intel/composer_xe_2015.0.090/mkl/bin/intel64/mklvars_intel64.sh

http://xdhpc.xidian.edu.cn/Service/UserGuide/env.htm

http://www.umji.sjtu.edu.cn/home/help/135