ซอฟต์แวร์ speedtest รุ่น speedtest.mini เป็นซอฟต์แวร์ที่แจกจ่ายให้ใช้ฟรี สำหรับทดสอบ server แบบง่ายๆ
สามารถดาวน์โหลดได้โดยตรงจากเวบ http://speedtest.net/mini.php
หรือชุดทดสอบที่อยู่เวบ http://ftp.psu.ac.th/pub/speedtest/mini.zip
วิธีการติดตั้ง
1. หากยังไม่ได้ติดตั้ง apache และ php5 ต้องดำเนินการติดตั้ง ก่อน ให้ติดตั้งด้วยคำสั่ง
sudo apt-get install apache2 php5 unzip
2. สร้างพื้นที่สำหรับติดตั้ง speedtest ไว้ที่ตัวอย่างนี้เป็น /var/www/speedtest ใช้คำสั่ง
sudo mkdir -p /var/www/speedtest
3. ตัวอย่างนี้เลือกใช้ซอฟต์แวร์ speedtest จากเว็บ http://ftp.psu.ac.th/pub/speedtest/mini.zip ใช้คำสั่งทำดังนี้
3.1 wget http://ftp.psu.ac.th/pub/speedtest/mini.zip -P /tmp
3.2 sudo unzip /tmp/mini.zip -d /var/www/speedtest
3.3 sudo cp /var/www/speedtest/index-php.html /var/www/speedtest/index.html
4. ทดสอบผลงานโดยไปที่เว็บดังตัวอย่าง http://ชื่อเซอร์เวอร์ของคุณ/speedtest
ในตัวอย่างนี้ ทดสอบในเครื่องตัวเอง http://127.0.0.1/speedtest
หากทดสอบผลงานแล้วใช้งาน Download ได้แต่ Upload ไม่ได้ให้แก้ไขไฟล์ /etc/php5/apache2/php.ini ดังนี้
แก้ไขค่าเดิม post_max_size = 8M
เป็นค่าใหม่ post_max_size = 80M
แล้วสั่งเริ่มทำงานใหม่ด้วย sudo /etc/init.d/apache2 restart
ทดสอบผลงานใหม่อีกครั้ง
ขอขอบคุณ http://opensource.cc.psu.ac.th/ติดตั้ง_speedtest_บน_ubuntu
ไม่มีความเห็น