安装宅基箱之后我创建了ssh密钥并在代码/测试上创建测试应用程序(创建laravel项目)并添加到
- map: test.app
to: /home/vagrant/Code/test/public
设置serve test.app /home/Vagrant/Code/test/public
有错误
dos2unix: converting file /vagrant/scripts/serve.sh to Unix format ...
Failed to restart php5-fpm.service: Unit php5-fpm.service not found.
以前开始的宅基地
==> default: Failed to restart php5-fpm.service: Unit php5-fpm.service not found.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
如何解决?
UPD
可能不是解决方案而是为我工作
查找脚本serve.sh并重写
fastcgi_pass unix:/var/run/php5-fpm.sock;
到
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
并设置serve test.app /home/Vagrant/Code/test/public
但homestead up
以Failed to restart php5-fpm.service: Unit php5-fpm.service not found.
开头
可能是宅基地需要语言环境php5-fpm