开发者社区> 问答> 正文

安装服务器之家阿里云LNAMP环境临时目录每天产生几万条数据

用了一个多月,里面有一百多万条数据,怎么办?
/tmp/ 这个目录,可以删除不?

展开
收起
aluhao 2014-10-08 18:16:46 6982 0
5 条回答
写回答
取消 提交回答
  • www.aliyun.net.cn
    2014-10-12 14:29:04
    赞同 展开评论 打赏
  • 回2楼服务器之家的帖子
    虽然容量没什么影响,但MYSQL数据库会报错,提示:临时文件无法创建和写入,我手动删除到手软了才删除了10万,数据库就好了。
    要不然数据库一直报错:
    141008 11:39:21 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:39:23 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:39:26 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:39:32 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:39:43 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_newpm' is marked as crashed and last (automatic?) repair failed
    141008 11:39:43 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:39:54 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:05 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:16 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:27 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:34 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:34 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_newpm' is marked as crashed and last (automatic?) repair failed
    141008 11:40:34 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_pm_lists' is marked as crashed and last (automatic?) repair failed
    141008 11:40:38 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:43 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:43 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_newpm' is marked as crashed and last (automatic?) repair failed
    141008 11:40:43 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_pm_lists' is marked as crashed and last (automatic?) repair failed
    141008 11:40:49 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_security_failedlog' is marked as crashed and last (automatic?) repair failed
    141008 11:40:49 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_newpm' is marked as crashed and last (automatic?) repair failed
    141008 11:40:49 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_pm_lists' is marked as crashed and last (automatic?) repair failed
    141008 11:40:51 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_newpm' is marked as crashed and last (automatic?) repair failed
    141008 11:40:51 [ERROR] /usr/local/mysql/bin/mysqld: Table './qchid/pre_ucenter_pm_lists' is marked as crashed and last (automatic?) repair failed
    2014-10-11 21:32:28
    赞同 展开评论 打赏
  • Re安装服务器之家阿里云LNAMP环境临时目录每天产生几万条数据
    学习了,,,我也去看看我的
    2014-10-09 17:53:37
    赞同 展开评论 打赏
  • session有效期设置的是30天,你看到的应该是session文件,文件容量很少,基本没什么影响。

    有需要的话可以修改/etc/php.ini中的这一行
    session.cookie_lifetime = 2592000
    单位是秒
    2014-10-09 12:31:19
    赞同 展开评论 打赏
  • ????100多万???取个图看看?
    2014-10-09 11:53:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里云云原生 Serverless 技术实践营 PPT 演讲 立即下载
阿里云产品十月刊 立即下载
基于阿里云构建博学谷平台实时湖仓 立即下载