使用last报Value too large
来源:互联网 发布:阿里云与腾讯云比较 编辑:程序博客网 时间:2024/06/04 21:16
$ last | more
/var/adm/wtmpx: Value too large for defined data type
# cd /var/adm
# /usr/lib/acct/fwtmp < wtmpx > wtmpx.ascii
edit wtmpx.ascii by "vi" or "tail"
# /usr/lib/acct/fwtmp -ic < wtmpx.ascii > wtmpx
# rm wtmpx.ascii
——————————————————————————————————————————
# cp /var/adm/wtmpx /var/adm/wtmpx.old
# > /var/adm/wtmpx
按照这个方法清空了wtmpx文件
ksh下
# logadm -w wtmpx -c -C 3 -p 1m /var/adm/wtmpx
Where :
-w writes an entry in the /etc/logadm.conf file with entry name "wtmpx".
-c is a flag to copy and then truncate the file
-C is the number of copies to keep
-p is the retention period (one month here)
Where :
-w writes an entry in the /etc/logadm.conf file with entry name "wtmpx".
-c is a flag to copy and then truncate the file
-C is the number of copies to keep
-p is the retention period (one month here)
可以限制last保存的时长
另外,LINUX下的last文件可在/var/log/下的wtmp文件中找到。
- 使用last报Value too large
- 使用mysqlbinlog报Packet too large的问题
- OGG: NLS_LENGTH_SEMANTICS报错信息ora-12899 value too large for column
- Tomcat 报错:Packet for query is too large (12238 > 1024). You can change this value
- 共享文件夹内编译报”Value too large for defined data type”错误的解决办法
- ORA-12899: value too large for column
- Value too large for defined data type
- ORA-12899: value too large for column
- ORA-12899: value too large for...
- 使用Jetty启动WEB,请求报错java.lang.IllegalStateException: Form too large: 206150 > 200000
- ORA-12899 – Value too large for column string
- goldengate ORA-12899: value too large for column
- gcc 编译错误 Value too large for defined data type
- Jetty 报 java.lang.IllegalStateException: Form too large
- arithmetic Dimension too large Latex 报错的解决办法
- mysql 报错 query is too large (1041 > 1024) 处理
- redmine上传大文件报错Request Entity Too Large
- Elasticsearch报Result window is too large问题处理
- 程序员如何做出“不难看”的设计
- shell Learning [case 的合并匹配模式]
- SIFT算法研究
- 【mysql】 mysql批量插入
- Teradata SQL 笔记
- 使用last报Value too large
- 内联函数不能设置断点的原因
- Linux/UNIX为什么比Windows安全
- windows 2003 server R2中 TCP/IP筛选
- 英语练习153 Being happy
- 华硕本本A41开机卡在自检界面问题的解决
- java同步机制 synchronized (转)
- Eclipse远程调试Java的一种方法
- Qt 程序进入界面字体自定义