tuto:linux_divers:install_alfresco_el7

Install Alfresco on EL7

yum install fontconfig libSM libICE libXrender libXext cups-libs libGLU cairo mesa-libGL-devel
wget http://download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin
chmod +x alfresco-community-installer-201707-linux-x64.bin
./alfresco-community-installer-201707-linux-x64.bin
systemctl enable alfresco
  • Convertir le certificat p12 en pem
echo alfresco | openssl pkcs12 -in /opt/alfresco-community/alf_data/keystore/browser.p12 -passin stdin -out /opt/alfresco-community/alf_data/keystore/browser.pem -nodes
  • Créer les rep pour les dumps
mkdir -p /opt/alfresco-community/dumps/{solr4,db}
  • Pour backup
# Backup Solr4 indexes
curl -k --cert /opt/alfresco-community/alf_data/keystore/browser.pem:alfresco "https://localhost:8443/solr4/alfresco/replication?command=backup&location=/opt/alfresco-community/dumps/solr4/alfresco&numberToKeep=1"
curl -k --cert /opt/alfresco-community/alf_data/keystore/browser.pem:alfresco "https://localhost:8443/solr4/archive/replication?command=backup&location=/opt/alfresco-community/dumps/solr4/archive&numberToKeep=1"
 
# Some time for Solr4 to finish backups
sleep 600
 
# Backup PG
PGPASSWORD='p@ssw0rd' /usr/pgsql-11/bin/pg_dump \
  --clean \
  --create \
  --username=alfresco \
  --host=localhost \
  alfresco | pxz -c > /opt/alfresco-community/dumps/db/alfresco.sql.xz
 
# Now backup /opt/alfresco-community/alf_data/contentstore and /opt/alfresco-community/dumps/ the way you want
  • Éditer /opt/alfresco-community/tomcat/conf/server.xml et modifiez le connecteur http à l'écoute sur le port 8080 (si vous avez un proxy frontal)
    <Connector port="8080" URIEncoding="UTF-8" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" maxHttpHeaderSize="32768" 
               scheme="https" proxyName="alfresco.domain.tld" proxyPort="443" />
  • Éditez /opt/alfresco-community/tomcat/shared/classes/alfresco-global.properties pour déclarer le port, le scheme et le nom du service public
alfresco.context=alfresco
alfresco.host=alfresco.domain.tld
alfresco.port=443
alfresco.protocol=https
 
share.context=share
share.host=alfresco.domain.tld
share.port=443
share.protocol=https
  • tuto/linux_divers/install_alfresco_el7.txt
  • Dernière modification: 08/01/2019 12:01
  • de dani