history命令歷史
8 yum provides php
#自帶的只有5.4版本
9 rpm -Uvh https://mirror
.webtatic
.com/yum/el7/epel-release
.rpm
#更新源
10 rpm -Uvh https://mirror
.webtatic
.com/yum/el7/webtatic-release
.rpm
11 yum remove php-common -
y
#移除系統自帶的php-common
12 yum install -
y php56w php56w-opcache php56w-xml php56w-mcrypt php56w-gd php56w-devel php56w-mysql php56w-intl php56w-mbstring
#安裝依賴包
13 php -v
#版本變為5.6
14
yum provides php-fpm
#因為我是准備搭建lnmp,所以安裝php-fpm,這里會提示多個安裝源,選擇5.6版本的安裝就可以了
15 yum install php56w-fpm-
5.6
.31-
1.w7
.x86_64 -
y