Question

when we run sudo mate /opt/nginx/conf/nginx.conf we get two different errors

sudo: unable to resolve host myhost

sudo: mate: command not found

how can we get this file to open? sudo mate wont open it

Was it helpful?

Solution

mate is a command installed by Textmate, which is an OS X app, not a Linux one. You need to use something like emacs or vim or nano to edit files on your Linode instance.

OTHER TIPS

The first error is because you haven't defined your hostname properly, if you wish to know how to do that you can find out here.

Second is because you don't have mate installed, try running the following instead:

sudo nano /opt/nginx/conf/nginx.conf
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top