504 Gateway Time-out – Nginx
You run a task and Nginx throws the following error: [crayon-5f03aff141cb7033567610/] This can be truly…
To add /modify the static IP address of your ubuntu installation follow the steps below:
Find out which interface is connected to the internet, issue the following:
In this case, the interface you’re looking for is enp0s3.
Currently this server has it’s interface set to get an IP address from the local DHCP server at the time of boot, we’re going to change that and set an IP of our liking.
Edit the file at: /etc/network/interfaces
Our file looks something like this:
The portion to look at are the last two lines, pretty self explanatory. To change this to a static IP setup remove the two and add the following with your own IP address:
To restart the network service:
That’s it, the new static IP should be active