Centos7單機安裝torque

2021-08-02 12:40:08 字數 1903 閱讀 7265

1、修改主機名稱

# vi /etc/hosts

127.0.0.1    sce2

#wget

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/,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'

centos7安裝MongoDB 單機

軟體所在位置 root 236 mongodb linux x86 64 3.6.13 pwd usr local mongodb linux x86 64 3.6.13 root 236 mongodb linux x86 64 3.6.13 vi etc profile export mongo...

centos7單機安裝Greenplum6 2 1

一 環境準備 作業系統 centos 7 x86 64 minimal 1810.iso 資料庫 greenplum db 6.2.1 rhel7 x86 64.rpm 集群配置 1 master,1 primary segment 1個mirror segment 二 安裝linux系統後配置 2...

centos7單機安裝kafka

基礎要求作業系統 centos 7x 64位 kafka版本 kafka 2.11 0.8.2.1 提取碼 ns3c 1 關閉selinux 開放防火牆9092埠 root wzy x vi etc selinux config root wzy x tail 2 etc selinux confi...