Rocky8.9安装Munge
下载最新的munge,下载地址:https://github.com/dun/munge/releases/tag/munge-0.5.15
安装依赖
dnf -y install openssl libgcrypt bzip2 zlib autoconf automake libtool openssl-devel bzip2-devel make
解压munge-munge-0.5.15.tar.gz,并且安装
tar -zxvf munge-munge-0.5.15.tar.gz
cd munge-munge-0.5.15
./bootstrap
./configure --prefix=/opt/hpc/munge/0.5.15 --sysconfdir=/opt/hpc/munge/0.5.15/etc --localstatedir=/var
make -j
make install
cd /opt/hpc/munge/0.5.15/sbin
./mungekey
在所有节点创建用户munge
在所有节点创建以及修改目录属性
mkdir -p /var/{log,lib,run}/munge
chmod 700 /var/log/munge;chmod 711 /var/lib/munge;chmod 755 /var/run/munge
chown -R munge.munge /var/{log,lib,run}/munge
chown -R munge.munge /opt/hpc/munge
在所有节点创建启动服务
cp /opt/hpc/pkg/munge-munge-0.5.15/src/etc/munge.systemd.service /usr/lib/systemd/system/munge.service
systemctl daemon-reload
systemctl start munge
systemctl enable munge
systemctl status munge