Discuz!小编 发表于 2026-4-27 10:19:54

网站经常504和502,重启了Nginx和PHP后,网页虽然不会504和502了,但打开较慢,要几十秒或一分钟才能打开,如何解决。 New

如题,用的阿里的香港服务器,没有备案,是什么原因导致的,要怎么解决,因为是小白,不懂代码。


网站:www.suzhoutong.cc


我知道答案 回答被采纳将会获得1 贡献 已有2人回答

Sylvia 发表于 2026-4-27 10:20:27

你这是搬家或者升级的时候不够完美吧,文件缺失或者伪静态没有配置好
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

杰克 发表于 2026-4-27 10:21:14

大概率是网站访问量较大 导致的,

可以先看一下 服务器负载,   如果 服务器负载 不高的话 可以优化一下环境设置;

如果负载比较高的话 就要 拦截恶意访问,或者是 升级服务器了;

如果有预算的话,也可以加我 QQ有偿处理
页: [1]
查看完整版本: 网站经常504和502,重启了Nginx和PHP后,网页虽然不会504和502了,但打开较慢,要几十秒或一分钟才能打开,如何解决。 New