搜索结果

Server

如何解决mysql服务经常会自动终止的问题

672

最近在帮客户网站搬家的时候遇到一个比较奇怪的问题,网站搬家后服务器的mysql服务偶尔会莫名其妙的自动终止,而重启服务会报“ERROR! The server quit without updating PID file”这个错误,开始认为对方的服务器被攻击了,经过一番

Cache

laravel控制器加载视图时设置临时缓存

865

有时候,你可能会想从缓存中取出一个变量,但也想在将要取出的变量不存在时存入一个默认值,例如,你可能会想从缓存中取出所有用户,当找不到用户时,从数据库中将这些用户取出并放入缓存中,你可以使用 Cache::remember 方法达到目的:$value =&nbs

Whoops, looks like something went wrong.

1/1 ErrorException in Filesystem.php line 81: file_put_contents(): Only 0 of 274 bytes written, possibly out of free disk space

  1. in Filesystem.php line 81
  2. at HandleExceptions->handleError('2', 'file_put_contents(): Only 0 of 274 bytes written, possibly out of free disk space', '/data/home/qxu1649280102/htdocs/local/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php', '81', array('path' => '/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/733d049ab57f94813e99993f0fbf8a0d78854ca7', 'contents' => 'a:4:{s:6:"_token";s:40:"qDjG6CK9pol7zJHMMmIxoRm3DS5rNiiLLygRDgTl";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544006";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542824764;s:1:"c";i:1542824764;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', 'lock' => true))
  3. at file_put_contents('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/733d049ab57f94813e99993f0fbf8a0d78854ca7', 'a:4:{s:6:"_token";s:40:"qDjG6CK9pol7zJHMMmIxoRm3DS5rNiiLLygRDgTl";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544006";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542824764;s:1:"c";i:1542824764;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', '2') in Filesystem.php line 81
  4. at Filesystem->put('/data/home/qxu1649280102/htdocs/local/storage/framework/sessions/733d049ab57f94813e99993f0fbf8a0d78854ca7', 'a:4:{s:6:"_token";s:40:"qDjG6CK9pol7zJHMMmIxoRm3DS5rNiiLLygRDgTl";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544006";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542824764;s:1:"c";i:1542824764;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}', true) in FileSessionHandler.php line 83
  5. at FileSessionHandler->write('733d049ab57f94813e99993f0fbf8a0d78854ca7', 'a:4:{s:6:"_token";s:40:"qDjG6CK9pol7zJHMMmIxoRm3DS5rNiiLLygRDgTl";s:9:"_previous";a:1:{s:3:"url";s:37:"http://icodes.cc/findbytag/1490544006";}s:9:"_sf2_meta";a:3:{s:1:"u";i:1542824764;s:1:"c";i:1542824764;s:1:"l";s:1:"0";}s:5:"flash";a:2:{s:3:"old";a:0:{}s:3:"new";a:0:{}}}') in Store.php line 262
  6. at Store->save() in StartSession.php line 88
  7. at StartSession->terminate(object(Request), object(Response)) in Kernel.php line 145
  8. at Kernel->terminate(object(Request), object(Response)) in index.php line 60