아직 준비가 미흡해서 준비가 된 자료만 먼저 올립니다.
먼저 nt용과 linux용 설치 파일을 download 받을 수 있게 해놨습니다.
그리고 아래에 linux 설치 방법을 포함시켰습니다.
다음 주에는 더 많은 관련 documents를 올리겠습니다.
Linux에서 Cache4 설치하기
==> Cache4 다운 받을 장소
우선 Windows용과 Linux용 두가지 다운 받을 수 있습니다..
Windows용 : CachePC40kit.exe
ftp://database.sarang.net/pub/database/cache/
Linux용 : cache-4.0-1.i386.rpm
==> 설치하기
root로 login하여 다운 받은 파일을 rpm으로 설치 합니다.
# rpm -Uvh cache-4.0-1.i386.rpm
하면 /usr/cachekit 라는 폴더가 생성이 되는데 여기에 있는 cinstall이라는 실행파일을 실행하면 Cache4가 설치가 됩니다..
# ./cinstall
InterSystems Cache Installation Script
Your system type is 'Linux (Red Hat, SuSE, Turbo)'
Currently defined Cache configurations:
Enter configuration name: CACHE4B135 ç 설치되는 등록 이름
Do you want to create configuration 'CACHE4B135' <No>? y
Enter installation directory location:
/work/db/cache4b135 ç 설치할 경로명
Disk blocks required = 93088
Disk blocks available = 30018992
Do you want to install Cache Unicode support <No>? y ç unicode설치여부
Do you want to load the Manager utility source code <No>? y
Do you want to load the Cache Engine link libraries <No>? y
What group should be allowed to start and stop Cache?
Copying files, please wait...
NOTE: Users should not attempt to use Cache while
installation is in progress.
Starting up Cache...
……..
……..
Setting to InterSystems defaults ... done.
Welcome to Cache CSP (Netscape/Apache for Linux) Version 4.0.818.0
Run CSPinstall to update and configure your WebServer to run CSP.
The CSPinstall script will ask you some questions about the
location of your Web Server (Netscape/Apache) configuration
files. You will be prompted to confirm the location of the
document root and cgi-bin directories.
You may also quit this portion of the install without affecting the
success of the Cache Server installation. You may later run CSPinstall
or perform a manual configuration of your Web Server
CSPinstall must be run as user 'root' from the directory
where cache csp is installed!
For example: /usr/cachesys/csp
You are currently in directory: /work/db/cache4b135/csp
and you are running as: root
Do you wish to continue [yes]?
-------------------------------------------
Are you running a Netscape or Apache WebServer [Apache]?
Apache Server Configuration directory
[/etc/httpd/conf]?
Directory or Filename /etc/httpd/conf does not exist!
Apache Server Configuration directory
[/etc/httpd/conf]? /usr/local/apache/conf
Apache Server html document directory
[/usr/local/apache/htdocs]?
Apache Server cgi-bin directory
? /usr/local/apache/cgi-bin
Installation Summary
--------------------
Installing Cache CSP for Apache:
document (http) files in '/usr/local/apache/htdocs'
configuration files directory: /usr/local/apache/conf
cgi-bin files in '/usr/local/apache/cgi-bin'
PidFile in '/usr/local/apache/logs/httpd.pid'
Do you wish to continue and perform the Installation [yes]?
killing CSPnsd process to upgrade ...
kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l]
Updating httpd.conf configuration file ...
- /usr/local/apache/conf/httpd.conf
- /usr/local/apache/conf/access.conf
Setting up permissions on csp software components ...
Creating required directories ...
The Apache WebServer must be restarted to pick up the configuration changes!
Do you want to restart the Apache WebServer [yes]?
Starting CSP network service demon ...
Important Notes
---------------
You may need to restart './CSPnsd' after rebooting from /cachesys/csp
* Point your web browser to 'http://127.0.0.1/csp/samples/menu.csp' to
start using Cache CSP samples on Apache ()
Installation Complete!
n 설치가 끝났으면 아래의 명령어로 Cache4의 DB 프로세스가 start되어 있는지 확인해 볼 수 있습니다.
# ps -ef | grep cache
root 2908 1 0 14:26 pts/3 00:00:00 cache -s . -c c -g 1024 -r 32 5
root 2927 2908 0 14:26 pts/3 00:00:00 cache WD
root 2928 2908 0 14:26 pts/3 00:00:00 cache GC
root 2929 2908 0 14:26 pts/3 00:00:00 cache JD
root 2930 2908 0 14:26 pts/3 00:00:00 cache SWD1
root 2931 2908 0 14:26 pts/3 00:00:00 cache SWD7
root 2932 2908 0 14:26 pts/3 00:00:00 cache SWD6
root 2933 2908 0 14:26 pts/3 00:00:00 cache SWD5
root 2934 2908 0 14:26 pts/3 00:00:00 cache SWD4
root 2935 2908 0 14:26 pts/3 00:00:00 cache SWD3
root 2936 2908 0 14:26 pts/3 00:00:00 cache SWD2
root 2944 2908 0 14:26 pts/3 00:00:00 cache START^LMFSERV
root 2947 2908 0 14:26 pts/3 00:00:00 cache ServerMaster^%CMTP
root 2953 2285 0 14:27 pts/2 00:00:00 cache
root 2963 1873 0 14:46 pts/3 00:00:00 grep cache
n 만약 Cache4를 /usr/cachesys 폴더가 아닌 다른 폴더(/work/db/cache4b135)에 설치를 한다면 다음과 같은 일련의 작업을 해 주어야 합니다.
cd /work/db/cache4b135/source/cache
vi로 shdir.c 를 열어서 내용을 수정 합니다..
char shdir[64] = "/usr/cachesys";
의 내용을
char shdir[64] = "/work/db/cache4b135/mgr";
로 수정
/work/db/cache4b135/source/cache # cc –c shdir.c
/work/db/cache4b135/source/cache # ./clink
하면 cache 파일이 생성된다. 이것을
/work/db/cache4b135/bin 과 /usr/bin 디렉토리에 copy 합니다.
참고로 DB start와 stop은 반드시 /work/db/cache4b135/에서 합니다.
n 라이센스 등록하기
설치를 하면 기본적으로 2대의 Client까지 Server에 접속할 수 있습니다.
우선 라이센스를 등록해야 하는데 Cache4가 설치된 디렉토리에 cache.cpf파일을 vi로 수정합니다.
/work/db/cache4b135 # vi cache.cpf
여기서 다음과 같은 string을
RunLicenseServer=NO
LicenseServer=
아래와 같이 수정을 해 주십시오.
RunLicenseServer=YES
LicenseServer=127.0.0.1,4001
이상입니다.
|