Mendownload aplikasi editor kesayangan anda "apt-get install vim-nox"
1.menyeting IP host menjadi IP static
# vi /etc/network/interfaces
isikan:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static <= ubah ip menjadi static
address 192.168.12.12 <= masukan IP anda
network 192.168.12.0 <=masukan network anda
netmask 255.255.255.0 <=masukan prefix /netmask anda
broadcast 192.168.12.255 <=masukan IP broadcast
gateway 192.168.12.1 <=masukan IP gateway
dns-nameservers 8.8.8.8 <=masukan dns anda yaitu anda dapat memilih antar ip gateway dan dns google : 8.8.8.8
2.memastikan host dan hostname sama
cek: "hostname" dan "hostname -f"
pastikan hasilnya sama
atur konfigurasi IP host" vi /etc/hosts"
berisi:
127.0.0.1 localhost
127.0.1.1 server
192.168.12.12 server.com server <<<====== di isi kan
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
atur hostname:
"echo server.com > /etc/hostname"
jalankan service hostname
"/etc/init.d/hostname.sh start"
3. lakukan update dan upgrade
"apt-get update && apt-get dist-upgrade -y"
1.menyeting IP host menjadi IP static
# vi /etc/network/interfaces
isikan:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static <= ubah ip menjadi static
address 192.168.12.12 <= masukan IP anda
network 192.168.12.0 <=masukan network anda
netmask 255.255.255.0 <=masukan prefix /netmask anda
broadcast 192.168.12.255 <=masukan IP broadcast
gateway 192.168.12.1 <=masukan IP gateway
dns-nameservers 8.8.8.8 <=masukan dns anda yaitu anda dapat memilih antar ip gateway dan dns google : 8.8.8.8
2.memastikan host dan hostname sama
cek: "hostname" dan "hostname -f"
pastikan hasilnya sama
atur konfigurasi IP host" vi /etc/hosts"
berisi:
127.0.0.1 localhost
127.0.1.1 server
192.168.12.12 server.com server <<<====== di isi kan
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
atur hostname:
"echo server.com > /etc/hostname"
jalankan service hostname
"/etc/init.d/hostname.sh start"
3. lakukan update dan upgrade
"apt-get update && apt-get dist-upgrade -y"
Tidak ada komentar:
Posting Komentar