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

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?

  • 写回答

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".

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 limma多组间分析最终p值只有一个
  • ¥15 nopCommerce开发问题
  • ¥15 torch.multiprocessing.spawn.ProcessExitedException: process 1 terminated with signal SIGKILL
  • ¥15 QuartusⅡ15.0编译项目后,output_files中的.jdi、.sld、.sof不更新怎么解决
  • ¥15 pycharm输出和导师的一样,但是标红
  • ¥15 想问问富文本拿到的html怎么转成docx的
  • ¥15 我看了您的文章,遇到了个问题。
  • ¥15 GitHubssh虚拟机连接不上
  • ¥15 装完kali之后下载Google输入法 重启电脑后出现以下状况 且退不出去 桌面消失 反复重启没用
  • ¥15 ESP-IDP-BLE配网连接wifi