阿西,真的想骂人,不会耶,根本不会,咱就不明白了,怎么好好的项目在服务器上运行的好好的,不就是服务器到期了停了一下子再续上重启,再进去跟后台系统,就欢迎使用RuoYi后台管理框架,当前版本:v3.8.1,请通过前端地址访问。,真的好烦,不是自己写的代码,也不是自己部署的,是到新公司做维护,真的好像苦,吐槽吐槽吐槽。。。。。也不知道吐槽啥,吐槽自己笨吧,呜呜呜
最后是好心同事帮忙见检查的,nginx mysql redis jar都启动都检查并且重启没有问题了,但是后台就这样这么看,很正常,起码部署和代码以以及代码启动没问题,然后的然后我怕还是不会,
同事找的原因是:我们可爱的项目,因为重启,导致配置文件确实,缺失的啥呢,就是后台的起端代码,就算 是在本地,没有前端代码,后台启动就是这个样子,巴拉巴拉文件发现其那段代码和后端代码是分开放的,分开就分开,为啥分的这么远,一个文件下边分两个子文件不久好了吗,哎!之前开发的同志就是玩就是分开
前端的代码:/data/nurseryStock
后端代码在:/web/nurseryStock
然后看配置
server
{
listen 80;
listen 443 ssl http2;
server_name 域名;
index index.html index.htm default.htm default.html;
root /www/wwwroot/miaomu;
#SSL-START SSL相关配置
#error_page 404/404.html;
ssl_certificate /www/server/panel/vhost/cert/miaomu/fullchain.pem;
ssl_certificate_key /www/server/panel/vhost/cert/miaomu/privkey.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
ssl_ciphers EECDH+CHACHA20:EECDH+CHACHA20-draft:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
add_header Strict-Transport-Security "max-age=31536000";
error_page 497 https://$host$request_uri;
#SSL-END
#ERROR-PAGE-START 错误页相关配置
#error_page 404 /404.html;
#error_page 502 /502.html;
#ERROR-PAGE-END
#REWRITE-START 伪静态相关配置
include /www/server/panel/vhost/rewrite/java_miaomu.conf;
#REWRITE-END
#禁止访问的文件或目录
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|package.json|package-lock.json|\.env|node_modules) {
return 404;
}
#一键申请SSL证书验证目录相关设置
location /.well-known/ {
root /www/wwwroot/java_node_ssl;
}
# HTTP反向代理相关配置开始 >>>
location ~ /purge(/.*) {
proxy_cache_purge cache_one $Host$request_uri$is_args$args;
}
# location / {
# proxy_pass http://127.0.0.1:8088;
# proxy_set_header Host $Host:$server_port;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# proxy_set_header REMOTE-HOST $remote_addr;
# add_header X-Cache $upstream_cache_status;
# proxy_connect_timeout 30s;
# proxy_read_timeout 86400s;
# proxy_send_timeout 30s;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection "upgrade";
# }
location / {
root /data/nurseryStock;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8088/;
}
# HTTP反向代理相关配置结束 <<<
access_log /www/wwwlogs/miaomu.log;
error_log /www/wwwlogs/miaomu.error.log;
}
缺少的代码就是文章来源:https://www.toymoban.com/news/detail-760950.html
location / {
root /data/nurseryStock;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8088/;
}文章来源地址https://www.toymoban.com/news/detail-760950.html
到了这里,关于ruoyi项目服务器重启后台报:欢迎使用RuoYi后台管理框架,当前版本:v3.8.1,请通过前端地址访问。的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!