Centos7单机安装torque

1、修改主机名称

# vi /etc/hosts

   127.0.0.1    sce2

2、下载torque

#wget http://wpfilebase.s3.amazonaws.com/torque/torque-4.2.9.tar.gz
3、在root用户下,解压文件
# tar -zxvf torque-4.2.9.tar.gz
# cd torque-4.2.9
4、编译安装
# yum install libxml2-devel openssl-devel gcc gcc-c++ boost-devel libtool-y
# ./configure --prefix=/usr/local/torque --with-scp --with-default-server=sce2
#  make && make install && make packages
#cp contrib/init.d/{pbs_{server,sched,mom},trqauthd} /etc/init.d/
# for i in pbs_server pbs_sched pbs_mom trqauthd; do chkconfig --add $i; chkconfig $ion; done
5、设置环境变量
#TORQUE=/usr/local/torque  
#echo "TORQUE=$TORQUE" >>/etc/profile
#echo "export PATH=\$PATH:$TORQUE/bin:$TORQUE/sbin" >>/etc/profile
#source /etc/profile

#echo '/usr/local/lib' > /etc/ld.so.conf.d/torque.conf

#ldconfig

#./torque.setup sce


6、启动pbs_server、pbs_sched、pbs_mom、trqauthd几个服务 
# for i in pbs_server pbs_sched pbs_mom trqauthd; do service $i start; done
说明:Torque主要是由三个主要部件组成
pbs_server  PBS服务守护进程,负责接收作业提交,位于服务节点上
pbs_sched  PBS调度守护进程,负责调度作业,位于服务节点上 
pbs_mom  PBS MOM守护进程, 负责监控本机并执行作业,位于所有计算节点上
7、用sce用户提交作业
# echo sleep200|qsub
# qstat -an
添加计算节点
#qmgr -c 'create node sce2 np=2

8、安装mom、client

#./torque-package-mom-*.sh --install

#./torque-package-clients-*.sh --install

#vi /var/spool/torque/mom_priv/config

    pbsserver master 

    logevent 255

9、创建新队列

qmgr -c 'create queue test_queue4'
qmgr -c 'set queue test_queue4 queue_type = execution'
qmgr -c 'set queue test_queue4 started = true'
qmgr -c 'set queue test_queue4 enabled = true'
qmgr -c 'set queue test_queue4 resources_default.walltime = 1:00:00'
qmgr -c 'set queue test_queue4 resources_default.nodes = 1'
qmgr -c 'set server default_queue = batch'

  • 2
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值