centos7安装pbs_torque
时间: 2023-11-23 20:07:33 浏览: 169
PBS Torque是一款开源的集群资源管理器,它可以帮助用户在分布式计算环境中管理作业、节点和资源。下面是在CentOS 7上安装PBS Torque的步骤:
1. 安装依赖项
```
yum install -y gcc make libtool-ltdl-devel libxml2-devel openssl-devel pam-devel libX11-devel libXt-devel libedit-devel perl-XML-Simple perl-ExtUtils-Embed tk-devel tcl-devel expat-devel libXtst-devel
```
2. 下载PBS Torque
```
wget https://github.com/adaptivecomputing/torque/releases/download/torque-6.1.2/torque-6.1.2.tar.gz
```
3. 解压缩文件并进入目录
```
tar zxvf torque-6.1.2.tar.gz
cd torque-6.1.2
```
4. 编译和安装
```
./configure
make
make install
```
5. 配置PBS Torque
首先,创建一个节点文件,例如:
```
echo "node1 np=2" > /var/spool/torque/server_priv/nodes
```
然后,编辑`/etc/pbs.conf`文件,将以下行添加到该文件的末尾:
```
$logevent 0x1ff
$usecp *:/tmp
```
接下来,启动PBS Torque服务:
```
service trqauthd start
service pbs_server start
service pbs_sched start
```
最后,将PBS Torque加入到系统启动项中:
```
chkconfig trqauthd on
chkconfig pbs_server on
chkconfig pbs_sched on
```
到此,PBS Torque已经安装并配置完成。
阅读全文