Skip to content

nc is not stable in dubbo's bootstrap script #936

Closed

Description

@ycfang

启动脚本的nc命令不稳定,经常无法获取dubbo的状态,使用telnet的成功率会更高
COUNT=(sleep 1;echo "^M";sleep 1;echo status;sleep 1)|telnet 127.0.0.1 $SERVER_PORT | grep -c OK

Activity

  1. Loveless070 commented on Dec 8, 2017

    @Loveless070

    这个想法不错,,,,,,另外我想问你一些事情,,,那个启动脚本中,,有些地方 用的 ps -f ,,有些地方用的 ps -ef ,,,,,,,那些 ps -f 命令有什么意义吗,,,,比如 ps -f | grep java | grep -v grep | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l
    我试了几次 这个命令 并不能获取什么 东西,,,,ps -ef 可以

  2. added
    help wanted
    on Jul 20, 2018
  3. diecui1202 commented on Aug 6, 2018

    @diecui1202

    @ycfang @Loveless070 Could you fix this and start a PR ?

  4. added this to the 2.7.1 milestone on Mar 4, 2019
  5. changed the title [-]dubbo启动脚本中nc命令不稳定[/-] [+]nc is not stable in dubbo's bootstrap script[/+] on Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wanted

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions