알프레스코는 전자 문서 관리, 협업 및 비즈니스 제어를 제공하는 Enterprise Content Management인 오픈 소스 ECM 시스템으로 Java로 작성되었습니다.

이 안내서는 알프레스코 커뮤니티 에디션을 RHEL/CentOS 7/6, Debian 8 및 Ubuntu 시스템에 Nginx 서버를 프론트엔드 웹 서버로 사용하여 설치하고 구성하는 방법을 다룰 것입니다.
요구 사항
최소 시스템 요구 사항으로는, 알프레스코는 적어도 4 GB의 RAM과 64비트 운영 체제가 있는 컴퓨터가 필요합니다.
단계 1: 알프레스코 커뮤니티 에디션 설치
1. 알프레스코 설치를 진행하기 전에 먼저 루트 권한 또는 루트 계정에서 아래 명령을 사용하여 시스템에 wget 유틸리티가 설치되어 있는지 확인하십시오.
# yum install wget # apt-get install wget

2. 다음으로 시스템 호스트 이름을 설정하고 로컬 해상도가 서버 IP 주소를 가리키도록 다음 명령을 사용하여 확인하십시오:
# hostnamectl set-hostname server.alfresco.lan # echo “192.168.0.40 server.alfresco.lan” >> /etc/hosts

3. 해당 기계에서 MTA(이 경우 Postfix 메일 서버)를 제거하려면 아래 명령을 사용하십시오:
# yum remove postfix # apt-get remove postfix

4. 알프레스코 소프트웨어가 올바르게 실행되기 위해 필요한 다음 종속성을 설치하십시오:
# yum install fontconfig libSM libICE libXrender libXext cups-libs # apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2

5. 다음으로, 소스포지.net 포털에 호스팅된 Alfresco Community Edition 저장소 페이지로 이동하여 Linux용 최신 바이너리 버전(즉, alfresco-community-5.0.d-installer-linux-x64.bin)을 wget 유틸리티를 사용하여 다운로드합니다.
# wget http://nchc.dl.sourceforge.net/project/alfresco/Alfresco%205.0.d%20Community/alfresco-community-5.0.d-installer-linux-x64.bin
6. 바이너리 파일 다운로드가 완료되면 파일에 실행 권한을 부여하고 alfresco 설치 프로그램을 실행하기 위해 다음 명령을 실행합니다.
# chmod +x alfresco-community-5.0.d-installer-linux-x64.bin # ./alfresco-community-5.0.d-installer-linux-x64.bin
7. 설치 프로세스가 시작되면 언어를 선택하고 아래 설치 마법사를 사용하여 Alfresco를 구성하는 가이드로 설치 프로세스를 계속합니다:
[root@server ~]# ./alfresco-community-5.0.d-installer-linux-x64.bin Language Selection Please select the installation language [1] English - English [2] French - Français [3] Spanish - Español [4] Italian - Italiano [5] German - Deutsch [6] Japanese - 日本語 [7] Dutch - Nederlands [8] Russian - Русский [9] Simplified Chinese - 简体中文 [10] Norwegian - Norsk bokmål [11] Brazilian Portuguese - Português Brasileiro Please choose an option [1] :1
---------------------------------------------------------------------------- Welcome to the Alfresco Community Setup Wizard. ---------------------------------------------------------------------------- Installation Type [1] Easy - Installs servers with the default configuration [2] Advanced - Configures server ports and service properties.: Also choose optional components to install. Please choose an option [1] :2
---------------------------------------------------------------------------- Select the components you want to install; clear the components you do not want to install. Click Next when you are ready to continue. Java [Y/n] :y
PostgreSQL [Y/n] :y
Alfresco : Y (Cannot be edited) Solr1 [y/N] :n
Solr4 [Y/n] :y
SharePoint [Y/n] :y
Web Quick Start [y/N] :y
Google Docs Integration [Y/n] :y
LibreOffice [Y/n] :y
Is the selection above correct? [Y/n]:y

Alfresco 설치 마법사 계속…
---------------------------------------------------------------------------- Installation Folder Please choose a folder to install Alfresco Community Select a folder [/opt/alfresco-5.0.d]:[Press Enter key]
---------------------------------------------------------------------------- Database Server Parameters Please enter the port of your database. Database Server port [5432]:[Press Enter key]
---------------------------------------------------------------------------- Tomcat Port Configuration Please enter the Tomcat configuration parameters you wish to use. Web Server domain: [127.0.0.1]:192.168.0.15
Tomcat Server Port: [8080]:[Press Enter key
Tomcat Shutdown Port: [8005]:[Press Enter key
Tomcat SSL Port [8443]:[Press Enter key
Tomcat AJP Port: [8009]:[Press Enter key
---------------------------------------------------------------------------- Alfresco FTP Port Please choose a port number to use for the integrated Alfresco FTP server. Port: [21]:[Press Enter key

Alfresco 설치 계속…
---------------------------------------------------------------------------- Admin Password Please give a password to use for the Alfresco administrator account. Admin Password: :[Enter a strong password for Admin user]
Repeat Password: :[Repeat the password for Admin User]
---------------------------------------------------------------------------- Alfresco SharePoint Port Please choose a port number for the SharePoint protocol. Port: [7070]:[Press Enter key]
---------------------------------------------------------------------------- Install as a service You can optionally register Alfresco Community as a service. This way it will automatically be started every time the machine is started. Install Alfresco Community as a service? [Y/n]:y
---------------------------------------------------------------------------- LibreOffice Server Port Please enter the port that the Libreoffice Server will listen to by default. LibreOffice Server Port [8100]:[Press Enter key]
----------------------------------------------------------------------------

Alfresco 설치 설정 계속..
---------------------------------------------------------------------------- Setup is now ready to begin installing Alfresco Community on your computer. Do you want to continue? [Y/n]:y
---------------------------------------------------------------------------- Please wait while Setup installs Alfresco Community on your computer. Installing 0% ______________ 50% ______________ 100% ######################################### ---------------------------------------------------------------------------- Setup has finished installing Alfresco Community on your computer. View Readme File [Y/n]:n
Launch Alfresco Community Share [Y/n]:y
waiting for server to start....[root@server ~]# done server started /opt/alfresco-5.0.d/postgresql/scripts/ctl.sh : postgresql started at port 5432 Using CATALINA_BASE: /opt/alfresco-5.0.d/tomcat Using CATALINA_HOME: /opt/alfresco-5.0.d/tomcat Using CATALINA_TMPDIR: /opt/alfresco-5.0.d/tomcat/temp Using JRE_HOME: /opt/alfresco-5.0.d/java Using CLASSPATH: /opt/alfresco-5.0.d/tomcat/bin/bootstrap.jar:/opt/alfresco-5.0.d/tomcat/bin/tomcat-juli.jar Using CATALINA_PID: /opt/alfresco-5.0.d/tomcat/temp/catalina.pid Tomcat started. /opt/alfresco-5.0.d/tomcat/scripts/ctl.sh : tomcat started

8. 설치 프로세스가 완료되고 Alfresco 서비스가 시작되면 외부 호스트가 네트워크에서 웹 애플리케이션에 연결할 수 있도록 다음 방화벽 포트를 열기 위해 아래 명령을 실행합니다.
# firewall-cmd --add-port=8080/tcp -permanent # firewall-cmd --add-port=8443/tcp -permanent # firewall-cmd --add-port=7070/tcp -permanent # firewall-cmd --reload
사용자 정의 Alfresco 서비스에 액세스하기 위해 포트를 열기 위해 다른 방화벽 규칙을 추가해야 하는 경우 ss
명령을 사용하여 기기에서 실행 중인 모든 서비스 목록을 가져옵니다.
# ss -tulpn
9. Alfresco 웹 서비스에 액세스하려면 브라우저를 열고 다음 URL을 사용하십시오 (IP 주소 또는 도메인을 해당하는 값으로 대체). 설치 프로세스를 통해 Admin으로 구성된 암호와 함께 관리자 사용자로 로그인하십시오.
http://IP-or-domain.tld:8080/share/


http://IP-or-domain.tld:8080/alfresco/

WebDAV를 위한.
http://IP-or-domain.tld:8080/alfresco/webdav

HTTPS를 위한 보안 예외 수락.
https://IP-or-domain.tld:8443/share/
마이크로소프트와 함께 Alfresco SharePoint 모듈.
http://IP-or-domain.tld:7070/
단계 2: Alfresco를 위한 프론트엔드 웹 서버로 Nginx 구성
10. 시스템에 Nginx 서버를 설치하려면 먼저 아래 명령을 사용하여 CentOS/RHEL에 Epel 저장소를 추가하십시오:
# yum install epel-release
11. Epel 저장소가 시스템에 추가되면 다음 명령을 사용하여 Nginx 웹 서버 설치를 진행하십시오:
# yum install nginx [On RHEL/CentOS Systems] # apt-get install nginx [On Debian/Ubuntu Systems]
12. 다음 단계에서 텍스트 편집기로 /etc/nginx/nginx.conf
에서 Nginx 구성 파일을 열고 다음 변경 사항을 수행하십시오:
location / { proxy_pass http://127.0.0.1:8080; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; }

아래로 이동하여 다음 줄 앞에 #을 넣어 두 번째 위치 문을 주석 처리했는지 확인하십시오:
#location / { # }
13. 완료되면 Nginx 구성 파일을 저장하고 닫고 다음 명령을 사용하여 변경 사항을 반영하기 위해 데몬을 다시 시작하십시오:
# systemctl restart nginx.service
14. Alfresco 웹 인터페이스에 액세스하려면 기계에서 포트 80을 열기 위한 새로운 방화벽 규칙을 추가하고 아래 URL로 이동하십시오. 또한 RHEL/CentOS 시스템에서 Selinux 정책이 비활성화되어 있는지 확인하십시오.
# firewall-cmd --add-service=http -permanent # firewall-cmd --reload # setenforce 0
시스템에서 Selinux 정책을 완전히 비활성화하려면 /etc/selinux/config
파일을 열고 SELINUX 줄을 enforcing
에서 disabled
로 설정하십시오.
15. 이제 Nginx를 통해 Alfresco에 액세스할 수 있습니다.
http://IP-or-domain.tld/share/ http://IP-or-domain.tld/alfresco/ http://IP-or-domain.tld/alfresco/webdav
15. Nginx 프록시를 통해 SSL로 Alfresco 웹 인터페이스를 안전하게 방문하려는 경우, Nginx를 위한 자체 서명된 인증서를 생성하고 /etc/nginx/ssl/
디렉토리에 인증서를 아래 스크린샷에 설명된 대로 사용자 정의 설정으로 채우십시오:
# mkdir /etc/nginx/ssl # cd /etc/nginx/ssl/ # openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout alfresco.key -out alfresco.crt

17. 다음으로 편집을 위해 Nginx 구성 파일을 열고 마지막 닫는 중괄호(}
기호) 앞에 다음 블록을 추가하십시오.
# vi /etc/nginx/nginx.conf
Nginx SSL 블록 발췌:
server { listen 443; server_name _; ssl_certificate /etc/nginx/ssl/alfresco.crt; ssl_certificate_key /etc/nginx/ssl/alfresco.key; ssl on; ssl_session_cache builtin:1000 shared:SSL:10m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!eNULL:!EXPORT:!CAMELLIA:!DES:!MD5:!PSK:!RC4; ssl_prefer_server_ciphers on; access_log /var/log/nginx/ssl.access.log; location / { proxy_pass http://127.0.0.1:8080; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } ## This is the last curly bracket before editing the file. }

18. 변경 사항을 적용하기 위해 Nginx 데몬을 다시 시작하고 443 포트에 대한 새로운 방화벽 규칙을 추가하십시오.
# systemctl restart nginx # firewall-cmd -add-service=https --permanent # firewall-cmd --reload
그리고 브라우저에 HTTPS 프로토콜을 사용하여 도메인 URL로 안내하십시오.
https://IP_or_domain.tld/share/ https://IP_or_domain.tld/alfresco/

19. 시스템 전체에서 Alfresco 및 Nginx 데몬을 활성화하려면 아래 명령을 실행하십시오:
# systemctl enable nginx alfresco
모두입니다! Alfresco는 사용자에게 익숙한 워크플로우를 제공하는 CIFs 프로토콜을 통해 MS Office 및 LibreOffice와 통합을 제공합니다.
Source:
https://www.tecmint.com/install-alfresco-community-edition-on-centos-debian-ubuntu/