推荐使用 https://www.slothparadise.com/how-to-install-slurm-on-centos-7-cluster/ 教程
我写的太乱了 而且走了好多坑 ..下文是自言自语 请忽略
准备俩台干净环境的测试机 预装系统(cenos7_1810_everything cenos7_1810_minimal)
dependence prepartion
yum install gcc openssl-devel readline-devel -y
yum install bzip2-devel.bz2* -y
yum install zlib-devel* -y
yum install pam* -y
yum install perl* -y
install munge (for authentication)
参考 :https://launchpad.net/ubuntu/+source/munge/0.5.10-1/
mkdir -p /home/slurm
cd /home/slurm
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/munge/0.5.10-1/munge_0.5.10.orig.tar.bz2
yum install -y rpm-build
mv munge_0.5.10.orig.tar.bz2 munge-0.5.10.tar.bz2
rpmbuild -tb --clean munge-0.5.10.tar.bz2
cd /root/rpmbuild/RPMS/x86_64
rpm --install munge*.rpm
#rpm -qa | grep munge
systemctl start munge
#systemctl status munge
install mariadb (Make sure the MariaDB packages were installed before you built the Slurm RPM)
参考 :
https://wiki.fysik.dtu.dk/niflheim/Slurm_database
https://www.slothparadise.com/how-to-install-slurm-on-centos-7-cluster/
yum -y install maria