Linux指令学习记录

  • linux curl访问
  1. curl get方式提交数据linux

    curl -G -d "name=xjj&age=18" http://www.baidu.com
  2. curl post方式提交数据(表单)docker

    curl localhost:9999/api/test -X POST -d "title=小杰杰&content=无敌"
  3. curl post方式提交数据(json)json

    curl -H "Content-Type:application/json" -X POST --data '[{"name":"xjj","age":18},{"name":"xkk","age":16}]' http://localhost:8080/api/test
  4. curl delete方式删除数据vim

    curl -v -X DELETE localhost:8080/test/1
  5. 查看mq5672端口的监听状况api

    netstat -an|grep 5672
  6. 统计vim匹配的该值数量app

    :%s/匹配值//gn
  • docker指令
  1. 复制文件到容器里面curl

    docker cp /etc/localtime 容器id:/etc/localtime

如有错误,恳请指正,万分感谢!!!post

相关文章
相关标签/搜索