Skip to content
/ NeoID Public
forked from pengzhile/NeoID

一个支持分布式部署的ID生成服务程序

License

Notifications You must be signed in to change notification settings

cuibo10/NeoID

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NeoID

一个支持分布式部署的ID生成服务程序。支持 linux 和 unix。###

编译安装:
直接代码根目录下 make 即可 make 完毕可以在 build/bin/neoid 找到可执行的服务程序。

启动运行:
./neoid 直接启动

Usage: neoid [-i machine_id] [-p port] [-b backlog] [-d]
-i machine_id : 服务实例的ID号,可支持0 - 127 共128个实例。默认为:0,不要重复。
-p port : 服务所使用的端口,1024以下端口需要root权限。默认为:18989,注意防火墙。
-b backlog : 指定服务连接队列大小。默认为:1024,不明白不要动。
-d : 以守护进程的方式启动服务。默认为:前台模式。

然后开始吧。 **如:**curl http://127.0.0.1:18989/

About

一个支持分布式部署的ID生成服务程序

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 97.5%
  • Makefile 2.5%