티스토리 뷰
EPEL 저장소 셋팅
yum install epel-release -y
REMI 저장소 셋팅
RHEL 7/CentOS 7
rpm -Uvh http://mirror.premi.st/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
RHEL 6/CentOS 6
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
RHEL 5/CentOS 5
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
PHP 설치시 --enablerepo=remi 생략법
PHP 5.6 을 CentOS 6 에 설치하는 레퍼런스를 구글링해서 찾으면 대개
$ yum install -y php-fpm php php-devel php-mysql --enablerepo=remi-php56
와 같이 사용 저장소=remi-php56 과 같이 명령마다 번거롭게 해야하는데
생략하는 방법은
$ vi /etc/yum.repos.d/remi.repo
각 [섹션] 항목 중 사용할 저장소는 enabled=1 로 수정 하는것.
예) PHP 5.6 사용시는
[remi-php56]
......
enabled=1
......
이후부터는
$ yum install -y php php-fpm php-devel php-mysql
과 같이 명령을 주면 최신버젼이 설치된다.
참고
- https://www.lesstif.com/pages/viewpage.action?pageId=6979743
- https://lowendbox.com/blog/php-on-centos-7-php-fpm/
'OS-서버-서비스 > Linux' 카테고리의 다른 글
암호 없이 ssh-keygen & ssh-copy-id 사용하여 SSH 로그인 수행 3단계 (0) | 2016.11.24 |
---|---|
ubuntu 설치된 패키지 목록 검색 (0) | 2016.11.11 |
CentOS 6 에 Nginx 1.9.x mainline 버젼 설치 (0) | 2016.04.06 |
CentOS 에 PHP FPM 5.6 설치 (0) | 2016.04.06 |
CentOS NginX 403 Forbidden error 해결 (3) | 2015.12.08 |
- Total
- Today
- Yesterday
- Wordpress
- laravel
- nginx
- iis
- Prototype
- Android
- mssql
- nodejs
- macos
- javascript
- classic asp
- Linux
- PHP
- API
- centos
- Docker
- git
- sencha touch
- iphone
- 한글
- IE
- JQuery
- ASP
- Mac
- IOS
- 안드로이드
- Debug
- CSS
- 워드프레스
- JSON
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |