Ubuntu安装openpbs
2024-12-26
1分钟阅读时长
1.安装依赖
apt install -y gcc make libtool libhwloc-dev libx11-dev libxt-dev libedit-dev libical-dev ncurses-dev perl postgresql-server-dev-all postgresql-contrib python3-dev tcl-dev tk-dev swig libexpat-dev libssl-dev libxext-dev libxft-dev autoconf automake g++ libcjson-dev expat libedit2 postgresql python3 postgresql-contrib sendmail-bin tcl tk libical3 postgresql-server-dev-all libpmix-dev libpmix-bin libpmix2
2.编译pbs
wget https://dgithub.xyz/openpbs/openpbs/archive/refs/tags/v23.06.06.tar.gz
tar xf openpbs-23.06.06.tar.gz
cd openpbs-23.06.06
./autogen.sh
./configure --prefix=/opt/pbs --libexecdir=/opt/pbs/libexec --with-pmix=/usr/lib/x86_64-linux-gnu/pmix2
make -j
make install
3.配置/etc/hosts
形式
ip hostname
不要用回环地址
4.初始化pbs
/opt/pbs/libexec/pbs_postinstall
5.配置pbs.conf
如果管理节点也做计算节点 修改 /etc/pbs.conf PBS_START_MOM值 0 改成 1
6.修改文件权限
chmod 4755 /opt/pbs/sbin/pbs_iff /opt/pbs/sbin/pbs_rcp
7.pgsql配置
mkdir /usr/pgsql-14.15/lib -p
mkdir /usr/pgsql-14.15/share/timezonesets/ -p
cp /usr/lib/postgresql/14/lib/* /usr/pgsql-14.15/lib/ -rf
cp /usr/pgsql-14.15/share/timezonesets/* /usr/pgsql-14.15/share/timezonesets/ -rf
8.启动pbs
. /etc/profile.d/pbs.sh
/etc/init.d/pbs start