Slurm安装之环境准备

环境准备

1、CentOS Linux环境准备

名称     内网IP          外网IP            hostname 
T1       10.105.79.74    xxx.xxx.xxx.xxx   control
T2       10.105.90.27    xxx.xxx.xxx.178   node1
T3       10.154.6.123    xxx.xxx.xxx.23     node2

(1) 修改hostname

T1机器

hostnamectl set-hostname control

T2机器

hostnamectl set-hostname node1

T3机器

hostnamectl set-hostname node2

(2) 添加/etc/hosts

echo 10.105.79.74 control >> /etc/hosts
echo 10.105.90.27 node1 >> /etc/hosts
echo 10.154.6.123 node2 >> /etc/hosts

(3) 关闭防火墙和selinux等

systemctl stop firewalld && systemctl disable firewalld

(4) 免密互等

ssh-keygen -t rsa
cd .ssh/
rm -f id_rsa
rm -f id_rsa.pub
上传一个统一的id_rsa
chmod 600 id_rsa
上传一个统一的id_rsa.pub
chmod 644 id_rsa.pub

即可相互通过ssh root@名字 相互登录了