douwendu2460
2016-12-03 16:22
浏览 97
已采纳

PHP7.1无法在centos7.2上启动

I am installing PHP 7.1 on centos 7.2, after running yum install php71,start php via this command:

# systemctl start php-fpm

error:

Failed to start php-fpm.service: Unit php-fpm.service failed to load: No such file or directory.

searching php-fpm with find command:

[root@i001 ~]# find / -name php-fpm
/etc/opt/remi/php71/sysconfig/php-fpm  //370Bytes
/opt/remi/php71/root/usr/sbin/php-fpm  //4.21MB
/var/opt/remi/php71/log/php-fpm   //folder
/var/opt/remi/php71/run/php-fpm   //folder

The result of php-v:

-bash: php: command not found

What should I do?

图片转代码服务由CSDN问答提供 功能建议

我在centos 7.2 上安装PHP 7.1 ,\ nafter运行 yum install php71 ,通过以下命令启动 php

  #systemctl start php-fpm 
   
 
 

错误:

 无法启动php-fpm.service:单元php-fpm.service无法加载:没有这样的 文件或目录。
   
 
 

使用 find 命令搜索 php-fpm \ n

  [root @ i001~] #find / -name php-fpm 
 / etc / opt / remi / php71 / sysconfig / php-fpm // 370Bytes 
 / opt / remi / php71 / root  / usr / sbin / php-fpm //4.21MB
/var/opt/remi/php71/log/php-fpm //文件夹
 / var / opt / remi / php71 / run / php-fpm //文件夹 
   
 
 

php-v 的结果:

  -bash:php: 命令未找到
   
 
 

我该怎么办?

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doumao1519 2016-12-04 18:00
    已采纳

    It seems you have installed PHP 7.1 from my repository.

    Please read the Wizard instructions.

    You have choose to use SCL (for parallel installation), perhaps will be simpler to use standard base packages from remi-php71 repository.

    Else, the service name is "php71-php-fpm".

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题