ubuntu20.04装slurm
时间: 2023-08-27 18:20:55 浏览: 272
要在Ubuntu 20.04上安装Slurm,您需要按照以下步骤进行操作:
1. 安装必要的库文件。您可以使用以下命令一次性安装所有必要的库文件:
```
sudo su
apt-get install make hwloc libhwloc-dev libmunge-dev libmunge2 munge mariadb-server libmysqlclient-dev -y
```
2. 创建Slurm的安装目录并复制配置文件。您可以使用以下命令完成这一步骤:
```
mkdir /opt/slurm/21.08.6/etc
cp etc/slurm.conf.example /opt/slurm/21.08.6/etc/slurm.conf
cp etc/cgroup.conf.example /opt/slurm/21.08.6/etc/cgroup.conf
cp etc/slurmdbd.conf.example /opt/slurm/21.08.6/etc/slurmdbd.conf
chmod 600 slurmdbd.conf
```
3. 配置Slurm。您可以使用以下命令将Slurm的路径配置到环境变量中,并使其在每次启动终端时自动加载:
```
SLURMPATH=/opt/slurm/21.08.6
echo "export PATH=\$PATH:$SLURMPATH/bin:$SLURMPATH/sbin" >> /etc/bash.bashrc
source /etc/bash.bashrc
```
完成上述步骤后,您应该成功地在Ubuntu 20.04上安装了Slurm。请注意,这仅仅是安装Slurm的过程,您可能还需要进行一些配置和调整以适应您的具体需求。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Ubuntu20.04安装Slurm21.08.6(实践篇)](https://blog.csdn.net/r1141207831/article/details/125272108)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文