RHEL/CentOS 7/6 및 Debian 8에 Alfresco Community Edition을 설치하는 방법
Alfresco는 전자 관리, 공동 작업 및 비즈니스 제어 기능을 제공하는 Java로 작성된 오픈 소스 ECM 시스템(엔터프라이즈 콘텐츠 관리)입니다.
이 가이드에서는 RHEL/CentOS 7/6, Debian 8 및 Ubuntu에서 Alfresco Community Edition을 설치하고 구성하는 방법을 다룹니다. 애플리케이션의 프런트엔드 웹 서버로 Nginx 서버를 사용하는 Strong> 시스템입니다.
요구사항
최소 시스템 요구사항과 관련하여 Alfresco에는 최소 4GB의 RAM과 64비트 운영 체제를 갖춘 머신이 필요합니다.
1단계: Alfresco Community Edition 설치
1. Alfresco 설치를 진행하기 전에 먼저 루트 권한으로 또는 루트 계정에서 아래 명령을 실행하여 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. 아래 명령을 실행하여 시스템(이 경우 Postfix 메일 서버)에서 모든 MTA를 제거합니다.
yum remove postfix
apt-get remove postfix
4. 제대로 실행하려면 Alfresco 소프트웨어에 필요한 다음 종속성을 설치하십시오.
yum install fontconfig libSM libICE libXrender libXext cups-libs
apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2
5. 다음으로 sourceforge.net 포털에 호스팅된 Alfresco Community Edition 저장소 페이지로 이동하여 최신 바이너리 버전(예: alfresco-community-5.0.d-installer-linux-x64.bin)을 가져옵니다. ) Linux의 경우 wget 유틸리티를 사용합니다.
wget http://nchc.dl.sourceforge.net/project/alfresco/Alfresco%205.0.d%20Community/alfresco-community-5.0.d-installer-linux-x64.bin
6. 바이너리 파일 다운로드가 완료되면 다음 명령을 실행하여 파일에 대한 실행 권한을 부여하고 야외 설치 프로그램을 실행합니다.
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
야외 설치가 계속됩니다…
----------------------------------------------------------------------------
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 주소 또는 도메인을 적절하게 바꾸십시오). 설치 프로세스를 통해 관리자용으로 구성된 비밀번호와 관리자 사용자로 로그인하십시오.
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/
Microsoft와 Alfresco SharePoint 모듈.
http://IP-or-domain.tld:7070/
2단계: Nginx를 Alfresco용 프런트엔드 웹 서버로 구성
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. SSL을 사용하는 Nginx 프록시를 통해 Alfresco 웹 인터페이스를 안전하게 방문하려면 /etc/nginx/ssl/
디렉토리에 Nginx용 자체 서명 인증서를 생성하고 아래 스크린샷에 표시된 대로 인증서를 사용자 정의 설정으로 채우십시오.
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는 CIF 프로토콜을 통해 MS Office 및 LibreOffice와의 통합을 제공하여 사용자에게 친숙한 작업 흐름을 제공합니다.