วันอาทิตย์ที่ 21 พฤษภาคม พ.ศ. 2560

กำหนด IP address และ host name eth0 (Ethernet card เบอร์แรกคือเบอร์ 0)

กำหนด IP address และ host name
: เพื่อกำหนด ip ให้กับ eth0 (Ethernet card เบอร์แรกคือเบอร์ 0)
    ขั้นตอนการแก้ไข IP และ Host name
    /etc/hosts
    
      127.0.0.1 localhost.localdomain localhost 202.29.78.1 www.isinthai.com isinthai.com www
    /etc/sysconfig/network
      NETWORKING = yes HOSTNAME = yn1 GATEWAY = 202.29.78.254
    /etc/sysconfig/network-scripts/ifcfg-eth0
      DEVICE=eth0 BOOTPROTO=static BROADCAST=202.29.78.255 IPADDR=202.29.78.12 NETMASK=255.255.255.0 NETWORK=202.29.78.0 ONBOOT=yes TYPE=Ethernet
    /etc/resolv.conf
      nameserver 202.29.78.12
    สามารถใช้คำสั่ง setup แล้วเลือก Network Configuration เป็นอีกวิธีหนึ่ง เพื่อเข้าแก้ IP Address ซึ่งจะแก้ไขแฟ้มต่าง ๆ ให้อัตโนมัติ จากนั้นก็สั่ง #/etc/init.d/network restart

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

Set MongoDB in the windows path environment

  Let’s set MongoDB in the windows environment in just a few steps. Step 1: First download a suitable MongoDB version according to your mach...