r5 - 16 Dec 2011 - 09:44:43 - GunmoRyuYou are here: KoreaCmsWiki >  UOS Web > YusangsLog
GATE register form 수정

등록폼이 작동안하길래 손을 보았다.
값이 app_form.php에서 register.php로 전달이 안되는데 왜 안되나 고민하다가 찾다가 하다가
php 설정값중 register_globals=Off 이 되어있으면 변수값 전달이 안된다는것을 알았다.
on하면 편하지만 보안문제가 있다고 하며 등록폼이므로 개인정보가 있으므로 보안이 중요한 내용이다.
그래서 변수값을 얻고자 할 때에는
$HTTP_GET_VARS['name']; 또는 $_GET['name'];
$HTTP_POST_VARS['name']; 또는 $_POST['name'];
이렇게 해야 값을 얻을 수 있다고 한다.

-- YusangKim - 07 Aug 2008

GATE 등록폼 메일 전송

-- YusangKim - 07 Aug 2008

1.condor 설치화일을 받는다.

받는곳은 http://www.cs.wisc.edu/condor/downloads/ 이다. 이 설명서 작성 현재 최신안정판은 7.0.4 이다. 내가 설치할 gate의 리눅스는 SLC 4.6 64bit 여서 condor-7.0.4-linux-x86_64-rhel3-dynamic-1.x86_64.rpm 을 받았다.

2. condor을 설치한다.

condor가 설치될 주 서버에 condor을 설치한다. condor 설명서 3.2.6 RPMs 에 설치방법이 나와있다.

[t2cpu] /root > rpm -i condor-7.0.4-linux-x86_64-rhel3-dynamic-1.x86_64.rpm --prefix=/opt/condor
Setting up Condor in /opt/condor
WARNING: Multiple network interfaces detected. Condor might not work
properly until you set NETWORK_INTERFACE =     <-네트웍카드가 여러개면 config에 이 설정을 따로 해줘야한다.


Condor has been installed into:
    /opt/condor

Configured condor using these configuration files:
  global: /opt/condor/etc/condor_config
  local:  /opt/condor/local.t2cpu/condor_config.local

In order for Condor to work properly you must set your CONDOR_CONFIG
environment variable to point to your Condor configuration file:
/opt/condor/etc/condor_config before running Condor commands/daemons.
Created scripts which can be sourced by users to setup their
Condor environment variables.  These are:
   sh: /opt/condor/condor.sh
  csh: /opt/condor/condor.csh

[t2cpu] /root >

3. condor owner 을 설정한다.

condor을 위한 condor 계정을 만들었다. uid:gid는 400:400으로 하였다. condor계정을 만들고 설치한폴더(/opt/condor)에 가서 아래와같이 설정한다.

[root@t2cpu condor]# ./condor_configure --owner=condor

WARNING: There are several local config files used:
/opt/condor/local.t2cpu/condor_config.local  /opt/condor/local.t2cpu/condor_config.local.view_server
The script will modify the following file (it will be backed up):
 /opt/condor/local.t2cpu/condor_config.local.view_server

Configured condor using these configuration files:
  global: /etc/condor/condor_config
  local:  /opt/condor/local.t2cpu/condor_config.local.view_server

In order for Condor to work properly you must set your CONDOR_CONFIG
environment variable to point to your Condor configuration file:
/etc/condor/condor_config before running Condor commands/daemons.
Created scripts which can be sourced by users to setup their
Condor environment variables.  These are:
   sh: /opt/condor/condor.sh
  csh: /opt/condor/condor.csh

[root@t2cpu condor]# 
condor_config.local.view_server 화일이 없다고 나올수 있는데 condor홈폴더에서 etc/examples에 가면 있으니 복사해 쓰면 된다. 다른 설정화일도 많으니까 필요에따라 복사해 쓰면 된다.

4. 서버에 맞게 설정을 바꾼다. gate는 gate-t2cpu-node 로 구분돼있고 각 역할은 gate는 잡 스케줄 t2cpu는 콘돌 총괄 node 는 계산 이다. 그래서 각 서버에 띄울 데몬도 gate는 * condor_ master * condor_ schedd t2cpu는 * condor_ master * condor_ collector * condor_ negotiator node는 * condor_ master * condor_ startd 만을 띄운다. 이에 대한 설명은 콘돌설명서 3.2.4 Condor is installed Under Unix ... now what? 부분을 보면 된다. 그래서 /opt/condor/local.t2cpu/condor_config.local 에서 DAEMON_LIST = COLLECTOR, MASTER, NEGOTIATOR 로 바꿨다. t2cpu가 네트웍이 2개이므로 설정화일 상단에 NETWORK_INTERFACE = 192.168.10.2 도 넣어주었다.

5.콘돌환경화일 복사

/opt/condor에 condor.sh, condor.csh가 있다. 내용을 봐서 설정이 맞게 돼있는지 확인한 후 /etc/profile.d 폴더에 복사해 넣어주면 로긴시 자동실행된다.

6. condor_config 설정

owner 설정을 하고 나면 condor_config 을 /etc/condor/ 폴더에서 찾게 된다. /opt/condor/etc/condor_config 을 /etc/condor/ 에 복사하고 설정을 고친다. RELEASE_DIR = /opt/condor LOCAL_CONFIG_FILE = /opt/condor/local.t2cpu/condor_config.local UID_DOMAIN = $(FULL_HOSTNAME) FILESYSTEM_DOMAIN = $(FULL_HOSTNAME) COLLECTOR_NAME = SSCC HOSTALLOW_WRITE = * DAEMON_LIST = MASTER, STARTD, SCHEDD <-각 local config을 따르므로 고칠필요 없다.

7. init 설정

cp /opt/etc/examples/condor.boot /etc/init.d/condor

condor 화일에서 아래경로수정 MASTER=/opt/condor/sbin/condor_master

chkconfig --add condor chkconfig condor on

8. 데몬시작

service condor start 해보고 데몬이 정상적으로 올라왔는지 확인한다. Masterlog를 확인하여 정상적인지 본다.

9. gate설정

t2cpu와 방법은 같고 데몬만 고쳐준다. local.gate/condor_config.local에서

DAEMON_LIST = MASTER, SCHEDD

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
KOREA-CMS
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding KoreaCmsWiki? Send feedback