Vagrant提供PHP 7.1 FPM的问题

在Vagrant中使用一个非常简单的provision.sh文件来安装nginx和php fpm

#!/bin/bash yum -y install nginx php71-fpm sed -i 's/apache/nginx/g' /etc/php-fpm-7.1.d/www.conf service nginx start chkconfig nginx on chkconfig php-fpm on service php-fpm start 

当configuration开始php fpm我得到以下错误:

 Starting php-fpm-7.1: [21-Sep-2017 10:44:36] ERROR: [pool www] failed to write the ACL of the socket '/var/run/php-fpm/www.sock': Invalid argument (22) [21-Sep-2017 10:44:36] ERROR: FPM initialization failed 

如果我使用vagrant sshlogin到stream浪者机器并执行以下操作:

 sudo su yum remove php71-fpm yum install php71-fpm service php-fpm start 

一切工作正常,它只是不通过stream浪汉提供工作!

Starting php-fpm-7.1: [ OK ]