博客
关于我
linux上调用接口命令
阅读量:789 次
发布时间:2023-02-02

本文共 851 字,大约阅读时间需要 2 分钟。

在实际操作中,对于如何在Linux系统上调用接口,可以按照以下步骤进行:

  • 调用现网SPI接口:

    ping 10.211.93.48telnet 127.0.0.1 8080
  • 调用Hyp_testing SPI接口:

    echo '157105312831' | curl -X POST -H 'Content-type:text/xml' -d @$- http://10.211.93.142:9093/hyspi/getCatelogIdByVcode
  • 调用相关接口:

    • 使用cURL调用接口:
    curl -t http://10.211.93.48:9088/r/getCatelogIdByVcodemsisdn=15088775046
    • 发送POST请求:
    curl -d '15088775046' -H 'Content-type:text/xml' -v -X POST http://10.211.93.48:9088/r/
  • 检查日志文件:

    • 查看实时日志更新:
    tail -f 20171106.logtail -f HY_SPI.log
    • 筛选特定日志信息:
    tail -f HY_SPI.log | grep 'GetCatelogIdByVcodeServlet'tail -f HY_SPI.log | grep 'GetCatelogIdByVcode'
    • 检索入口相关日志:
    grep 'Enter GetCatelogIdByVcode service' portal.loggrep '################################msisdn = ' portal.log
  • 关于Hyp_testing接口的变更:

    • 之前的接口地址为:http://10.211.93.142:8088/hyspi/getCatelogIdByVcode
    • 现在使用的地址为:http://10.211.93.142:9093/hyspi/getCatelogIdByVcode

    转载地址:http://euzfk.baihongyu.com/

    你可能感兴趣的文章
    Linux 查找搜索命令
    查看>>
    linux 查看 mongodb 连接数
    查看>>
    linux 查看文件大小及内容
    查看>>
    Linux 查看目录大小
    查看>>
    linux 查看硬盘的uuid_linux添加新硬盘不需要重启识盘,及查看uuid
    查看>>
    linux 根目录扩容
    查看>>
    linux 添加本地yum源
    查看>>
    linux 源码搭建lnmp_Linux源码安装lnmp
    查看>>
    Linux 环境下将 ASM 磁盘映射到物理磁盘的完整指南
    查看>>
    Linux 的 cat 命令居然有那么多门道,涨知识了!
    查看>>
    Linux 的NFS服务的配置
    查看>>
    linux 的sh脚本中的-p、2>&1 &、$!、[]、-f、grep、awk、-z 相关的操作
    查看>>
    linux 的vi vim 的常用的基本命令
    查看>>
    Linux 的性能调优的思路
    查看>>
    Linux 的文本搜索命令 grep
    查看>>
    Linux 的账号与群组管理
    查看>>
    linux 目录&基础命令
    查看>>
    Linux 目录结构
    查看>>
    Linux 硬链接和软链接到底是什么?怎么理解?
    查看>>
    Linux 磁盘分区详解
    查看>>