码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7安装troque

时间:2020-10-22 22:19:40      阅读:18      评论:0      收藏:0      [点我收藏+]

标签:make   本地ip   ref   libxml2   libtool   etc   bin   finish   install   

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

标签:make   本地ip   ref   libxml2   libtool   etc   bin   finish   install   

原文地址:https://www.cnblogs.com/andyxie/p/13855620.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!