zoukankan      html  css  js  c++  java
  • 微服务配合docker使用

    1.docker 安装 rabbitmq

    启动脚本:

    docker run -d --name rabbitmq --publish 5671:5671 
     --publish 5672:5672 --publish 4369:4369 --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 
    rabbitmq:3-management

     2.linux jar包执行

    此处微服务部署,采用内置tomcat部署,执行脚本如下:

    java -jar ***.jar > ***.log &

    此处意为当前目录下的某某jar包执行,并将日志保存在当前目录下的某某.log,“&”意为后台启动。

    jobs
    fg 4
    netstat -nlp | grep :8761
    lsof -i:8761

    jobs 查看后台运行的任务列表

    fg [编号] 将某个作业调回前台控制

    netstat lsof 均为查看某端口占用的进程号 - pid,其中 lsof 为Ubuntu专用命令

     3.ls -lh

    shell实现按兆展示文件大小,采用 ls 的 -h :human-readable 属性

    ls -lh

    4.合并文件、去重、取某一列、另存

    cat douyin_* | awk -F "	" '{if($1!=$2) print}' | sort -u | awk -F "	" '{if($2!=1&&$2!=2&&$2!=3&&$2!=0) print}' > res.txt

     取满足某条件总数

    cat douyin_* | awk -F "	" '{if($1!=$2) print}' | sort -u | wc -l

     

  • 相关阅读:
    body test
    menu
    Toolbutton test itk_component
    grid pack
    double inherit
    set font
    Activity test itk_component
    Activity test no class
    按键驱动调试总结
    system.img解包打包的方法
  • 原文地址:https://www.cnblogs.com/nyatom/p/10107621.html
Copyright © 2011-2022 走看看