jnoj icon indicating copy to clipboard operation
jnoj copied to clipboard

用一键安装包后无法访问后台

Open VFANERS opened this issue 5 years ago • 18 comments

系统是ubuntu-18.04-x86_64。

VFANERS avatar Jun 14 '20 05:06 VFANERS

TIM截图20200614135121

VFANERS avatar Jun 14 '20 05:06 VFANERS

路径:jnoj\web\index.php 取消注释第四行刷新页面 请查看debug消息

<?php

// comment out the following two lines when deployed to production
// defined('YII_DEBUG') or define('YII_DEBUG', true);
// defined('YII_ENV') or define('YII_ENV', 'dev');

require __DIR__ . '/../vendor/autoload.php';
require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';

$config = require __DIR__ . '/../config/web.php';

(new yii\web\Application($config))->run();

我是win下复制粘贴回的路径斜杠你改一下下

umxyz avatar Jun 15 '20 16:06 umxyz

我觉得是内存小了,后台直接奔溃了。

VFANERS avatar Jun 23 '20 13:06 VFANERS

现在加钱买个大内存的vps就没问题了

VFANERS avatar Jun 23 '20 13:06 VFANERS

qaq 我之前在阿里云学生机1核1g上面试过挺流畅的

umxyz avatar Jun 23 '20 13:06 umxyz

......1.5g内存 有可能是没有先进行 apt update apt upgrade

VFANERS avatar Jun 23 '20 13:06 VFANERS

拿到后配置好第一件事不就是apt update && apt upgrade然后再装服务啥的么

umxyz avatar Jun 23 '20 13:06 umxyz

我试一下吧

VFANERS avatar Jun 23 '20 13:06 VFANERS

还是凉了

VFANERS avatar Jun 23 '20 14:06 VFANERS

我gcp (阿里云和腾讯云 学生机)都可以 恁vps商的镜像没问题吧

umxyz avatar Jun 23 '20 14:06 umxyz

image image image image image

VFANERS avatar Jun 23 '20 14:06 VFANERS

同一个vps商,我买大内存的就没问题了 hostdare

VFANERS avatar Jun 23 '20 14:06 VFANERS

好像是服务器配置问题 你看看直接注释掉函数相关的内容能不能行

umxyz avatar Jun 23 '20 14:06 umxyz

image 不行

VFANERS avatar Jun 23 '20 14:06 VFANERS

这个功能不是很需要。我在把它拿掉

shi-yang avatar Jun 23 '20 14:06 shi-yang

你 git pull 更新一下

shi-yang avatar Jun 23 '20 14:06 shi-yang

你 git pull 更新一下

$messages = array

我看代码这里没去掉元素

umxyz avatar Jun 23 '20 19:06 umxyz

image 不行

我刚刚看了一下我服务器上的这里的代码很早就屏蔽了温度,可能我也不记得这个问题了,或许gcp也存在这种问题,gcp我是自己的私有git部署的,跟原作者比改动太多了 image

umxyz avatar Jun 23 '20 19:06 umxyz