Skip to content

tars-rpc/tcpServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcpServer

前言

  • PHP的框架有一些,但像tars这样提供各个语言的实现版本,提供部署界面的还是不多的,而且效率上,根据官方压测,性能比grpc还好
  • 所以在对其使用上做个简单的参考,便于大家更好的使用tarsphp

环境要求

  • PHP 7.2+

框架的使用

准备阶段

  • tars目录中声明一个tars文件
  • 运行tars转php的脚本:
cd scripts
chmod u+x tars2php.sh
./tars2php.sh

其他

辅助事项

  • 查看服务进程的日志 tail -f /data/tars/tars_data/tars/app_log/PHPTest/PHPServer/PHPTest.PHPServer.log

参考资料

Releases

No releases published

Packages

No packages published