ปัญหา: บน XenServer Version 5.x และ 6.x ซึ่ง End of life ไปแล้วเมื่อปี 2016 ไม่สามารถ Start VM ได้ไม่ว่าจะ Start ด้วย Xen Center หรือผ่าน Commnad Line ขึ้น Error License has expired. รวมถึงไม่สามาถ Activate License ได้ การแก้ไข: Citrix ได้ประกาศว่าจะมีการยกเลิกและปิดบริการทั้งหมดสำหรับ XenServer Version 5.x และ 6.x จนถึงมีนาคม 2019 ดังนั้นหลังจากเดือนมีนาคม 2019 เป็นต้นไปจะไม่สามารถขอรับบริการทั้งหมดได้ ไม่ว่าจะเป็น Free Activated License และการ Support ต่างๆ วิธีแก้ปัญหา 1 ดำเนินการ Upgrade Citrix XenServer เป็น Version ล่าสุด (ปัจจุบัน Free Trial License คือ Version 7.6) วิธีแก้ปัญหา 2 ขึ้นเครื่อง XenServer Version ล่าสุด แล้วดำเนินการ Export VM ออกจาก XenServer Version เก่า แล้ว Import VM บน XenServer Version ใหม่ วิธีแก้ปัญหา 3 ใช้ในกรณีไม่ต้องการใช้ XenServer แล้ว แต่ต้องการ Start VM เพื่อจุดประสงค์บางอย่าง สามารถใช้วิธีการ Backdate หรือแก้ไขเวลา Server กลับเป็นช่วงเวลาที่ยังสามารถใช้งานได้หรือ License ยัง Active อยู่ ดำเนินการดังนี้ 1. เช็คเวลาปัจจุบัน #date 2. Config เวลาเป็นช่วงที่ต้องการ เช่น #date -s "2 JAN 2019 18:00:00" 3. เช็ค Hardware Clock #hwclock --show 4. Synce system hardware clock #hwclock --systohc 5. ทดสอบ Start VM
Problem Sorry, configuration data has not been successfully stored.Please execute the following command [root@cpanel conf]# /scripts/buildhttpdconf Sorry, configuration data has not been successfully stored.Please execute the following commands: /usr/local/cpanel/bin/apache_conf_distiller --store-data --defaultstouch /var/cpanel/conf/apache/success Execute the apache_conf_distiller without any flags to see its full usage. Solving [root@cpanel conf]# /usr/local/cpanel/bin/apache_conf_distiller --store-data --defaultsDistilled successfully[root@cpanel conf]# touch /var/cpanel/conf/apache/success[root@cpanel conf]# [root@cpanel conf]# /scripts/buildhttpdconf Built /etc/apache2/conf/httpd.conf OK
เมื่อมีการติดตั้ง zabbix-agent ลงไปยังเครื่อง server นั้นๆ อาจจะเกิด error ในการ start service จะพบปัญหาตามด้านล่าง ปัญหา - systemctl start zabbix-agent zabbix-agent.service never wrote its PID file. Failing การแก้ไขปัญหา 1.kill process zabbix-agent และค่อย start (ถ้าใช้งานไม่ได้ให้ไปทำข้อ 2) 2.reboot เครื่อง server
เมื่อมีการ install csf ลงเครื่องแล้วนั้น และมีการใส่ค่า Config Allow port, Allow IP และอื่นๆ ซึ่งจำเป็นต้องทำการ reset csf คือ csf -r ซึ่งอาจจะเกิดปัญหา error ได้ตามนี้ *WARNING* Binary location for [UNZIP] [/usr/bin/unzip] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable *WARNING* Binary location for [HOST] [/usr/bin/host] in /etc/csf/csf.conf is either incorrect, is not installed or is not executable *WARNING* Missing or incorrect binary locations will break csf and lfd functionality yum -y install bind-utilsunzip
การเขียน txt mode ไฟล์นั้นค่า Default ของการ Run ใช้งาน ubuntu นั้นเราไม่สามารถเขียนภาษาไทยลงไปได้ ซึ่งถ้ามองง่ายๆเป็น Template ที่ทาง Docker ทำขึ้นมานั้นจะเหมือนกัน ซึ่งเราสามารถแก้ไขให้เขียนภาษาไทยได้ตามนี้ # apt-get update# apt-get install perl# apt-get install -y locales # nano -w /etc/locale.gen (แก้ไขโดยนำเครื่อง # ออก ) #en_US.UTF-8 en_US.UTF-8 #th_TH.UTF-8 th_TH.UTF-8 # locale-gen# echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc# echo "export LANG=en_US.UTF-8" >> ~/.bashrc# echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc# echo "export LC_ALL=th_TH.UTF-8" >> ~/.bashrc# echo "export LANG=th_TH.UTF-8" >> ~/.bashrc# echo "export LANGUAGE=th_TH.UTF-8" >> ~/.bashrc# source ~/.bashrc# locale root@7087c38b553a:/# cat txt.txt ข้อความแสดงภาษาไทย