repositorypackage
0.0.0-20240406005059-aec0564a7137
Repository: https://github.com/carbs0126/go-dict-server.git
Documentation: pkg.go.dev
# README
go-dict-server
功能
- 通过
sqlite3
读取数据库文件; - 通过对外提供接口,返回
json
格式的数据;
使用
- 进入
go-dict-server-prepare
文件夹 go build
然后会生成go-dict-server-prepare
可执行文件- 如果需要指定特殊端口,使用如下命令
nohup ./go-dict-server-linux -port 1234 -dbpath abcdef &
- 如果使用默认端口4000,则使用如下命令
nohup ./go-dict-server-linux &
nohup xxx &
的意思是,后台执行,并且对ctrl+c免疫。如果不加&
则使用ctrl+c后,xxx程序会关闭