RT、搭建环境 腾讯云轻量 ,系统centos7 按照官方分享的步骤一步进行。Supervisor管理器守护进程开启后没有初始的账号和密码
尝试进入文件目录,运行./ifile -resetpass
提出报错:
[root@VM-4-9-centos ifilespace]# ./ifile -resetpass
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xb81d0c]
goroutine 1 [running]:
ifile/ifile-go-pro/models.ResetAdminPassword()
/Users/lishuai/Code/GoPath/src/ifile/ifile-go-pro/models/users.go:47 +0x12c
main.main()
/Users/lishuai/Code/GoPath/src/ifile/ifile-go-pro/main.go:71 +0xd6
[root@VM-4-9-centos ifilespace]#