1
votes

I've installed rvm, ruby, rails, passenger, and nginx using this tutorial. However, I've installed it all over ssh connecting with myusername@machine-ssh-url. So now I've started nginx using

service nginx start

But I'd like to make sure it's working before moving on. The tutorial states "nginx is now on. You can see the exciting “Welcome to nginx” screen in your browser if you point it toward http://youripaddress/". But I'm not sure how to get the IP address of the machine I've ssh'd into, and I'm pretty sure I need to take more steps to allow an internet connection to be established.

I'm rather new to web development and deployment so I'd appreciate a pointer in the right direction as to the next steps to make my new nginx webserver accessible?

1

1 Answers

1
votes

to check if the server is running you can type in your console

$ service nginx status

to know your ip address just type in your console

$ ifconfig

you can also use your hostname instead of the ip address , you can type

$ hostname
yourhostname.com

then try http://yourhostname.com