zoukankan      html  css  js  c++  java
  • 添加HP消息队列

    Date: 20140210

    Auth: Jin

    两台服务器

    120 HTTPSQS

    236 HTTPPROXY

    1.add host

    $ jump 120

    #vim /etc/hosts

    192.168.201.236 www.happyboby.com

    2. http proxy

    $ jump 236

    vim /etc/nginx/http-upstream/www.happyboby.com

    upstream www.happyboby.com.upstream {
      server 10.0.0.248:80;
      server 10.0.0.249:80;
    }

    vim /etc/nginx/nginx.conf

    server {
      server_name www.happyboby.com;
      location / { proxy_pass http://www.happyboby.com.upstream; }
    }


    /usr/local/nginx/sbin/nginx -c /etc/nginx/nginx.conf -t

    /etc/init.d/nginxd restart

    3.HTTPSQS config
    1)config
    vim /usr/local/divider/subscribe.properties

    club_happyboby_events.group = clubgoods
    club_happyboby_events.events = goodsinfo
    club_happyboby_events.service = phprpc
    club_happyboby_events.interface = http://www.happyboby.com/synapi/goods/
    
    event_happyboby_status.group = order
    event_happyboby_status.events = order_status
    event_happyboby_status.service = phprpc
    event_happyboby_status.interface = http://www.happyboby.com/synapi/order/

    2)restart
    关闭服务:
    ps -ef | grep dividersystem.jar
    kill -9 进程号

    启动服务:
    java -jar /usr/local/divider/dividersystem.jar &
    nohup ./task_sqs.sh &

    重启服务

      • 关闭服务:
        ps -ef | grep dividersystem.jar
        kill -9 进程号

      • 启动服务:
        java -jar /usr/local/divider/dividersystem.jar &
        nohup ./task_sqs.sh &

  • 相关阅读:
    像调试java一样来调试Redis lua
    微言限流
    性能测试遭遇TPS抖动问题
    你所不知道的堆外缓存
    基于JMH的Benchmark解决方案
    基于FastJson的通用泛型解决方案
    你所不知道的日志异步落库
    mac上配置java开发环境
    你所不知道的库存超限做法
    服务器一般达到多少qps比较好[转]
  • 原文地址:https://www.cnblogs.com/diege/p/3543392.html
Copyright © 2011-2022 走看看