1. curl 설치하기

1
sudo apt install curl
cs


1
curl -V
cs



2. composer 설치하기


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

 

3. 심볼릭 링크 설정하기 

1
sudo ln -s /usr/local/bin/composer.phar /usr/local/bin/composer
cs


4. 컴포저 버전확인

1
composer --version
cs


5. Do not run Composer as root/super 에러메시지 해결(슈퍼유저 허용)

1
 export COMPOSER_ALLOW_SUPERUSER=1
cs

6. 계속 사용

1
echo "export COMPOSER_ALLOW_SUPERUSER=1" >> ~/.bashrc
cs


7. php7.2 문제해결 unzip 설치하기 

1
apt-get install zip unzip php-zip
cs


+ Recent posts