Git Product home page Git Product logo

Comments (4)

Jasonlbf avatar Jasonlbf commented on May 24, 2024

pomelo版本2.2.5

from pinus.

whtiehack avatar whtiehack commented on May 24, 2024

因为这个配置的服务器已经启动了。如果需要添加配置文件里没有的服,需要使用 pinus add。

from pinus.

Jasonlbf avatar Jasonlbf commented on May 24, 2024

@whtiehack 感谢您的回答。
我现在遇到的问题是:配置文件里没有的服,已经通过docker的方式启动,master通过watchdog发现了这个服,但是无法从大厅进入游戏。如果用pinus add命令,底层是调用ssh命令去启动这个服。请问还有其他技术手段吗?或者,将每个服都Docker化(没有在配置文件里)可以实现吗?

from pinus.

whtiehack avatar whtiehack commented on May 24, 2024

理论上你直接改端口,服ID来启动进程,就是一个服。

你既然是用docker启动,那么建议你master进程单独启动比较好。

启动master:

node app.js mode=stand-alone

启动connector:

node app.js env=development  id=connector-server-1  host=127.0.0.1  port=3150  clientHost=192.168.1.10  clientPort=3010  frontend=true  serverType=connector

启动main:

node app.js env=development  id=main-server-1  host=127.0.0.1  port=5100  serverType=main 

其它进程的启动方式可以参考 connector,和main的启动参数,只需要更改 host port, id , 这些进程在配置里是可以不用存在的。

from pinus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.