check.sh 373 B

12345678910111213141516
  1. #!/bin/bash
  2. SCRIPT_DIR=$(cd `dirname $0`; pwd)
  3. ROOT_DIR=${SCRIPT_DIR}/..
  4. cd ${ROOT_DIR}
  5. bin/httpd -c etc/httpd.conf -s restart -d
  6. ps aux | grep httpd
  7. HTTPS=`netstat -atn | grep 8443 | wc -l`
  8. bin/http_client_test
  9. bin/curl -v http://127.0.0.1:8080/
  10. if [ $HTTPS -gt 0 ]; then
  11. bin/curl -v https://127.0.0.1:8443/
  12. fi
  13. bin/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/ping