dqzboy / dkube Goto Github PK
View Code? Open in Web Editor NEWThis is a K8s cluster management platform
This is a K8s cluster management platform
Other (请在问题中说明)
No response
后端可以运行,用nginx设置前端文件,但是无法登陆
[root@k8s-master01 dist]# ls
css favicon.ico img index.html js
[root@k8s-master01 dist]# pwd
/var/www/html/DKube-Web-main/dist
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/html/DKube-Web-main/dist/; # 更改此行为你的新目录
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
[root@k8s-master01 ~]# ./DKube-Server
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/db/init.go:40] 数据库初始化成功!
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/service/init.go:25] k8s client 初始化成功!
[GIN-debug] ....
[GIN-debug] ...
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 0.0.0.0:9090
<此处粘贴终端日志>
CentOS 7
[root@k8s-master01 dist]# ls
css favicon.ico img index.html js
[root@k8s-master01 dist]# pwd
/var/www/html/DKube-Web-main/dist
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/html/DKube-Web-main/dist/; # 前端文件所在目录
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
[root@k8s-master01 ~]# ./DKube-Server
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/db/init.go:40] 数据库初始化成功!
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/service/init.go:25] k8s client 初始化成功!
[GIN-debug] ...
[GIN-debug] ...
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 0.0.0.0:9090
<此处粘贴终端日志>
Other (请在问题中说明)
下载DKube后端和DKube-Web前端代码
安装mysql,创建dkube数据库。
修改Kubeconfig和数据库配置。
编译后端和前端。
将前端dist目录配为nginx目录。
启动后端。
[root@k8s-master01 dist]# ls
css favicon.ico img index.html js
[root@k8s-master01 dist]# pwd
/var/www/html/DKube-Web-main/dist
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /var/www/html/DKube-Web-main/dist/; # 更改此行为你的新目录
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
[root@k8s-master01 ~]# ./DKube-Server
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/db/init.go:40] 数据库初始化成功!
2024-03-08 18:29:57 [INFO] [/Users/feimao/Downloads/DKube-main/service/init.go:25] k8s client 初始化成功!
[GIN-debug] ....
[GIN-debug] ...
Please check https://pkg.go.dev/github.com/gin-gonic/gin#readme-don-t-trust-all-proxies for details.
[GIN-debug] Listening and serving HTTP on 0.0.0.0:9090
<此处粘贴终端日志>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.