CI4

서버에 composer 설치 방법

으누아빠 2021. 8. 10. 12:08
반응형

서버에 composer 설치방법




curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer



test@webserver1:~$ composer --version
Composer version 2.1.5 2021-07-23 10:35:47


root 에서에서 composer를 실행할경우 아래의 내용이 노출됨


root@webserver1:~# composer --version
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Composer version 2.1.5 2021-07-23 10:35:47