免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: smilerui
打印 上一主题 下一主题

请教大虾一个关于关机的问题????在线等待 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-01-03 14:31 |只看该作者
昨晚才看着init0 嘿嘿 挺管用的,,


另一偏门办法:将计算机状态切换到runlevel0(关机状态)或runlevel6(重新启动)状态,命令如下:
init 0(halt)   init6(reboot) SHIT,真灵
关于不同的runlevel的描述可在文件/etc/inittab中找到。
3.1.5        处理挂起的程序
有错误的程序在LINUX下会引起系统挂起没有响应,但一个崩溃的程序一般不会影响操作系统.
如何中止出错程序:
方法一:CTRL+C
方法二:切换到另一控制台  ps 查看进程 kill it
查看所有进程:
ps –axu | more
说明:a 当前运行的所有进程;x 包含没有控制终端的进程;u 包括每个进程所属的用户名
killall  终止当前进程的所有进程树

但我不知道你这个会不会PS出来,,嘿嘿。。

论坛徽章:
0
12 [报告]
发表于 2006-01-03 14:58 |只看该作者
xxgsymj reminded me of a solution:
1. log onto the box on another local session. (Alt-F[1-6])
2. run "pstree" to check the "shutdown" processes.
3. terminate the parent process of the hung process(the hung process should be "umount"). don't kill "init",  "shutdown" or "haltsys".
4. After the parent process is killed, the shutdown should go on as normal.

[ 本帖最后由 chinaux 于 2006-1-3 15:03 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2006-01-03 15:06 |只看该作者
多谢多谢,衷心感谢

论坛徽章:
0
14 [报告]
发表于 2006-01-03 15:06 |只看该作者
By the way, please comment out the NFS mount line on /etc/fstab to avoid another potential  issue of "NFS mount"

论坛徽章:
0
15 [报告]
发表于 2006-01-03 16:21 |只看该作者
原帖由 chinaux 于 2006-1-3 14:58 发表
xxgsymj reminded me of a solution:
1. log onto the box on another local session. (Alt-F[1-6])
2. run "pstree" to check the "shutdown" processes.
3. terminate the parent proce ...


老大,偶看不太明白您的EN。。。(sorry 了)
1、首先切换到另一个控制台;
2、运行pstree 来检查shutdown进程
3、搞啥来着?还有楼上哪句??
麻烦一下哈。。。^_^
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP