Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found #404

Open
1 task done
keepsmile8 opened this issue Sep 11, 2024 · 2 comments
Open
1 task done

404 Not Found #404

keepsmile8 opened this issue Sep 11, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@keepsmile8
Copy link

检查清单

是什么版本出现了此问题?

最新版

使用的什么数据库?

SQLite3

使用的哪种方式部署?

Executable file

在线站点地址

No response

发生了什么?

go run main.go,访问http://127.0.0.1:8080/admin 提示 “404 Not Found”,前端也无法访问

相关日志输出

No response

附加信息

No response

@keepsmile8 keepsmile8 added the bug Something isn't working label Sep 11, 2024
@3395444278
Copy link

gcc编译器未安装导致,启动go env -w CGO_ENABLED=1,爆出错误,然后,安装window本地gcc

@keepsmile8
Copy link
Author

gcc编译器未安装导致,启动go env -w CGO_ENABLED=1,爆出错误,然后,安装window本地gcc

开发环境是mac,我执行go env 查看环境变量CGO_ENABLED 是为1的。在项目根目录下执行 go run main.go 也显示启动信息
“Sonic started at http://127.0.0.1:8080
Sonic admin started at http://127.0.0.1:8080/admin”
但是我浏览器访问http://127.0.0.1:8080,显示的是"welcome to nginx";访问http://127.0.0.1:8080/admin显示404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants