【发布时间】:2016-08-24 17:32:18
【问题描述】:
我一直在单个 Homestead 虚拟机上处理多个站点,但刚刚开始遇到问题。工作正常,直到我尝试在没有互联网连接的情况下工作。现在无论有没有互联网连接,我都会遇到这些问题。
我已经阅读了很多与这些问题相关的主题,但没有找到解决方案。
我的主机文件:
192.168.10.10 homestead.app
192.168.10.10 nathan.app
192.168.10.10 ssiweb.app
192.168.10.10 test1.app
192.168.10.10 login.app
192.168.10.10 login2.app
192.168.10.10 photogallery.app
Homestead.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
folders:
- map: c:/users/nathan/desktop/www
to: /home/vagrant/Code
sites:
- map: homestead.app
to: /home/vagrant/Code/Project/public
- map: nathan.app
to: /home/vagrant/Code/Project1/public
- map: ssiweb.app
to: /home/vagrant/Code/Project2_ssiweb/public
- map: test1.app
to: /home/vagrant/Code/Project3_composer/public
- map: login.app
to: /home/vagrant/Code/Proj4_login/public
- map: login2.app
to: /home/vagrant/Code/Proj5_login_expanded/public
- map: photogallery.app
to: /home/vagrant/Code/Project6_photo_gallery/public
databases:
- homestead
- ssiweb
variables:
- key: APP_ENV
value: local
第一个问题是我无法配置“Project6...”。将它添加到 hosts 文件和 homestead.yaml 后,我会转到浏览器,photogallery.app 会打开 homestead.app 的文件。我尝试了 vagrant halt,vagrant up --provision,重新启动了软管计算机等,等等。无法让它工作。现在我在做 vagrant up 时遇到以下错误...
Job for nginx.service failed. See "systemctl status nginx.service" and "journalctl -xe" for details.
==> default: Job for php7.0-fpm.service failed. See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
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.
然后我备份了数据库并销毁了盒子并运行了 vagrant,但问题仍然存在。接下来要解决什么问题?如何查看这些...
See "systemctl status php7.0-fpm.service" and "journalctl -xe" for details.
【问题讨论】:
-
进入虚拟机并运行 systemctl status nginx.service 并得到... 8 月 24 日 17:11:33 homestead systemd[1]: Failed to start A high performance web server and a reverse proxy server .
-
尝试查看
/var/log/nginx的nginx日志。在此处复制并粘贴tail /var/log/nginx/error.log的输出。
标签: nginx vagrant virtualbox homestead php-7