ผลต่างระหว่างรุ่นของ "2. ขั้นตอนการติดตั้งและตั้งค่า mariadb , Postfix , Dovecot"

จาก Wiki_EAI
ไปยังการนำทาง ไปยังการค้นหา
แถว 4: แถว 4:
  
 
2. สั่ง start service ของ postfix , dovecot , mariadb ทุกครั้งที่เปิด Server
 
2. สั่ง start service ของ postfix , dovecot , mariadb ทุกครั้งที่เปิด Server
  # systemctl start postfix
+
  '''# systemctl start postfix'''
  # systemctl start dovecot
+
  '''# systemctl start dovecot'''
  # systemctl start mariadb
+
  '''# systemctl start mariadb'''
  # systemctl enable postfix
+
  '''# systemctl enable postfix'''
  # systemctl enable dovecot
+
  '''# systemctl enable dovecot'''
  # systemctl enable mariadb
+
  '''# systemctl enable mariadb'''
  
  
 
3. ดูสถานะการใช้งานของ postfix , dovecot , maridb
 
3. ดูสถานะการใช้งานของ postfix , dovecot , maridb
  # systemctl status postfix
+
  '''# systemctl status postfix'''
  # systemctl status dovecot
+
  '''# systemctl status dovecot'''
  # systemctl status mariadb
+
  '''# systemctl status mariadb'''
 +
 
 +
 
 +
4. ตั้งค่า UTF8 ให้กับ mysql เพื่อให้รองรับภาษาไทย โดยเพิ่มคำสั่งด้าล่างลงใน /etc/my.cnf.d/maridb-server.cnf ใต้ [mysqld]
 +
'''# vi /etc/my.cnf.d/mariadb-server.cnf'''

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

1. ติดตั้ง mariadb , Postfix , Dovecot และ Packet ที่จำเป็นกับ Server

# yum install postfix dovecot mariadb-server dovecot-mysql postfix-mysql


2. สั่ง start service ของ postfix , dovecot , mariadb ทุกครั้งที่เปิด Server

# systemctl start postfix
# systemctl start dovecot
# systemctl start mariadb
# systemctl enable postfix
# systemctl enable dovecot
# systemctl enable mariadb


3. ดูสถานะการใช้งานของ postfix , dovecot , maridb

# systemctl status postfix
# systemctl status dovecot
# systemctl status mariadb


4. ตั้งค่า UTF8 ให้กับ mysql เพื่อให้รองรับภาษาไทย โดยเพิ่มคำสั่งด้าล่างลงใน /etc/my.cnf.d/maridb-server.cnf ใต้ [mysqld]

# vi /etc/my.cnf.d/mariadb-server.cnf