- 安裝 epel repository、remi repository
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
說明:
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm => 64 bit
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm => 32 bit - 安裝 apache、mysql、php
yum --enablerepo=remi install httpd yum --enablerepo=remi install mysql-server yum --enablerepo=remi install php yum --enablerepo=remi install php-mysql
其他,安裝 php-mbstring
yum --enablerepo=remi install php-mbstring
- 若不想每次都輸入 --enablerepo=remi,可修改 /etc/yum.repos.d/remi.repo,將 remi 開啟
vi /etc/yum.repos.d/remi.repo
將 enabled=0 改為 enabled=1
[參考]
http://linuxdrops.com/how-to-add-epel-and-remi-repository-to-centos/
可供 CentOS 使用的軟件庫
[補充說明]
EPEL repository:http://download.fedoraproject.org/pub/epel/
REMI repository:http://rpms.famillecollet.com/enterprise/
可找到最新的對應版本。
沒有留言:
張貼留言