Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tarsphp+swoft project start failed on Tars web. I manually start the service, but it can't be reached in browser #43

Open
franklee0817 opened this issue Mar 19, 2020 · 1 comment

Comments

@franklee0817
Copy link

I did a telnet on the node server. Port 18306 is connectable
Here's the config content of my service.

<tars>
        <application>
                enableset=n
                setdivision=NULL
                <server>
                        node=tars.tarsnode.ServerObj@tcp -h 172.25.0.5 -p 19386 -t 60000
                        deactivating-timeout=3000
                        app=PHPTest
                        server=swoft
                        localip=172.25.0.5
                        local=tcp -h 127.0.0.1 -p 9100 -t 3000
                        basepath=/usr/local/app/tars/tarsnode/data/PHPTest.swoft/bin/
                        datapath=/usr/local/app/tars/tarsnode/data/PHPTest.swoft/data/
                        logpath=/usr/local/app/tars/app_log/
                        loglevel=DEBUG
                        logsize=15M
                        log=tars.tarslog.LogObj
                        config=tars.tarsconfig.ConfigObj
                        notify=tars.tarsnotify.NotifyObj
                        logLevel=DEBUG
                        php=/usr/bin/php
                        buffer_output_size=12582912
                        open_tcp_nodelay=1
                        open_eof_check=0
                        open_eof_split=0
                        task_worker_num=1
                        dispatch_mode=2
                        daemonize=1
                        <PHPTest.swoft.objAdapter>
                                allow
                                endpoint=tcp -h 172.25.0.5 -p 9100 -t 60000
                                handlegroup=PHPTest.swoft.objAdapter
                                maxconns=200000
                                protocol=not_tars
                                queuecap=10000
                                queuetimeout=60000
                                servant=PHPTest.swoft.obj
                                threads=5
                        </PHPTest.swoft.objAdapter>
                </server>
                <client>
                        asyncthread=12
                        locator=tars.tarsregistry.QueryObj@tcp -h 172.25.0.3 -p 17890
                        sync-invoke-timeout=20000
                        async-invoke-timeout=20000
                        refresh-endpoint-interval=60000
                        stat=tars.tarsstat.StatObj
                        property=tars.tarsproperty.PropertyObj
                        report-interval=60000
                        modulename=PHPTest.swoft
                        sample-rate=100000
                        max-sample-count=50
                </client>
        </application>
</tars>
@franklee0817
Copy link
Author

Please check the node tars.application.server.local in your configure file. Your service is on 9100 port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant