91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

yum 安裝php7和相關擴展

發布時間:2020-08-19 21:56:28 來源:網絡 閱讀:1268 作者:Benyod 欄目:web開發

【radhat yum 源】


rpm -aq|grep yum|xargs rpm -e --nodeps 


wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-3.2.29-73.el6.centos.noarch.rpm 

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm


安裝下載的應用

rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm

rpm -ivh yum-3.2.29-73.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-37.el6.noarch.rpm



新建/etc/yum.repos.d/centos.repo


[base]

name=CentOS-$releasever - Base

baseurl=http://mirrors.163.com/centos/6/os/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6


#released updates

[updates]

name=CentOS-$releasever - Updates

baseurl=http://mirrors.163.com/centos/6/updates/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6


[extras]

name=CentOS-$releasever - Extras

baseurl=http://mirrors.163.com/centos/6/extras/$basearch/

gpgcheck=1

gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/

gpgcheck=1

enabled=0









【centos  yum 源】

安裝php7和相關擴展


rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm    

rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm   (nginx)

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm



備注:如果發現上面三行有的執行不成功;可以先通過wget獲取包,然后在rpm;

例如:rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm    

(1) wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm    

(2) rpm -Uvh  epel-release-6-8.noarch.rpm    


1.cd /etc/yum.repos.d

2.nano remi.repo 

>>>>

[remi-php55]

name=Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - $basearch

#baseurl=http://rpms.remirepo.net/enterprise/6/php55/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/6/php55/mirror

# NOTICE: common dependencies are in "remi-safe"

enabled=1

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

>>>>>

將enabled設置為0;


3.nano remi.repo 

   >>>

[remi-php70]

name=Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - $basearch

#baseurl=http://rpms.remirepo.net/enterprise/6/php70/$basearch/

mirrorlist=http://rpms.remirepo.net/enterprise/6/php70/mirror

enabled=0

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi

>>>>>

將enabled設置為1;



4.安裝擴展:

yum install php-solr php-opcache php-seasLog php-mysqlnd php-hprose php-mbstring php-mcrypt php-mongodb php-mysqli php-gd php-dom php-apc php-memcache php-redis


service php-fpm restart && service nginx restart



卸載多余的應用:

yum groupremove "KDE 桌面" "通用桌面"  "Java 平臺"  "互聯網瀏覽器"  "辦公套件和生產率" "Java 平臺" "互聯網應用程序" "圖形生成工具" "圖形管理工具" "打印客戶端"  "桌面調試和運行工具"  "目錄客戶端" "電子郵件服務器" "MySQL 數據庫客戶端" "MySQL 數據庫服務器”




向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

鹤峰县| 宁乡县| 监利县| 大名县| 金华市| 武定县| 岱山县| 东乌| 三亚市| 南丹县| 新和县| 阳朔县| 柘荣县| 昆明市| 新沂市| 怀集县| 白沙| 五河县| 清流县| 县级市| 司法| 石台县| 蒙城县| 南京市| 新平| 崇文区| 宁明县| 平阴县| 邵东县| 漠河县| 佛坪县| 阳朔县| 安新县| 麻城市| 中阳县| 云龙县| 唐山市| 丘北县| 鄂尔多斯市| 汝城县| 通渭县|