ผลต่างระหว่างรุ่นของ "1. ตั้งค่า Host ให้พร้อมใช้งาน"

จาก Wiki_EAI
ไปยังการนำทาง ไปยังการค้นหา
Tanagan (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
Tanagan (คุย | ส่วนร่วม)
ไม่มีความย่อการแก้ไข
บรรทัดที่ 1: บรรทัดที่ 1:
1.1 สั่ง update service ทั้งหมดของ centos ทั้งหมด ให้เป็นปัจจุบัน
1.1 สั่ง update service ทั้งหมดของ centos ทั้งหมด ให้เป็นปัจจุบัน
  '''yum update'''
  '''yum update'''
1.2 ตั้งชื่อ host
1.2 ตั้งชื่อ host
  '''hostnamectl set-hostname ''[[mail.eai.in.th]]'''''
  '''hostnamectl set-hostname ''[[mail.eai.in.th]]'''''
1.3 เพิ่มชื่อ mail.eai.in.th
'''vi /etc/hosts'''
127.0.0.1  localhost localhost.localdomain localhost4 localhost4.localdomain4 '''''mail.eai.in.th'''''
::1        localhost localhost.localdomain localhost6 localhost6.localdomain6 '''''mail.eai.in.th'''''

รุ่นแก้ไขเมื่อ 08:21, 3 ธันวาคม 2562

1.1 สั่ง update service ทั้งหมดของ centos ทั้งหมด ให้เป็นปัจจุบัน

yum update

1.2 ตั้งชื่อ host

hostnamectl set-hostname mail.eai.in.th

1.3 เพิ่มชื่อ mail.eai.in.th

vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 mail.eai.in.th
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 mail.eai.in.th