User Tools

Site Tools


linux:merubah-hostname

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:merubah-hostname [2016/04/11 21:55] – created kbadminlinux:merubah-hostname [2016/04/11 22:15] (current) kbadmin
Line 1: Line 1:
 ====== Merubah Hostname di Linux ====== ====== Merubah Hostname di Linux ======
-Secara default ketika server berjalan maka secara otomatis server akan mempunyai nama server disebut hostname. Pada beberapa software seperti cpanel, directadmin dan service seperti httpd/apache membutuhkan hostname agar bisa berjalan.+Secara default ketika komputer linux berjalan maka secara otomatis komputer akan mempunyai nama yang disebut hostname. Pada beberapa software seperti cpanel, directadmin dan service seperti httpd/apache membutuhkan hostname agar bisa berjalan.
  
 Berikut ini adalah panduan cara merubah hostname di linux Berikut ini adalah panduan cara merubah hostname di linux
Line 32: Line 32:
 </code> </code>
  
 +kemudian gunakan perintah **hostname** agar command line dapat membaca perubahan hostname anda.
 +<code>
 +[root@meridb ~]# hostname server1.pusathosting.info
 +[root@meridb ~]# hostname
 +server1.pusathosting.info
 +</code>
 +terakhir restart networking untuk membuat perubahan hostname secara permanen
 +<code>
 +/etc/init.d/network restart
 +</code>
 +
 +===== Merubah Hostname di Ubuntu =====
 +Jika anda menggunakan distro linux ubuntu maka berikut ini adalah panduan cara merubah hostname
 +
 +edit file hostname
 +<code>
 +sudo nano /etc/hostname
 +</code>
 +ubah hostnamenya dan kemudian definisikan hosts 
 +<code>
 +sudo nano /etc/hosts
 +</code>
 +contohnya seperti ini
 +<code>
 +119.235.249.118     server1.pusathosting.info
 +</code>
 +kemudin reboot 
 +<code>
 +sudo reboot
 +</code>

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/merubah-hostname.1460426149.txt.gz · Last modified: 2016/04/11 21:55 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki