这里是一个安静的地方...... 我可以放下所有东西
1.数据损坏之后,可以尝试
还好有得修复.否则.........
2.
机器上开了SOCKS.
近期常常间隔1,2小时自动重启。。。。搞了很久也不知道怎么回事。
TCPDUMP后发现奇怪的包
水平较菜,目前只大概猜 到发送大量的FIN标志包。。。。
tos 表式服务类型
URG: 紧急数据包
ACK: 确认
PSH: 请求急迫操作
RST: 连接复位
SYN: 连接请求
FIN: 结束连接
负载过大了..开匿名的后果吗.
停掉服务后正常.
与此同时,极其深刻地体会到英文不行对于解决问题是多么巨大的阻碍.
3.
列出uid与gid 的文件或文件夹
4.
使用pptpconfig的时候,访问内网时要加一条路由到自己获得的内网地址
5.
find ./pp -ctime +5 -exec rm -f {} \;
注意那个\,否则出现missing argument
先停止mysql 後 cd /var/lib/mysql
再 myisamchk -a "TABLE_NAME" 診斷錯誤類型
[separator]
=================================================
wshlab2:/var/lib/mysql# myisamchk -a apacheacct/accounting
Checking MyISAM file: apacheacct/accounting
Data records: 142266 Deleted blocks: 0
myisamchk: warning: Table is marked as crashed
myisamchk: warning: 1 client is using or hasn't closed the table properly
- check file-size
myisamchk: warning: Size of datafile is: 5575772 Should be: 5575732
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
- check record links
myisamchk: error: Wrong bytesec: 0-0-0 at linkstart: 5575732
MyISAM-table 'apacheacct/accounting' is corrupted
Fix it using switch "-r" or "-o"
=================================================
再依照其建議修復資料表
wshlab2:/var/lib/mysql#myisamchk -r apacheacct/accounting
- recovering (with sort) MyISAM-table 'apacheacct/accounting'
Data records: 142266
- Fixing index 1
Wrong bytesec: 0- 0- 0 at 5575732; Skipped
再 myisamchk -a "TABLE_NAME" 診斷錯誤類型
[separator]
=================================================
wshlab2:/var/lib/mysql# myisamchk -a apacheacct/accounting
Checking MyISAM file: apacheacct/accounting
Data records: 142266 Deleted blocks: 0
myisamchk: warning: Table is marked as crashed
myisamchk: warning: 1 client is using or hasn't closed the table properly
- check file-size
myisamchk: warning: Size of datafile is: 5575772 Should be: 5575732
- check record delete-chain
- check key delete-chain
- check index reference
- check data record references index: 1
- check record links
myisamchk: error: Wrong bytesec: 0-0-0 at linkstart: 5575732
MyISAM-table 'apacheacct/accounting' is corrupted
Fix it using switch "-r" or "-o"
=================================================
再依照其建議修復資料表
wshlab2:/var/lib/mysql#myisamchk -r apacheacct/accounting
- recovering (with sort) MyISAM-table 'apacheacct/accounting'
Data records: 142266
- Fixing index 1
Wrong bytesec: 0- 0- 0 at 5575732; Skipped
还好有得修复.否则.........
2.
机器上开了SOCKS.
近期常常间隔1,2小时自动重启。。。。搞了很久也不知道怎么回事。
TCPDUMP后发现奇怪的包
水平较菜,目前只大概猜 到发送大量的FIN标志包。。。。
12:29:26.747312 IP (tos 0x0, ttl 115, id 20907, offset 0, flags [DF], proto 6, length: 4 222.231.59.26.3751 > my ip..134.socks: S [tcp sum ok] 2138886867:2138886867(0) win 65535 <mss 1460,nop,nop,sackOK>
12:29:26.747358 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 6, length: 40) my ip..134.socks > 222.231.59.26.3751: R [tcp sum ok] 0:0(0) ack 2138886868 win 0
12:29:27.417965 IP (tos 0x0, ttl 115, id 21575, offset 0, flags [DF], proto 6, length: 4 222.231.59.26.3751 > my ip..134.socks: S [tcp sum ok] 2138886867:2138886867(0) win 65535 <mss 1460,nop,nop,sackOK>
12:29:27.417979 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 6, length: 40) my ip..134.socks > 222.231.59.26.3751: R [tcp sum ok] 0:0(0) ack 1 win 0
12:29:28.188567 IP (tos 0x0, ttl 115, id 22426, offset 0, flags [DF], proto 6, length: 4 222.231.59.26.3751 > my ip..134.socks: S [tcp sum ok] 2138886867:2138886867(0) win 65535 <mss 1460,nop,nop,sackOK>
12:29:26.747358 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 6, length: 40) my ip..134.socks > 222.231.59.26.3751: R [tcp sum ok] 0:0(0) ack 2138886868 win 0
12:29:27.417965 IP (tos 0x0, ttl 115, id 21575, offset 0, flags [DF], proto 6, length: 4 222.231.59.26.3751 > my ip..134.socks: S [tcp sum ok] 2138886867:2138886867(0) win 65535 <mss 1460,nop,nop,sackOK>
12:29:27.417979 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto 6, length: 40) my ip..134.socks > 222.231.59.26.3751: R [tcp sum ok] 0:0(0) ack 1 win 0
12:29:28.188567 IP (tos 0x0, ttl 115, id 22426, offset 0, flags [DF], proto 6, length: 4 222.231.59.26.3751 > my ip..134.socks: S [tcp sum ok] 2138886867:2138886867(0) win 65535 <mss 1460,nop,nop,sackOK>
tos 表式服务类型
URG: 紧急数据包
ACK: 确认
PSH: 请求急迫操作
RST: 连接复位
SYN: 连接请求
FIN: 结束连接
负载过大了..开匿名的后果吗.
停掉服务后正常.
与此同时,极其深刻地体会到英文不行对于解决问题是多么巨大的阻碍.
3.
列出uid与gid 的文件或文件夹
find / -perm -2000 -o -perm -4000 -print.
4.
使用pptpconfig的时候,访问内网时要加一条路由到自己获得的内网地址
route add default gw ip
5.
find ./pp -ctime +5 -exec rm -f {} \;
注意那个\,否则出现missing argument




2007/05/17 20:43 | by 
搜索
分类
同游
呓语
链接
统计
来源
喂鱼