How to change hostname on Google Cloud?

bobojonathan

Power Member
Joined
Sep 12, 2014
Messages
533
Reaction score
64
Hi mates.

I need your help. I want someone to show me
how to change hostname on Google cloud.
It is required for the installation of nginx+Apache
+op cache+Vesta cp


I
intend to use nginx as reverse proxy for Apache
using Vesta cp method.


This is the required format:


painel.drarebecagomes.com


While this is the default format:


srv.us-east1-b.c.drarebecagomes-221302.internal


Problem is that the hostname reverts to default
format after reboot. How can I solve this problem?
 
Nano /etc/sysconfig/network

And change hostname to yours at the hostname field.

Obviously, you also have to edit the hosts file as well to reflect the change.

A simple google search would also help depending on the system that you use.
 
Back
Top