标签: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
标签:make 本地ip ref libxml2 libtool etc bin finish install
原文地址:https://www.cnblogs.com/andyxie/p/13855620.html