Bii a ṣe le Fi sii Alfresco Community Edition lori RHEL/CentOS 7/6 ati Debian 8


Alfresco jẹ orisun ṣiṣi ECM eto (Idawọle Akoonu Idawọle) ti a kọ ni Java eyiti o pese iṣakoso itanna, ifowosowopo ati iṣakoso iṣowo.

Itọsọna yii yoo bo bii o ṣe le fi sori ẹrọ ati tunto Alfresco Community Edition lori RHEL/CentOS 7/6, Debian 8 ati awọn ọna Ubuntu pẹlu olupin Nginx bi olupin wẹẹbu iwaju fun ohun elo naa.

Bi fun awọn ibeere eto ti o kere julọ, Alfresco nilo ẹrọ kan pẹlu o kere ju 4 GB ti Ramu ati 64-bit Ẹrọ Ṣiṣẹ.

Igbesẹ 1: Fi sori ẹrọ Alfresco Community Edition

1. Ṣaaju ki o to tẹsiwaju pẹlu fifi sori Alfresco ni idaniloju akọkọ pe a ti fi ohun elo wget sori ẹrọ rẹ nipasẹ ipinfunni aṣẹ isalẹ pẹlu awọn anfani root tabi lati akọọlẹ gbongbo.

# yum install wget
# apt-get install wget

2. Nigbamii, ṣeto orukọ orukọ olupin rẹ ki o rii daju pe ipinnu awọn agbegbe si Adirẹsi IP olupin rẹ nipa fifun awọn ofin wọnyi:

# hostnamectl set-hostname server.alfresco.lan
# echo “192.168.0.40 server.alfresco.lan” >> /etc/hosts

3. Yọ eyikeyi MTA kuro ninu ẹrọ naa (ninu idi eyi olupin olupin ifiweranse Postfix) nipa ipinfunni aṣẹ isalẹ:

# yum remove postfix
# apt-get remove postfix

4. Fi awọn igbẹkẹle wọnyi ti o nilo nipasẹ sọfitiwia Alfresco lati le ṣiṣẹ daradara:

# yum install fontconfig libSM libICE libXrender libXext cups-libs
# apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2

5. Itele, lọ si wget IwUlO.

# wget http://nchc.dl.sourceforge.net/project/alfresco/Alfresco%205.0.d%20Community/alfresco-community-5.0.d-installer-linux-x64.bin

6. Lẹhin igbasilẹ faili alakomeji pari, gbekalẹ aṣẹ atẹle lati fun awọn igbanilaaye ipaniyan fun faili naa ati ṣiṣe oluṣeto alfresco.

# chmod +x alfresco-community-5.0.d-installer-linux-x64.bin
# ./alfresco-community-5.0.d-installer-linux-x64.bin

7. Lẹhin ti ilana fifi sori ẹrọ bẹrẹ, yan ede naa ki o tẹsiwaju ilana fifi sori ẹrọ nipa lilo oluṣeto fifi sori isalẹ bi itọsọna lati ṣatunṣe Alfresco:

 ./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

Onimọ Fifi sori Alfresco Tesiwaju….

----------------------------------------------------------------------------
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

Fifi sori Alfresco Tesiwaju…

----------------------------------------------------------------------------
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]

----------------------------------------------------------------------------

Eto Fifi sori Alfresco Tesiwaju ..

----------------------------------------------------------------------------
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....  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. Lẹhin ilana fifi sori ẹrọ pari ati pe awọn iṣẹ Alfresco ti bẹrẹ ipinfunni awọn ofin isalẹ lati le ṣii awọn ibudo ogiriina atẹle lati gba awọn ogun ita ni nẹtiwọọki rẹ lati sopọ si ohun elo wẹẹbu.

# firewall-cmd --add-port=8080/tcp -permanent
# firewall-cmd --add-port=8443/tcp -permanent
# firewall-cmd --add-port=7070/tcp -permanent
# firewall-cmd --reload

Ni ọran ti o nilo lati ṣafikun awọn ofin ogiriina miiran lati ṣii awọn ibudo lati wọle si aṣa awọn iṣẹ Alfresco ṣe agbejade aṣẹ ss lati gba atokọ ti gbogbo awọn iṣẹ ti n ṣiṣẹ lori ẹrọ rẹ.

# ss -tulpn

9. Lati wọle si awọn iṣẹ wẹẹbu Alfresco, ṣii ẹrọ lilọ kiri ayelujara kan ki o lo awọn URL wọnyi (rọpo Adirẹsi IP tabi aaye ni ibamu). Wọle pẹlu olumulo abojuto ati tunto ọrọ igbaniwọle fun Abojuto nipasẹ ilana fifi sori ẹrọ.

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

Fun WebDAV.

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

Fun HTTPS gba iyasọtọ aabo.

https://IP-or-domain.tld:8443/share/ 

Alfresco SharePoint Module pẹlu Microsoft.

http://IP-or-domain.tld:7070/

Igbesẹ 2: Tunto Nginx gegebi Olupin Wẹẹbu Frontend fun Alfresco

10. Ni ibere lati fi sori ẹrọ olupin Nginx lori eto naa, kọkọ ṣafikun Awọn ibi ipamọ Epel lori CentOS/RHEL nipa fifiranṣẹ aṣẹ isalẹ:

# yum install epel-release

11. Lẹhin ti a fi kun awọn apo-iwe Epel sinu eto tẹsiwaju pẹlu fifi sori ẹrọ olupin wẹẹbu Nginx nipa ipinfunni aṣẹ atẹle:

# yum install nginx       [On RHEL/CentOS Systems]
# apt-get install nginx   [On Debian/Ubuntu Systems]  

12. Ni igbesẹ ti n tẹle ṣii faili iṣeto Nginx lati /etc/nginx/nginx.conf pẹlu olootu ọrọ kan ki o ṣe awọn ayipada wọnyi:

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;
    }

Lọ si isalẹ ki o rii daju pe o ṣalaye alaye ipo keji nipa gbigbe # si iwaju awọn ila wọnyi:

#location / {
#        }

13. Lẹhin ti o ti pari, fipamọ ati pa faili iṣeto ni Nginx ki o tun bẹrẹ daemon lati ṣe afihan iyipada nipa fifun pipaṣẹ wọnyi:

# systemctl restart nginx.service

14. Lati le ni iraye si oju opo wẹẹbu Alfresco ṣafikun ofin ogiriina tuntun lati ṣii ibudo 80 lori ẹrọ rẹ ki o lọ kiri si URL isalẹ. Paapaa, rii daju pe eto imulo Selinux jẹ alaabo lori awọn eto RHEL/CentOS.

# firewall-cmd --add-service=http -permanent
# firewall-cmd --reload
# setenforce 0

Lati mu eto imulo Selinux kuro patapata lori eto naa, ṣii /etc/selinux/config faili ki o ṣeto ila SELINUX lati imuṣẹ si alaabo .

15. Bayi o le wọle si Alfresco nipasẹ Nginx.

 http://IP-or-domain.tld/share/ 
 http://IP-or-domain.tld/alfresco/
 http://IP-or-domain.tld/alfresco/webdav 

15. Ni ọran ti o fẹ lati ṣabẹwo si oju opo wẹẹbu Alfresco lailewu nipasẹ aṣoju Nginx pẹlu SSL, ṣẹda Ijẹrisi Iforukọsilẹ ti Ara ẹni fun Nginx lori itọsọna /etc/nginx/ssl/ ki o fọwọsi ijẹrisi naa pẹlu awọn eto aṣa rẹ bi a ṣe ṣalaye lori sikirinifoto ni isalẹ:

# mkdir /etc/nginx/ssl
# cd /etc/nginx/ssl/
# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout alfresco.key -out alfresco.crt

San ifojusi si Orukọ Wọpọ Ijẹrisi lati baamu orukọ ile-iṣẹ ibugbe rẹ.

17. Nigbamii, ṣii faili iṣeto Nginx fun ṣiṣatunkọ ki o ṣafikun bulọọki atẹle ṣaaju akọmọ iṣupọ ipari ti o kẹhin (aami } ).

# vi /etc/nginx/nginx.conf

Nginx SSL Àkọsílẹ iyasọtọ:

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. Ni ipari, tun bẹrẹ Nginx daemon lati lo awọn ayipada, ṣafikun ofin ogiriina tuntun fun ibudo 443.

# systemctl restart nginx
# firewall-cmd -add-service=https --permanent
# firewall-cmd --reload

ki o si kọ ẹrọ aṣawakiri si URL ibugbe rẹ nipa lilo ilana HTTPS.

https://IP_or_domain.tld/share/
https://IP_or_domain.tld/alfresco/

19. Lati le jẹki Alfresco ati Nginx daemons eto-jakejado ṣiṣe aṣẹ isalẹ:

# systemctl enable nginx alfresco

Gbogbo ẹ niyẹn! Alfresco nfunni ni iṣọpọ pẹlu MS Office ati LibreOffice nipasẹ ilana CIFs ti n pese iṣan-iṣẹ iṣanmọ fun awọn olumulo.