Ich laufe auf ein Problem, das PM2 global auf aws elastischen Bohnenstalk installiert. Ich habe das folgende Skript für die Installation von PM2:npm globale Installation auf elastischen Bohnenstange
option_settings:
- option_name: NODE_ENV
value: production
container_commands:
01_enable_rootaccess:
command: echo Defaults:root \!requiretty >> /etc/sudoers
02_install_imagemagic:
command: yum install -y ImageMagick
03_download_new_relic:
command: rpm -Uvh http://download.newrelic.com/pub/newrelic/el5/i386/newrelic-repo-5-3.noarch.rpm
ignoreErrors: true
04_install_new_relic:
command: yum install -y newrelic-sysmond
ignoreErrors: true
05_add_license_key:
command: /usr/sbin/nrsysmond-config --set license_key=xxxxxxx
ignoreErrors: true
06_start_new_relic:
command: /etc/init.d/newrelic-sysmond start
ignoreErrors: true
07_install_pm2:
command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/npm install pm2 -g
ignoreErrors: true
08_stop_old_pm2_processes:
command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/pm2 delete all
ignoreErrors: true
09_start_pm2:
command: sudo /opt/elasticbeanstalk/node-install/node-v0.10.26-linux-x64/bin/pm2 startup -u ec2-user
ignoreErrors: true
ich versucht habe, mit nur ‚PM2 löschen all‘ und ‚PM2 startup‘ für Befehle 8 & 9 put bekomme ich nur Befehl nicht gefunden. wenn ich den spezifischen Pfad zu PM2 gebe (ich habe mich an der ec2 angemeldet und verifiziert), bekomme ich "Zeile 4: exec:: nicht gefunden". Irgendeine Idee, was ich hier falsch mache? Vielen Dank im Voraus für Ihre Hilfe!