解决PHP Session 报错failed: No space left on device

  • 遇到如下错误:

    Warning: session_start(): open(/var/lib/php/session/sess_3b1jm5kqehk9bg68f9ljt6n3k6, O_RDWR) failed: No space left on device (28) in /var/www/SITES/ktapp/index.php on line 2 controllerlibwidgetdbimage Warning: Unknown: open(/var/lib/php/session/sess_3b1jm5kqehk9bg68f9ljt6n3k6, O_RDWR) failed: No space left on device (28) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0

    # service nginx stop
    # mv /var/lib/php/session /var/lib/php/session.old
    # chmod 1777 /var/lib/php/session
    # rm -rf /var/lib/php/session.old
    # /etc/init.d/php-fpm restart

    文章“解决PHP Session 报错failed: No space left on device”由大口罩的BLOG提供,转载请注明出处 http://blog.cancanyou.com/

回复位置:
主贴
访客名称(不可修改):
联系Email(可选,如果有必要我会根据此Email给您回复):
回复内容描述(必选,1000字符以内):
提示:某些回复内容可能稍后通过审核后才会被显示
  • ADs
Copyright 2012 cancanyou.com 大口罩的生活领地,欢迎来访,管理员“口罩下的笑”交流Email: meetcancanyou@yahoo.com
京ICP备13030527号-2