Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
$ amazon-linux-extras
Panelcode
 0  ansible2   disabled  [ =2.4.2 ]
  1  emacs   disabled  [ =25.3 ]
  2  memcached1.5   disabled  [ =1.5.1 ]
  3  nginx1.12   disabled  [ =1.12.2 ]
  4  postgresql9.6   disabled  [ =9.6.6 ]
  5  python3   disabled  [ =3.6.2 ]
  6  redis4.0   disabled  [ =4.0.5 ]
  7  R3.4   disabled  [ =3.4.3 ]
  8  rust1   disabled  [ =1.22.1 ]
  9  vim   disabled  [ =8.0 ]
 10  golang1.9   disabled  [ =1.9.2 ]
 11  ruby2.4   disabled  [ =2.4.2 ]
 12  nano   disabled  [ =2.9.1 ]
 13  php7.2   disabled  [ =7.2.0 ]
 14  lamp-mariadb10.2-php7.2   disabled  [ =10.2.10_7.2.0 ]

...

설치가 완료되었다면 amazon-linux-extras 를 옵션없이 실행하면 해당 패키지의 저장소 목록이 enabled 로 변경된 것을 확인할 수 있습니다.


Panelcode
0 ansible2 disabled [ =2.4.2 ]


1 emacs disabled [ =25.3 ]


2 memcached1.5 disabled [ =1.5.1 ]


3 nginx1.12=latest enabled [ =1.12.2 ]


4 postgresql9.6 disabled [ =9.6.6 ]


5 python3=latest enabled [ =3.6.2 ]


6 redis4.0 disabled [ =4.0.5 ]


7 R3.4 disabled [ =3.4.3 ]


8 rust1 disabled [ =1.22.1 ]


9 vim disabled [ =8.0 ]


10 golang1.9 disabled [ =1.9.2 ]


11 ruby2.4 disabled [ =2.4.2 ]


12 nano disabled [ =2.9.1 ]


13 php7.2=latest enabled [ =7.2.0 ]


14 lamp-mariadb10.2-php7.2 disabled [ =10.2.10_7.2.0 ]


저장소 설치가 완료되면 extra에 있는 패키지가 시스템의 기본 패키지가 되므로 버전을 명시하지 않아도 됩니다.

...

라라벨을 위한 PHP 패키지 설치

Code Block
languagebash
$ sudo yum install php-cli php-common php-gd php-mbstring  php-mysqlnd php-pdo php-fpm php-xml php-opcache php-zip php-bcmath

설치가 끝나면 yum list installed 명령어로 설치된 패키지를 확인할 수 있습니다.

Code Block
languagebash
$ yum list installed|grep php

Code Block
languagebash
php-cli.x86_64                    7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-common.x86_64                 7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-fpm.x86_64                    7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-gd.x86_64                     7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-json.x86_64                   7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-mbstring.x86_64               7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-mysqlnd.x86_64                7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-opcache.x86_64                7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-pdo.x86_64                    7.2.0-3.amzn2.1          @amzn2extra-php7.2
php-xml.x86_64                    7.2.0-3.amzn2.1          @amzn2extra-php7.2

...