IronPDF for Java on AWS Elastic Beanstalk
Die Bereitstellung von IronPDF for Java auf AWS Elastic Beanstalk mit dem Amazon Linux 2023 Basisimage erfordert zusätzliche Einrichtung. Amazon Linux 2023 basiert auf Fedora, daher müssen die nativen Abhängigkeiten, auf die IronPDF angewiesen ist, explizit installiert werden, und Tomcat benötigt die Berechtigung, die Engine auszuführen. Beides konfigurieren Sie durch .ebextensions anstatt IronPDF direkt zu installieren.
1. Gewähren Sie Tomcat Zugriff auf die Engine
Fügen Sie eine .ebextensions Konfigurationsdatei hinzu, die Tomcat vollen Zugriff auf das IronPDF-Engine-Verzeichnis gewährt:
01_grant_tomcat_root:
command: chmod -R 777 /usr/share/tomcat10/IronPdfEngine.2024.6.1.Linux.x64/
01_grant_tomcat_root:
command: chmod -R 777 /usr/share/tomcat10/IronPdfEngine.2024.6.1.Linux.x64/
2. Aktualisieren Sie den Paketmanager
Aktualisieren Sie dnf, damit die Abhängigkeitsinstallationen aktuelle Versionen ziehen:
02_update_dnf:
command: dnf update -y
02_update_dnf:
command: dnf update -y
3. Installieren Sie die nativen Abhängigkeiten
IronPDF's Renderer benötigt mehrere Systembibliotheken. Installieren Sie diese und stellen Sie dann den Subprozess als ausführbar ein:
03_install_dependencies:
command: |
dnf -y install glibc-devel
dnf -y install nss
dnf -y install at-spi2-atk
dnf -y install libXcomposite
dnf -y install libXrandr
dnf -y install mesa-libgbm
dnf -y install alsa-lib
dnf -y install pango
dnf -y install cups-libs
dnf -y install libXdamage
dnf -y install libxshmfence
chmod 755 IronCefSubprocess
03_install_dependencies:
command: |
dnf -y install glibc-devel
dnf -y install nss
dnf -y install at-spi2-atk
dnf -y install libXcomposite
dnf -y install libXrandr
dnf -y install mesa-libgbm
dnf -y install alsa-lib
dnf -y install pango
dnf -y install cups-libs
dnf -y install libXdamage
dnf -y install libxshmfence
chmod 755 IronCefSubprocess
Wenn das Engine-Verzeichnis beschreibbar, dnf aktuell und diese Bibliotheken vorhanden sind, läuft IronPDF unter Tomcat auf der Elastic Beanstalk-Instanz. Für die vollständige Abhängigkeitsliste und andere Linux-Ziele siehe den IronPDF Linux-Bereitstellungsleitfaden.


