Skip to content

OpenText Content Server 설치: 핵심 명령어 및 작업 요약

1. 필수 패키지/라이브러리 설치

# Xvfb 및 라이브러리 설치
yum install xorg-x11-server-Xvfb
yum install libXrender

필요 시 아래 라이브러리 위치 확인 및 설치:

sudo dnf install bzip2 glibc libxcrypt openssl libX11 libXau libxcb libXrender xorg-x11-server-Xvfb

sudo dnf install libnsl
sudo dnf install libnsl2
sudo dnf install hostname net-tools

2. 설치 파일 압축 해제

tar xvf <Content_Server_Installer>.tar.gz
cd <압축 해제된 디렉터리>

3. 설치 실행 (인터랙티브)

./setup

export LD_LIBRARY_PATH=/lib64:$LD_LIBRARY_PATH

4. Xvfb 경로 지정 (기본: /usr/bin/Xvfb)

  • 다른 위치에 설치되어 있다면, 설치 중 경로 직접 입력.
  • 설치 완료 후 <설치경로>/config/filters/startXVFB.sh 파일 수정:
  • 첫 번째 주석 없는 줄에서: bash x11_path="/usr/bin/" → 예) x11_path="/another/place/"

5. 라이브러리 경로 지정

  • 기본 위치에 없으면 설치 중 직접 입력.
  • 설치 완료 후 <설치경로>/start_llserver 파일에서 LD_LIBRARY_PATH에 경로 추가: bash LD_LIBRARY_PATH=기존값:/another/place

6. Landscape 디렉터리 권한

sudo mkdir -p /etc/opentext/landscape/
sudo chown <설치 사용자> /etc/opentext/landscape/
  • 설치 프로그램 실행 사용자에게 디렉터리 생성/쓰기 권한 부여.
  • 설치 후 에 생성된 solution registry 파일을 /etc/opentext/landscape/로 복사: bash cp <Content_Server_home>/2015*-OTCONTENTSERVER-Install.ini /etc/opentext/landscape/

7. 기타 참고

  • DB 설치/구성 선행 권장
  • 설치 중 경로, 포트번호 등 기록 권장

요약:
1. yum으로 Xvfb, libXrender 설치
2. tar로 설치파일 압축 해제
3. setup 실행
4. 설치 중 라이브러리/실행파일 경로 입력 및 설치 후 관련 쉘스크립트 경로 수정
5. landscape 디렉터리 권한 확인 및 solution registry 파일 복사

1단계. PostgreSQL 기본 설치 (Rocky Linux 기준) bash

sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm sudo dnf -qy module disable postgresql

PostgreSQL 패키지 설치

sudo dnf update -y sudo dnf install -y postgresql15-server postgresql15

데이터베이스 초기화

sudo /usr/pgsql-15/bin/postgresql-15-setup initdb

서비스 시작 및 부팅시 자동 시작 설정

sudo systemctl enable postgresql-15 sudo systemctl start postgresql-15 sudo systemctl status postgresql-15

설치 확인 bash

PostgreSQL 서비스 상태 확인

sudo systemctl status postgresql-15

5단계. postgres 사용자 비밀번호 설정

sudo -u postgres psql

PostgreSQL 셸에 진입한 후 다음 명령 실행:

\password postgres

비밀번호 입력 후:

\q

sudo dnf install -y postgresql15-contrib [ecmadmin@localhost home]$ sudo -u postgres psql psql (15.14) Type "help" for help.

postgres=# \c otcsdb You are now connected to database "otcsdb" as user "postgres". otcsdb=# CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION otcsdb=#

으로 종료합니다.

Apache 설치 및 서비스 활성화 bash

Apache(httpd) 패키지 설치

sudo dnf install -y httpd

Apache 서비스 시작

sudo systemctl start httpd

시스템 부팅 시 자동으로 시작되게 설정

sudo systemctl enable httpd 설치 확인 bash

서비스 상태 확인

sudo systemctl status httpd

HTTP(80)와 HTTPS(443) 포트 열기

sudo firewall-cmd --permanent --add-service=http sudo firewall-cmd --permanent --add-service=https sudo firewall-cmd --reload

Document Directory Mappings

From Directory Name : livelinksupport To Directory Path : /usr/local/contentserver/support

CGI-BIN Mappings

From Directory Name : livelink To Directory Path : /usr/local/contentserver/cgi

Content Server support directory mapping

Alias /livelinksupport "/usr/local/contentserver/support" AllowOverride None Require all granted

# 압축 적용: 텍스트, CSS, JS, SVG, JSON
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css text/javascript application/javascript application/x-javascript application/json image/svg+xml

# 캐시 및 만료 헤더 설정 (선택, 성능 개선)
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/png A86400
ExpiresByType text/html A86400
ExpiresByType text/css A86400
ExpiresByType application/javascript A86400
ExpiresByType application/json A86400
ExpiresByType image/svg+xml A86400

Content Server CGI directory mapping - mod_cgi

ScriptAlias /livelink "/usr/local/contentserver/cgi" AllowOverride None Options ExecCGI FollowSymLinks Require all granted

? REST API 응답 압축 (예: /api 경로)

AddOutputFilterByType DEFLATE application/json

JDK

    sudo dnf install java-21-openjdk -y

DB

sudo vi /var/lib/pgsql/data/postgresql.conf listen_addresses = '*' sudo vi /var/lib/pgsql/data/pg_hba.conf host all all 0.0.0.0/0 md5

✅ postgresql15 : 외부 접속 허용 (선택)

1) PostgreSQL 설정 파일 수정

sudo vi /var/lib/pgsql/15/data/postgresql.conf

다음 항목을 찾아 수정:

listen_addresses = '*'

2) pg_hba.conf 수정

sudo vi /var/lib/pgsql/15/data/pg_hba.conf

외부 IP 허용을 위해 아래와 같이 추가 (파일 맨 끝에):

host    all             all             0.0.0.0/0               md5
sudo dnf install -y postgresql-contrib
sudo -u postgres psql
drop DATABASE otdsdb ;
drop user otdsuser;

drop DATABASE otcsdb ;
DROP USER otcsuser;
CREATE USER otcsuser WITH PASSWORD 'Opentext1!';
CREATE DATABASE otcsdb OWNER otcsuser;
GRANT ALL PRIVILEGES ON DATABASE otcsdb TO otcsuser;
CREATE USER otdsuser WITH PASSWORD 'Opentext1!';
CREATE DATABASE otdsdb OWNER otdsuser;
GRANT ALL PRIVILEGES ON DATABASE otdsdb TO otdsuser;
drop DATABASE ivdb ;
DROP USER ivuser;
CREATE USER ivuser WITH PASSWORD 'Opentext1!';
CREATE DATABASE ivdb OWNER ivuser;
GRANT ALL PRIVILEGES ON DATABASE ivdb TO ivuser;

http://192.168.137.109:8081/cs/cs?func=admin.otds&NextURL=%2Fcs%2Fcs%3Ffunc%3Dadmin%2Esetup%26_%3D1621949423

User and group migration

http://192.168.137.109:8081/cs/cs?func=otdsintegration.migrate&nextURL=%2Fcs%2Fcs%3Ffunc%3Dadmin%2Esetup%26_%3D1621949423 Please press Y to accept the terms of the license agreement as described

http://192.168.137.109:8081/cs/cs?func=admin.metadatalanguageget

http://192.168.137.139:8081/cs/cs?func=admin.otds&NextURL=%2Fcs%2Fcs%3Ffunc%3Dadmin%2Esetup%26_%3D425250392 tomcat 주소:포트 를 넣어야 다음으로 넘어 간다

  1. SELinux 네트워크 접근 허용 설정 (권장) sudo setsebool -P httpd_can_network_connect 1

sudo usermod -aG ecmadmin nginx

System Center 설치

sudo dnf install -y lsof

in the accompanying documentation and continue with the installation or N to decline the terms of the license agreement. Y ...verified /usr/bin/Xvfb ...verified /lib64/libm.so.6 ...verified /lib64/libc.so.6 ...verified /lib64/libcrypt.so.2 ...verified /usr/lib64/libm.so.6 ...verified /usr/lib64/libc.so.6 ...verified /lib64/libbz2.so.1 ...verified /lib64/libXrender.so.1 ...verified /lib64/libX11.so.6 ...verified /lib64/libxcb.so.1 ...verified /lib64/libXau.so.6 ...verified /usr/lib64/libbz2.so.1 ...verified /usr/lib64/libXrender.so.1 ...verified /usr/lib64/libX11.so.6 ...verified /usr/lib64/libcrypt.so.2 ...verified /usr/lib64/libxcb.so.1 ...verified /usr/lib64/libXau.so.6 ...verified /lib64/libssl.so.3

Press ENTER to accept the default installation directory or enter a different one [/usr/local/contentserver]:

The directory '/usr/local/contentserver' does not exist. Press Y to create it or N to enter another directory [Y]: Would you like to install Open Text Content Server? [Y]:

Enter the port number on which the Content Server will run. Enter a port [2099]:

Enter the port number on which the Content Server Admin Server will run. Enter a port [5858]:

Press ENTER to accept the default CGI alias for this installation of Content Server or enter a new one. The Support alias will have 'support' appended to it. [livelink]:

NFS 서버 설치**

```bash

패키지 업데이트 및 NFS 서버 설치

sudo dnf update sudo dnf install -y nfs-utils

NFS 서비스 시작 및 자동 실행 설정

sudo systemctl enable --now nfs-server sudo systemctl enable --now rpcbind

서비스 상태 확인

sudo systemctl status nfs-server sudo systemctl status rpcbind