自己写了个
#!/bin/sh
#in head node , make sure the enviornment is clean , or you should use 'clean' script
#run as root , and run in SLURM_DIR
HEADNODE_IP=192.168.192.*
NODE1_IP=192.168.192.*
SLURM_DIR=/home/slurm
mkdir -p $SLURM_DIR
cd $SLURM_DIR
if [ ! -f "munge_0.5.10.orig.tar.bz2" ]
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/munge/0.5.10-1/munge_0.5.10.orig.tar.bz2
fi
if [ ! -f "slurm-18.08.5-2.tar.bz2" ]
wget https://download.schedmd.com/slurm/slurm-18.08.5-2.tar.bz2
fi
#install dependence package
grep 'Red Hat' /proc/version
if [ "$?" -eq 0 ]
then
y