2023. 7. 20. 18:26ㆍAWS
출처: <https://dev.to/alexandrefreire/install-composer-on-amazon-ami-running-on-ec2-10a6>
sudo curl -sS https://getcomposer.org/installer | sudo php
# curl -sS 옵션 = curl --silent --show-error
# Run curl in silent mode, and show no output unless there is an error.
All settings correct for using Composer
Downloading...
Composer (version 2.5.4) successfully installed to: /home/ec2-user/composer.phar
Use it: php composer.phar
sudo mv composer.phar /usr/local/bin/composer
sudo ln -s /usr/local/bin/composer /usr/bin/composer
sudo composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Composer could not find a composer.json file in /home/ec2-user
To initialize a project, please create a composer.json file. See https://getcomposer.org/basic-usage
'AWS' 카테고리의 다른 글
AWS EC2 그누보드 설치 (0) | 2023.07.21 |
---|---|
[EC2 Laravel8] storage/logs/laravel.log" could not be opened in append mod (0) | 2023.07.20 |
[EC2] 사용자별 홈 디렉토리 설정, 가상호스트 설정 (0) | 2023.07.20 |
[EC2] 사용자 추가 및 키 생성 (0) | 2023.07.20 |
Elastic Beanstalk root directory (EBS 루트 디렉토리) (0) | 2023.07.18 |