Gestión Documental

=> Base de Datos Documental -> alfresco community

=> Clon rhel8 (KVM). <- Si utilizas virtualización de este tipo !!!.

hp ~ # virt-clone –original rhel8 –name alfresco-rhel8 –auto-clone


=> Inicio Post-virtualización:

=> Instalación de alfresco:

alfresco-rhel8 ~ # dnf remove postfix # La mensajeria la administra alfresco.

alfresco-rhel8 ~ # dnf install fontconfig libSM libICE libXrender libXext cups-libs

alfresco-rhel8 ~ # cd /tmp/

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

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

alfresco-rhel8 tmp # ./alfresco-community-5.0.d-installer-linux-x64.bin

alfresco-rhel8 tmp # rm -fr * # Eliminamos rastros.

=> Visualizar en navegador → puerto 8080/tcp → Permitido previamente para firewalld.

http://192.168.10.161:8080/share/page

alfresco-rhel8 tmp # systemctl status alfresco.service

alfresco.service – LSB: Start/stop Alfresco

Loaded: loaded (/etc/rc.d/init.d/alfresco; generated)

Active: inactive (dead)

Docs: man:systemd-sysv-generator(8)

alfresco-rhel8 tmp # netstat -nltp

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 3858/postgres

tcp 0 0 127.0.0.1:44321 0.0.0.0:* LISTEN 1653/pmcd

tcp 0 0 127.0.0.1:8100 0.0.0.0:* LISTEN 4109/.soffice.bin

tcp 0 0 127.0.0.1:4330 0.0.0.0:* LISTEN 2364/pmlogger

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1070/sshd

tcp6 0 0 ::1:5432 :::* LISTEN 3858/postgres

tcp6 0 0 :::8443 :::* LISTEN 3885/java

tcp6 0 0 :::445 :::* LISTEN 3885/java

tcp6 0 0 :::7070 :::* LISTEN 3885/java

tcp6 0 0 ::1:44321 :::* LISTEN 1653/pmcd

tcp6 0 0 127.0.0.1:8005 :::* LISTEN 3885/java

tcp6 0 0 :::8009 :::* LISTEN 3885/java

tcp6 0 0 ::1:4330 :::* LISTEN 2364/pmlogger

tcp6 0 0 :::139 :::* LISTEN 3885/java

tcp6 0 0 :::37391 :::* LISTEN 3885/java

tcp6 0 0 :::8080 :::* LISTEN 3885/java

tcp6 0 0 :::22 :::* LISTEN 1070/sshd

=> Enlazamos con la versión específica de la BB. DD. de alfresco → 9.x:

alfresco-rhel8 alfresco-5.0.d # ln -s /opt/alfresco-5.0.d/postgresql/bin/psql /usr/bin/psql-9

alfresco-rhel8 alfresco-5.0.d # psql-9 -l

Password:

List of databases

Name | Owner | Encoding | Collate | Ctype | Access privileges

———–+———-+———-+————-+————-+———————–

alfresco | alfresco | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 |

postgres | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 |

template0 | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 | =c/postgres +

| | | | | postgres=CTc/postgres

template1 | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 | =c/postgres +

| | | | | postgres=CTc/postgres

(4 rows)

Ahora podemos hacer:

alfresco-rhel8 alfresco-5.0.d # su – postgres

[postgres@alfresco-rhel8 ~]$ psql-9

Password:

psql.bin (9.3.6) <== Ojo a esta versión !!.

Type «help» for help.

postgres=# \du

List of roles

Role name | Attributes | Member of

———–+————————————————+———–

alfresco | | {}

postgres | Superuser, Create role, Create DB, Replication | {}

postgres=# \l

List of databases

Name | Owner | Encoding | Collate | Ctype | Access privileges

———–+———-+———-+————-+————-+———————–

alfresco | alfresco | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 |

postgres | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 |

template0 | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 | =c/postgres +

| | | | | postgres=CTc/postgres

template1 | postgres | UTF8 | es_ES.UTF-8 | es_ES.UTF-8 | =c/postgres +

| | | | | postgres=CTc/postgres

(4 rows)

Actualmente alfresco funciona en Systemd pero con script’s de SystemV:

alfresco-rhel8 ~ # /etc/rc.d/init.d/alfresco status

tomcat already running

postgresql already running

alfresco-rhel8 ~ # systemctl status alfresco.service

alfresco.service – LSB: Start/stop Alfresco

Loaded: loaded (/etc/rc.d/init.d/alfresco; generated)

Active: active (running) since Wed 2022-03-23 10:37:02 CET; 1 day 3h ago

Docs: man:systemd-sysv-generator(8)

Tasks: 148 (limit: 37463)

Memory: 1.6G

CGroup: /system.slice/alfresco.service

├─2638 /opt/alfresco-5.0.d/java/bin/java -Djava.util.logging.config.file=/opt/alfresco-5.0.d/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms512M >

├─3295 /opt/alfresco-5.0.d/libreoffice/program/oosplash –accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager -env:UserInstallation=file:///opt/alfresco-5.0.d/alf_data/oouser –headl>

└─3352 /opt/alfresco-5.0.d/libreoffice/program/.soffice.bin -env:UserInstallation=file:///opt/alfresco-5.0.d/alf_data/oouser –accept=socket,host=127.0.0.1,port=8100;urp;StarOffice.ServiceManager –h>

mar 23 10:36:52 alfresco-rhel8.cadilinea.lan alfresco[1302]: /opt/alfresco-5.0.d/postgresql/scripts/ctl.sh : postgresql started at port 5432

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using CATALINA_BASE: /opt/alfresco-5.0.d/tomcat

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using CATALINA_HOME: /opt/alfresco-5.0.d/tomcat

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using CATALINA_TMPDIR: /opt/alfresco-5.0.d/tomcat/temp

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using JRE_HOME: /opt/alfresco-5.0.d/java

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using CLASSPATH: /opt/alfresco-5.0.d/tomcat/bin/bootstrap.jar:/opt/alfresco-5.0.d/tomcat/bin/tomcat-juli.jar

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Using CATALINA_PID: /opt/alfresco-5.0.d/tomcat/temp/catalina.pid

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: Tomcat started.

mar 23 10:37:00 alfresco-rhel8.cadilinea.lan alfresco[1302]: /opt/alfresco-5.0.d/tomcat/scripts/ctl.sh : tomcat started

mar 23 10:37:02 alfresco-rhel8.cadilinea.lan systemd[1]: Started LSB: Start/stop Alfresco.

BIBLIOGRAFIA:

https://es.linux-console.net/?p=1308

cba (c) 2022

0