Recommend

ขั้นตอนการ Deploy DEDE.web

ขั้นตอนการ Deploy DEDE.web

adminSep 25, 2023

***ขั้นตอน deploy dede.web ติดตั้ง SSL VPN Client เปิด Browser แล้วเข้า https://103.95.228.2:4430ใส่ https://103.95.228.2:4430 รอ load login config remote cd /var/www/html/ 1.ขั้นตอนแรก…

Most Views

Last News

Visual Portfolio, Posts & Image Gallery for WordPress

คลังความรู้

การ Migrate ข้อมูล MongoDB จาก Dev. ไป Prod.

การ Migrate ข้อมูล MongoDB จาก Dev. ไป Prod.

Teerakorn BounoyJan 10, 20242 min read

ติดตั้ง mongodb บน Prod. (ให้เวอร์ชั่นสูงกว่าบน Dev.- db version v4.0.6) เปิดโปรแกรม studio3T จากนั้นเลือก database ที่ต้องการ Export คลิ๊กขวา เลือก Export Collections… เลือก BSON – mongodump folder กำหนด Directory ที่จะ export ใน ‘Export target’ > uncheck Enable Compression (–gzip) จากนั้นกด Run รอจนโปรแกรมทำงานเสร็จ จะได้ไฟล์…

การแก้ปัญหาเมื่อไม่สามารถ Start MongoDB

การแก้ปัญหาเมื่อไม่สามารถ Start MongoDB

Teerakorn BounoyJan 8, 20241 min read

บนเครื่อง ztidev (delzev.ztidev.com) MongoDB จะถูกติดตั้งเป็น service (ไม่ใช่ docker) การตรวจสอบสามารถพิมพ์คำสั่งได้โดยตรง ไม่ต้อง remote ไปยัง docker container Start mongodb ด้วยคำสั่งsystemctl start mongod ตรวจสอบสถานะ mongodb ด้วยคำสั่งsystemctl status mongod ตรวจสอบ log ของ mongodb ด้วยคำสั่งtail -f /var/log/mongod/mongod.log กรณีพบ error ดังภาพ ให้แก้ไขโดยการ ลบไฟล์ xxx.sock ทิ้งโดยพิมพ์คำสั่งrm </path_to_sock_file> สั่ง…