linux上调用接口命令

linux命令:

1.ping ip地址:
  ping 10.211.93.48
  telnet 127.0.0.1 8080
2.ll -trh

3.在sit linux上调用接口:
CRT:
curl -t http://10.211.93.48:9088/r/getCatelogIdByVcode?msisdn=15088775046
curl -d '15088775046' -H 'Content-type:text/xml' -v -X POST http://10.211.93.48:9088/r/

echo命令: 现网SPI验证码接口

echo '157105312831'|curl -X POST -H 'Content-type:text/xml' -d @- http://211.140.17.101:9094/spi/getCatelogIdByVcode

echo命令: sit环境hyspi验证码兑换接口:
echo '155156734951111111'|curl -X POST -H 'Content-type:text/xml' -d @- http://10.211.93.142:9093/hyspi/getCatelogIdByVcode

CRT连接现网SPI环境,[email protected],输入命令:
echo '157105312831'|curl -X POST -H 'Content-type:text/xml' -d @- http://211.140.17.101:9094/spi/getCatelogIdByVcode

4.ps -efx|grep java
  tail -f 20171106.log
  tail -f HY_SPI.log
  tail -f HY_SPI.log |grep 'GetCatelogIdByVcodeServlet'
  tail -f HY_SPI.log |grep 'GetCatelogIdByVcode'
  grep 'Enter GetCatelogIdByVcode service' portal.log
  grep '################################msisdn = ' portal.log

sit环境
之前的hyspi地址:http://10.211.93.142:8088/hyspi/getCatelogIdByVcode
现在hyspi地址:http://10.211.93.142:9093/hyspi/getCatelogIdByVcode

你可能感兴趣的:(linux)