getting_started.sh 299 B

123456789101112131415
  1. #!/bin/bash
  2. make httpd curl
  3. bin/httpd -d
  4. ps aux | grep httpd
  5. # http web service
  6. bin/curl -v localhost:8080
  7. # indexof
  8. bin/curl -v localhost:8080/downloads/
  9. # http api service
  10. bin/curl -v -X POST localhost:8080/v1/api/json -H "Content-Type:application/json" -d '{"user":"admin","pswd":"123456"}'