XJTUhehuan的个人博客分享 http://blog.sciencenet.cn/u/XJTUhehuan

博文

Torque在CentOS7上单机安装

已有 7226 次阅读 2018-7-18 20:49 |系统分类:科研笔记|关键词:学者

不小心将服务器的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/


安装步骤:

  1. 在opt/soft/下,解压缩 tar -zxvf torque-6.1.2.tar.gz

  2. 进入目录下 cd  torque-6.1.2

  3. 配置 ./configure --prefix=/usr/local/torque --with-default-server=$Hostname

    (:Hostname是主机名,可以通过命令“echo $Hostname”查看)

  4. 安装 make

            make install

  5. 配置环境变量 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查看启动情况

\"image.png\"/

    13.配置节点

                     1) 管理节点 : 先终止pbs_server qterm 

                                            编辑 vim /var/spool/torque/server_priv/nodes 

                             编辑内容如下:host np=36 normal(三项分别是用户名,节点进程数目,节点属性)

                      :\"image.png\"/

                      2)计算节点:编辑  vim  /var/spool/torque/mom_priv/config

                        编辑内容如下:$pbsserver host

                                                $logevent  1039

                            教程里logevent是255 但我的文件打开是就是1039,我也没改这个,但也能运行

\"image.png\"/

        14.启动程序  for i in pbs_server pbs_sched pbs_mom; do service $i restart;done

                             trqauthd


安装结束,服务器可以并行运行,提交任务了!



https://m.sciencenet.cn/blog-3362186-1124747.html

上一篇:lammps相同in文件却不同结果
下一篇:lammps中如何获取某个时刻,某个原子的compute量?

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-20 08:17

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部