A script that downloads, extracts, compiles and installs Slurm for you - including accounting in case of interest.
- Ubuntu: 18.04, 20.04, 22.04, 24.04
- RH/Centos: 7, 8 and 9
- Rocky Linux: 7, 8 and 9
- Alma Linux: 7, 8 and 9
- Amazon Linux: 2023
- SLES / OpenSUSE: 15
- x86_64
- arm64
- Can be installed with and without accounting support
- Can use an already installed MySQL/MariaDB server
- Can install MariaDB
- Change the SLURM version via environment variable
- Support for cgroups/v2 to Ubuntu 22.04+ and Red Hat 9 based distributions
Before execute the script, please export the variable SLURM_VERSION with the desired version. For example:
export SLURM_VERSION=24.05.2bash slurm_install.shor without cloning the git:
sudo bash -c "$(wget --no-check-certificate -qO- https://raw.githubusercontent.com/NISP-GmbH/SLURM/main/slurm_install.sh)"bash slurm_install.sh --without-interaction=true --slurm-accounting-support=true --mysql-password=123456789Notes:
- --mysql-password= and --slurm-accounting-support will not work if there is no --without-interaction parameter set to true
- If you do not have mysql installed, the script will install it for you; In that case, you can leave the mysql parameter empty, like this: --mysql-password=
Example of slurm installer without mysql server previously installed:
bash slurm_install.sh --without-interaction=true --slurm-accounting-support=true --mysql-password=