tuto:linux_divers:install_alfresco_el7

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tuto:linux_divers:install_alfresco_el7 [13/12/2018 18:05]
dani créée
tuto:linux_divers:install_alfresco_el7 [08/01/2019 12:01] (Version actuelle)
dani
Ligne 7: Ligne 7:
  
 <code bash> <code bash>
-wget //download.alfresco.com/release/community/201707-build-00028/alfresco-community-installer-201707-linux-x64.bin+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 chmod +x alfresco-community-installer-201707-linux-x64.bin
 ./alfresco-community-installer-201707-linux-x64.bin ./alfresco-community-installer-201707-linux-x64.bin
 +</code>
 +
 +<code bash>
 +systemctl enable alfresco
 +</code>
 +
 +  * Convertir le certificat p12 en pem
 +
 +<code bash>
 +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
 +</code>
 +
 +  * Créer les rep pour les dumps
 +
 +<code bash>
 +mkdir -p /opt/alfresco-community/dumps/{solr4,db}
 +</code>
 +
 +  * Pour backup
 +<code bash>
 +# 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
 +</code>
 +
 +  * É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)
 +
 +<code xml>
 +    <Connector port="8080" URIEncoding="UTF-8" protocol="HTTP/1.1"
 +               connectionTimeout="20000"
 +               redirectPort="8443" maxHttpHeaderSize="32768" 
 +               scheme="https" proxyName="alfresco.domain.tld" proxyPort="443" />
 +</code>
 +  * Éditez /opt/alfresco-community/tomcat/shared/classes/alfresco-global.properties pour déclarer le port, le scheme et le nom du service public
 +<code ini>
 +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
 </code> </code>
  
  
 +===== Ressources =====
 +  * https://blyx.com/2013/11/18/running-the-alfresco-solr-backup-from-the-command-line/
  • tuto/linux_divers/install_alfresco_el7.1544720708.txt.gz
  • Dernière modification: 13/12/2018 18:05
  • de dani