Centos7安装troque
Posted andyxie
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7安装troque相关的知识,希望对你有一定的参考价值。
1. 下载并编译安装torque
[root@master ~]# cd /opt/
[root@master opt]#yum install wget -y && wget http://wpfilebase.s3.amazonaws.com/torque/torque-6.1.1.1.tar.gz
[root@master opt]# tar xf torque-6.1.1.1.tar.gz
[root@master opt]# cd torque-6.1.1.1
[root@master torque-6.1.1.1]# yum install libxml2-devel openssl-devel gcc gcc-c++ boost-devel libtool -y
[root@master torque-6.1.1.1]# ./configure --prefix=/usr/local/torque --with-scp--with-default-server=master
[root@master torque-6.1.1.1]# make
[root@master torque-6.1.1.1]# make install
[root@master torque-6.1.1.1]# make packages
[root@master torque-6.1.1.1]# libtool --finish /usr/local/torque/lib
[root@master torque-6.1.1.1]# cp contrib/init.d/{pbs_{server,sched,mom},trqauthd} /etc/init.d/
[root@master torque-6.1.1.1]# for i in pbs_server pbs_sched pbs_mom trqauthd; do chkconfig --add $i; chkconfig $i on; done
[root@master torque-6.1.1.1]# echo "TORQUE=/usr/local/torque" >> /etc/bashrc
[root@master torque-6.1.1.1]# echo ‘export PATH=$TORQUE/bin:$TORQUE/sbin:$PATH‘ >> /etc/bashrc
[root@master torque-6.1.1.1]# source /etc/bashrc
[root@master torque-6.1.1.1]# echo ‘192.168.52.135 master‘ >> /etc/hosts
其中192.168.52.135是本机ip地址,按照实际的本地ip来替换
[root@master torque-6.1.1.1]# ping -c 1 master
以上是关于Centos7安装troque的主要内容,如果未能解决你的问题,请参考以下文章