【 在 xiaochongzi (小虫子找到了家) 的大作中提到: 】
: 我用./miscd flush bbs用户
: -bash-3.00$ cd bin
: -bash-3.00$ ./miscd flush
: -bash-3.00$ ipcs
: ------ Shared Memory Segments --------
: key shmid owner perms bytes nattch status
: 0x00000e74 950273 bbs 660 1024 0
: ------ Semaphore Arrays --------
: key semid owner perms nsems
: ------ Message Queues --------
: key msqid owner perms used-bytes messages
: 0x00000888 98304 bbs 664 0 0
: ipcs -m | awk '$0~/bbs/ {system(sprintf("ipcrm shm %s",$2));}'
: -bash-3.00$ ipcs -m | awk '$0~/bbs/ {system(sprintf("ipcrm shm %s",$2));}
: '
: resource(s) deleted
: ipcs -q | awk '$0~/bbs/ {system(sprintf("ipcrm -q %s",$2));}'
: su - root
: ipcs
: ------ Shared Memory Segments --------
: key shmid owner perms bytes nattch status
: 0x00000000 589824 root 600 524288 15 dest
: 0x00000e6d 229378 root 660 574404 0
: 0x00000e71 294916 root 660 99208 0
: 0x00000e73 360453 root 660 5478200 0
: 0x00000e72 393222 root 660 84296 0
: 0x00001194 425991 root 660 4798384 0
看到没有,这里5个,你没清掉,而且owner也不对
那条命令只会清除owner是bbs的共享内存。
你要是不会清就把机器重启动算了
: ------ Semaphore Arrays --------
: key semid owner perms nsems
: 0x00000000 1638400 apache 600 1
: 0x00000000 1671169 apache 600 1
: 0x00000000 1703938 apache 600 1
: 0x00000000 1736707 apache 600 1
: 0x00000000 1769476 apache 600 1
: 0x00000000 1802245 apache 600 1
: 0x00000000 1835014 apache 600 1
: 0x00000000 1867783 apache 600 1
: ------ Message Queues --------
: key msqid owner perms used-bytes messages
: 大哥什么miscd 必须用root启动
--
FROM 61.182.213.*