torque安装

OracleLinux-R6-U2-Server-x86_64-dvd安装torque

从网上下载TORQUE

传到对应的服务器上并解压

1./opt/torque-4.1.0.tar.gz

2.tar xvfztorque-4.1.0.tar.gz

3.cd torque-4.1.0

4../configure --with-default-server=localhost(localhost是主机名)

在这一般会报这个错(configure: error: no acceptable C compilerfound in $PATH

See `config.log'for more details.)意思是没有C这个时候我们需要安装GCC

   安装GCC

1)        先挂载光盘

2)        然后修改/etc/yum.repos.d/后面是-media.repo文件中的

baseurl=file:///var/ftp/rpm #这里就是咱们的安装包存放路径了,仔细看是 "///"

enabled=1  # 1为打开 0 为关闭肯定选打开

3)        yuminstall gcc

好以上GCC安装成功

5然后在运行./configure --with-default-server=localhost(localhost是主机名)还是报错configure: error: TORQUE needs lib openssl-devel inorder to build(建立openssl-devel

安装openssl-devel

1)   rpm-ivh openssl-devel-1.0.0-20.el6.x86_64.rpm

2)   提示:(error: Failed dependencies:

  krb5-devel is needed by openssl-devel-1.0.0-20.el6.x86_64

       zlib-devel is needed byopenssl-devel-1.0.0-20.el6.x86_64)

3)   在分别安装rpm -ivh krb5-devel-1.9-22.el6.x86_64.rpm

4)   如此直到rpm -ivh openssl-devel-1.0.0-20.el6.x86_64.rpm安装完成

6../configure --with-default-server=localhost(localhost是主机名)

提示‘make’

7.make

8.make install

以上是torque默认安装,

以下是torque指定目录安装

tar zxvf torque-2.4.6.tar.gz

 cd torque-2.4.6

 ./configure-prefix=/usr/local/software/torque-2.4.6 -with-rcp=scp

 make

 make install

 安装完毕,但是需要

 make packages

 产生到计算节点安装的文件,其中产生的几个 sh 文件中最重要的是

 torque-package-mom-linux-x86_64.sh torque-package-clients-linux-x86_64.sh

 5.2Torque 在管理节点上的配置

 5.2.1

 /etc/profilie 中追加

 exportTORQUE=/usr/local/software/torque-2.4.6

 if [ "`id -u`" -eq 0 ]; then

 PATH=$PATH:$TORQUE/bin:$TORQUE/sbin

 else

 PATH=$PATH:$TORQUE/bin

 fi

修改后使设置的环境变量生效:

source /etc/profile

root设置为TORQUE的管理帐户:

root@locaholst#./torque.setup root

/var/spool/torque/serverpriv/nodes中添加计算节点的机器名,:

root@localhost

如果/var/spool/torque下的目录spoolundelivered的权限不是drwxrwxrwt的话,需要chmod

1777 spool undelivered

#pbsserver -t create

#qmgr(设置一个默认队列dque)

Qmgr:create queue dque queue_type=execution

在这一般会报这个错误(Cannot connect to default server host 'localhost' -check

pbs_server daemon and/or trqauthd.

需要做:1.本机的ssh无密码登陆ssh-keygen -t rsa

 然后一路回车,完成之后

 cd ~/.ssh

 cp id_rsa.pub authorized_keys

 完成之后测试一下:

 ssh localhost 应该不用输密码就可以了

   2. 检查/etc/hosts文件上边添加127.0.0.1  localhost.localdomain  localhost

   3.在文件/var/spool/torque/serverpriv/nodes最后一行加上localhost 或者root@localhost

Qmgr: set server default_queue=dque

Qmgr: set queue dque started=true

Qmgr: set queue dque enabled=true

Qmgr: set server scheduling=true

 

/var/spool/torque/mompriv/config

$pbsserver localhost

$logevent 255

$usecp localhost:/home /home

其中$pbsserver后指定服务节点的主机名,$usecp后面的表示的共享home

 

a编辑/etc/pbs.conf文件,填入如下内容:

pbs_home=/usr/local/software/torque-2.4.6

pbs_exec=/usr/local

start_server=1

start_sched=1

start_mom=1

b) OpenPBS解压目录中的……/src/tools/init.d/pbs文件复制到/etc/init.d/pbs

c) 执行命令chkconfig add pbs

d) chkconfig list | grep pbs 命令查看pbs服务是否已被加入

e) 现在就可以使用如下命令启动、关闭pbs了:

i. 启动pbs service pbs start

ii. 关闭pbs service pbs stop

iii. 重启pbs service pbs restart

发布了18 篇原创文章 · 获赞 4 · 访问量 4万+

猜你喜欢

转载自blog.csdn.net/caoming51021/article/details/7767355