它已經3天了,我仍然無法解決這個問題。我剛在我的優勝美地安裝了流浪箱。我正在學習與vm合作。通過Laravel Homestead的步驟,我已經安裝了無家可歸的家園。但它給我502壞門戶。我也在主機文件中設置了laravel.local。Laravel 5 Vagrant box laravel /宅基給502壞門戶
我嘗試了ngnix(1.8.0)的其他鏈接,但是我無法在宅基地vm上運行laravel!
這是/var/log/nginx/laravel.local-error.log
2015/07/12 18:54:31 [error] 957#0: *20 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.10.1, server: la5.dev, request: "GET/HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "la5.dev"
2015/07/12 19:03:07 [error] 1957#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.10.1, server: la5.dev, request: "GET/HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "la5.dev"
2015/07/12 19:04:33 [error] 2006#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.10.1, server: la5.dev, request: "GET/HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "la5.dev"
流浪漢@宅基地的輸出:在/ var /日誌/ nginx的$
這是我的家園.yaml
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: /Users/maahedev/code/la5
to: /home/vagrant/la5
sites:
- map: la5.dev
to: /home/vagrant/la5/public
databases:
- homestead
variables:
- key: APP_ENV
value: local
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 93000
# to: 9300
# - send: 7777
# to: 777
# protocol: udp
任何幫助/建議,高度讚賞。
編輯:的netstat -antp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 2477/nginx: worker
tcp 0 0 0.0.0.0:57219 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:11300 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:6379 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 2477/nginx: worker
tcp 0 0 10.0.2.15:22 10.0.2.2:50267 ESTABLISHED -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 :::5432 :::* LISTEN -
tcp6 0 0 :::47876 :::* LISTEN -
tcp6 0 0 :::6379 :::* LISTEN -
tcp6 0 0 :::111 :::* LISTEN -
您是否已將端口從客人轉發給主機? – Anatoly
你能否詳細解釋一下在哪裏做端口轉發? – Tarunn
我正在使用虛擬盒子和流浪漢。我遵循從拉拉維爾和流浪地點的步驟。但是,它仍然不起作用。 – Tarunn