摘要:
架构 安装elasticsearch https://www.elastic.co/guide/en/elasticsearch/reference/current/rpm.html elasticsearch监听9200端口,安装成功,访问如http://12.0.0.1:9200 可以看到对应的 阅读全文
摘要:
项目介绍 这是一个用Tars部署的弹幕活动项目,其中包含3个服务。 涵盖了Http,Tcp服务,使用了Mysql,Redis存储,包含了用户登录、session校验、用户信息获取、弹幕创建、弹幕获取等功能。已经涵盖了平常业务开发的很多方面。 QD.ActHttpServer.obj是一个http服务 阅读全文
摘要:
参考 https://github.com/TarsCloud/TarsDocs/blob/master/hello-world/tarsphp.md#chapter-3 现在有了一个HTTP服务,还有一个Tars的TCP服务,如何用HTTP服务里调用TCP服务呢? 将Tars服务的TCPServe 阅读全文
摘要:
以上面配置的tcp服务为例,将tcp服务通过网关访问 找到tcp服务的Servant HelloWorld.TCPServer.obj 在网关的配置文件增加如下 执行发送自定义命令,重新load配置文件 通过网关访问 原来tcp调试是通过这种形式来调试的 现在通过网关来访问 http://hello 阅读全文
摘要:
以http服务为例 安装节点 docker run -d \ --name=tars_node_http \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.14" \ -v /Use 阅读全文
摘要:
添加网关 网关的参数,可以去网关服务的 管理Servants 里面查找 以上面的http服务helloWorld来作为一个案例配置网关访问 新增一个站点 添加配置 执行发送自定义命令,重新load配置文件 通过网关访问 上次部署的http服务的helloWorld在172.25.0.5,通过暴露的端 阅读全文
摘要:
https://zhuanlan.zhihu.com/p/101341556 https://www.cnblogs.com/jsjwk/p/10769246.html TarsGateway是基于tars框架开发的一套通用api网关,请求为http协议,后端同时支持tars-tup&tars-ta 阅读全文
摘要:
安装节点 docker run -d \ --name=tars_node_websocket \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.7" \ -v /Users/clz 阅读全文
摘要:
文档参考 https://tarscloud.github.io/TarsDocs/hello-world/tarsphp.html#chapter-3 Tars-server服务 tars-server 提供了底层的 server 框架,同时支持如下特性 基于 swoole1.x/2.x 的高性能 阅读全文
摘要:
创建http服务helloWorld 安装节点 docker run -d \ --name=tars-node \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.5" \ -v / 阅读全文
摘要:
采用docker安装形式 创建开发网路 # 创建一个名为tars的桥接(bridge)虚拟网络,网关172.25.0.1,网段为172.25.0.0 docker network create -d bridge --subnet=172.25.0.0/16 --gateway=172.25.0.1 阅读全文
摘要:
以上面配置的tcp服务为例,将tcp服务通过网关访问 找到tcp服务的Servant HelloWorld.TCPServer.obj 在网关的配置文件增加如下 执行发送自定义命令,重新load配置文件 通过网关访问 原来tcp调试是通过这种形式来调试的 现在通过网关来访问 http://hello 阅读全文
摘要:
添加网关 网关的参数,可以去网关服务的 管理Servants 里面查找 以上面的http服务helloWorld来作为一个案例配置网关访问 新增一个站点 添加配置 执行发送自定义命令,重新load配置文件 通过网关访问 上次部署的http服务的helloWorld在172.25.0.5,通过暴露的端 阅读全文
摘要:
https://zhuanlan.zhihu.com/p/101341556 https://www.cnblogs.com/jsjwk/p/10769246.html TarsGateway是基于tars框架开发的一套通用api网关,请求为http协议,后端同时支持tars-tup&tars-ta 阅读全文
摘要:
以http服务为例 安装节点 docker run -d \ --name=tars_node_http \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.14" \ -v /Use 阅读全文
摘要:
安装节点 docker run -d \ --name=tars_node_websocket \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.7" \ -v /Users/clz 阅读全文
摘要:
参考 https://github.com/TarsCloud/TarsDocs/blob/master/hello-world/tarsphp.md#chapter-3 现在有了一个HTTP服务,还有一个Tars的TCP服务,如何用HTTP服务里调用TCP服务呢? 将Tars服务的TCPServe 阅读全文
摘要:
文档参考 https://tarscloud.github.io/TarsDocs/hello-world/tarsphp.html#chapter-3 Tars-server服务 tars-server 提供了底层的 server 框架,同时支持如下特性 基于 swoole1.x/2.x 的高性能 阅读全文
摘要:
创建http服务helloWorld 安装节点 docker run -d \ --name=tars-node \ --net=tars \ -e INET=eth0 \ -e WEB_HOST="http://172.25.0.3:3000" \ --ip="172.25.0.5" \ -v / 阅读全文
摘要:
采用docker安装形式 创建开发网路 # 创建一个名为tars的桥接(bridge)虚拟网络,网关172.25.0.1,网段为172.25.0.0 docker network create -d bridge --subnet=172.25.0.0/16 --gateway=172.25.0.1 阅读全文