|
不小心将服务器的pbs弄坏了,于是自己在网上找了找教程,试着安装了下,失败了两三次,终于成功了。
系统:Centos 7 Torque版本:Torque 6.1.2
安装过程参考以下两个贴子安装:
http://www.pwmat.com/tutorial-mstation-torque.html
https://cndaqiang.github.io/2018/01/11/torque-install-centos/
安装步骤:
在opt/soft/下,解压缩 tar -zxvf torque-6.1.2.tar.gz
进入目录下 cd torque-6.1.2
配置 ./configure --prefix=/usr/local/torque --with-default-server=$Hostname
(注:Hostname是主机名,可以通过命令“echo $Hostname”查看)
安装 make
make install
配置环境变量 vim /etc/profile.d/torque.sh
修改文件内容如下:export PATH=/usr/local/torque/bin:/usr/local/torque/sbin:$PATH
6. 执行 source /etc/profile.d/torque.sh
7. 复制服务脚本 cp contrib/init.d/{pbs_{server,sched,mom},trqauthd} /etc/init.d/
8. 增加系统服务 chkconfig --add trqauthd
chkconfig --add pbs_server
chkconfig --add pbs_sched
chkconfig --add pbs_mom
9.设置开机启动 chkconfig trqauthd on
chkconfig pbs_server on
chkconfig pbs_sched on
chkconfig pbs_mom on
10.打包 (这一步没理解为什么) make packages
11.初始化 qterm
./torque.setup root
12.启动程序 for i in pbs_server pbs_sched pbs_mom ; do service $i restart; done
trqauthd
可以 ps -e | grep pbs查看启动情况
13.配置节点
1) 管理节点 : 先终止pbs_server qterm
编辑 vim /var/spool/torque/server_priv/nodes
编辑内容如下:host np=36 normal(三项分别是用户名,节点进程数目,节点属性)
:
2)计算节点:编辑 vim /var/spool/torque/mom_priv/config
编辑内容如下:$pbsserver host
$logevent 1039
教程里logevent是255 但我的文件打开是就是1039,我也没改这个,但也能运行
14.启动程序 for i in pbs_server pbs_sched pbs_mom; do service $i restart;done
trqauthd
安装结束,服务器可以并行运行,提交任务了!
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-9-23 16:06
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社