初步安装Condor

来源:互联网 发布:mac 桌面上多了个磁盘 编辑:程序博客网 时间:2024/06/11 13:31
 1. 准备
 [root@node1 /]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
192.168.227.128   node1.xjtu.edu.cn node1
192.168.227.129   node2.xjtu.edu.cn node2


[root@node1 /]# groupadd condor
[root@node1 /]# useradd -g condor condor
[root@node1 /]# passwd condor


 在/root安装,安装在/root/program/condor_install, 本地目录为/root/program/local
 [root@node1 ~]# pwd
/root
[root@node1 ~]# mkdir program
[root@node1 ~]# mkdir program/condor_install
[root@node1 ~]# mkdir program/local




2. 解压,安装
[root@node1 ~]# tar -zxvf condor-7.8.0-x86_rhap_5-stripped.tar.gz
[root@node1 ~]# ll condor-7.8.0-x86_rhap_5-stripped
total 60
drwxr-xr-x 2 root root 4096 May  8 22:16 bin
lrwxrwxrwx 1 root root   23 Jun  1 21:04 condor_configure -> ./sbin/condor_configure
lrwxrwxrwx 1 root root   21 Jun  1 21:04 condor_install -> ./sbin/condor_install
-rw-r--r-- 1 root root  245 May  8 21:49 DOC
drwxr-xr-x 5 root root 4096 May  8 22:11 etc
drwxr-xr-x 3 root root 4096 May  8 22:11 examples
drwxr-xr-x 3 root root 4096 May  8 22:11 include
-rw-r--r-- 1 root root  202 May  8 21:49 INSTALL
drwxr-xr-x 4 root root 4096 May  8 22:16 lib
drwxr-xr-x 3 root root 4096 May  8 22:16 libexec
-rw-r--r-- 1 root root 9723 May  8 21:48 LICENSE-2.0.txt
drwxr-xr-x 3 root root 4096 May  8 22:11 man
-rw-r--r-- 1 root root 1654 May  8 21:49 README
drwxr-xr-x 2 root root 4096 May  8 22:16 sbin
drwxr-xr-x 4 root root 4096 May  8 22:11 src


//condor被安装到/root/program/condor_install
[root@node1 condor-7.8.0-x86_rhap_5-stripped]# ./condor_install --prefix=/root/program/condor_install/ --local=/root/program/local --type=manager,submit,execute


3. 配置
[root@node1 etc]# pwd
/root/program/condor_install/etc
[root@node1 etc]# vi condor_config   //修改ALLOW_WRITE
##  You must set this to something else before Condor will run.
##  This most simple option is:
    ALLOW_WRITE = *


设置环境变量
[root@node1 etc]# vi /etc/profile
export PATH=/root/program/condor_install/bin:/root/program/condor_install/sbin:$PATH
export CONDOR_CONFIG=/root/program/condor_install/etc/condor_config
原创粉丝点击