yum install epel-release
yum install munge munge-libs munge-devel
systemctl enable munge
systemctl start munge
systemctl status munge.service
/usr/sbin/create-munge -key
systemctl start munge
systemctl status munge.service
yum install slurm slurm-devel slurm-slurmctld slurm-slurmd
slurmd -c
hostnamectl
hostnamectl set-hostname --static --transient --pretty
hostnamectl set-hostname --static seiswei
systemctl restart systemd-hostnamed
slurm.conf
Slurm System Configuration Tool
touch slurm.conf
chmod 777 slurm.conf
将生成网页中的所有代码粘贴到文本文件中
cp slurm.conf /usr/local/etc
systemctl enable slurmd --now
systemctl enable slurmctld --now
systemctl enable slurmd --now
sinfo
sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
debug* up infinite 1 idle localhost
touch job.sh
vim job.sh
#!/bin/bash
#SBATCH --job-name=myjob
#SBATCH --output=/home/mohua/Desektop/output.txt
#SBATCH --time=5:00
echo "This is my job."
echo "The current working directory is: $PWD"
echo "The date is: $(date)"
echo "The hostname is: $(hostname)"
sbatch job.sh