Cannot connect to VM VirtualBox Linux Nginx server after restarting my computer

江枫思渺然 提交于 2020-01-25 07:53:48

问题


I recently setup an Ubuntu 12.04 LTS server running nginx, and I could connect to it via its IP address. However, after restarting my computer I can no longer connect to the server in any browser but I can connect via SSH through puTTy. No clue what's going on and ifconfig shows that the IP address has not changed and I changed no settings on the server. How can I fix this?

This picture shows the chrome window response when I try to access the server, the ifconfig from the server (top right), the network settings on the VM (bottom left), and the location settings for /etc/nginx/sites-available/www.

server settings

I have tried restarting, doing an nginx reload, and a full computer restart. Nothing has worked so far. All help is greatly appreciated!


回答1:


First make sure that the service is working using sudo service nginx status

If it's not running try starting it manually sudo service nginx start

If it fails to start, you can check the error log in /var/log/nginx/error.log or any other error log defined in the server config.



来源:https://stackoverflow.com/questions/17247549/cannot-connect-to-vm-virtualbox-linux-nginx-server-after-restarting-my-computer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!