Lua在Linux中獲取UUID的方法

使用nginx_lua生成requestId時,需使用UUIDnginx

可經過讀取Linux下  /proc/sys/kernel/random/uuid  來獲取UUIDdom

每次訪問可獲取不一樣UUID值ui

local uuid = io.open("/proc/sys/kernel/random/uuid", "r"):read()
相關文章
相關標籤/搜索