Linux安装PHP扩展包冲突

12 篇文章 0 订阅

扩展包冲突

yum安装PHP-FPM扩展时报错

执行

# yum install php-fpm

报错信息:

Error: php70w-common conflicts with php-common-5.4.16-43.el7_4.1.x86_64

自己PHP的版本是7.0,网上查到linux系统的默认php版本是5.4,如果手动安装扩展,需要指定php的版本号

# yum install php70w-fpm    

控制台输出:

[root@iZbp109iqt20o2h63tpcuvZ dev]# yum install php70w-fpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* webtatic: uk.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package php70w-fpm.x86_64 0:7.0.27-1.w7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================================================
Package                              Arch                            Version                                Repository                          Size
========================================================================================================================================================
Installing:
php70w-fpm                          x86_64                          7.0.27-1.w7                            webtatic                          1.5 M

Transaction Summary
========================================================================================================================================================
Install  1 Package

Total download size: 1.5 M
Installed size: 4.5 M
Is this ok [y/d/N]: y
Downloading packages:
php70w-fpm-7.0.27-1.w7.x86_64.rpm                                                                                                | 1.5 MB  00:00:03    
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : php70w-fpm-7.0.27-1.w7.x86_64                                                                                                        1/1 
  Verifying  : php70w-fpm-7.0.27-1.w7.x86_64                                                                                                        1/1 

Installed:
  php70w-fpm.x86_64 0:7.0.27-1.w7                                                                                                                      

Complete!
[root@iZbp109iqt20o2h63tpcuvZ dev]# 

感谢:

https://stackoverflow.com/questions/23919341/error-php55w-common-conflicts-with-php-common-on-centos-6-5

http://www.mamicode.com/info-detail-2129072.html

FPM操作命令

FPM相关进程查看和操作

ps axo pid,%cpu,%mem,comm |grep php-fpm

ps aux | grep php-fpm

pkill -9 php-fpm

/etc/init.d/php-fpm start

来源

http://blog.csdn.net/boolbo/article/details/51354528

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Crocutax

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值