Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/280.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php MongoDB-重新启动VPS后与数据库的连接中断_Php_Mongodb_Codeigniter - Fatal编程技术网

Php MongoDB-重新启动VPS后与数据库的连接中断

Php MongoDB-重新启动VPS后与数据库的连接中断,php,mongodb,codeigniter,Php,Mongodb,Codeigniter,我正在使用Digital Ocean并重新启动了VPS,现在我的应用程序无法启动 起初它说它与我的数据库失去了连接,现在它只是一个白色的屏幕。我不知道从这里该怎么办 信息如下: Unable to connect to MongoDB: Failed to connect to: localhost:27017: Remote server has closed the connection 该网站是一个代码点火器 如果我运行mongod,那么我会得到以下信息(不是说我需要运行此信息): 嗯

我正在使用Digital Ocean并重新启动了VPS,现在我的应用程序无法启动

起初它说它与我的数据库失去了连接,现在它只是一个白色的屏幕。我不知道从这里该怎么办

信息如下:

Unable to connect to MongoDB: Failed to connect to: localhost:27017: Remote server has closed the connection
该网站是一个代码点火器

如果我运行
mongod
,那么我会得到以下信息(不是说我需要运行此信息):


嗯,这很尴尬,但我可以自嘲。最后我做了一个回滚并修复了这个问题,然后用新文件替换了我的所有应用程序,问题又出现了。所以我最后查了一下我的一个模型文件,发现了这个

var $sessionArray = arsray();
没有什么比一个好的
arsray
更能毁掉你的一天了

var $sessionArray = arsray();