首页 > linux > linux 重启没响应

linux 重启没响应

2013年4月3日 eric 发表评论 阅读评论

今天IDC有服务器有两个分区变为只读分区,首先处理我想想卸载分区实行修复在挂载,无法卸载,然后考虑到线上服务器有备机,所以索性就直接重启下,执行 reboot 结果没响应,init 6 同样没响应。然后拿起电话准备给IDC 打电话重,后来想下肯定有办法重启的,就 google 了一下,果然找到了办法。执行下面两条命令:

# echo 1 > /proc/sys/kernel/sysrq
# echo b > /proc/sysrq-trigger

1. /proc/sys/kernel/sysrq
向sysrq文件中写入1是为了开启SysRq功能。根据linux/Documentations/sysrq.txt中所说:SysRq代表的是Magic System Request Key。开启了这个功能以后,只要内核没有挂掉,它就会响应你要求的任何操作。但是这需要内核支持(CONFIG_MAGIC_SYSRQ选项)。向/proc/sys/kernel/sysrq中写入0是关闭sysrq功能,写入1是开启,其他选项请参考sysrq.txt。需要注意的是,/proc/sys/kernel/sysrq中的值只影响键盘的操作。

那么怎么使用SysRq键呢?

在x86平台上,组合键” + SysRq + “组成SysRq键以完成各种功能。但是,在一些键盘上可能没有SysRq键。SysRq键实际上就是”Print Screen“键。并且可能有些键盘不支持同时按三个按键,所以你可以”按住ALT键“,”按一下SysRq键“,再”按一下键“,如果你运气好的话,这个会有效果的。不过放心,现在的键盘一般都支持同时按3个或3个以上的键。

有很多,这里只挑几个来说,其他的可以参考sysrq.txt文件。

•’b’ —— 将会立即重启系统,并且不会管你有没有数据没有写回磁盘,也不卸载磁盘,而是完完全全的立即关机
•’o’ —— 将会关机
•’s’ —— 将会同步所有以挂在的文件系统
•’u’ —— 将会重新将所有的文件系统挂在为只读属性

2. /proc/sysrq-trigger
从文件名字就可以看出来这两个是有关系的。写入/proc/sysrq-trigger中的字符其实就是sysrq.txt中说的键所对应的字符,其功能也和上述一样。

所以,这两行命令先开启SysRq功能,然后用’b'命令让计算机立刻重启。

转载请注明:文章转载自:Eric's linux and nginx! (http://www.nginxs.com)
本文地址:http://www.nginxs.com/linux/508.html

分类: linux 标签: , ,
  1. 2017年5月20日08:52 | #1

    I’m amazed, I have to admit. Rarely do I encounter a blog that’s both educative and amusing, and without a
    doubt, you have hit the nail on the head. The issue is
    something not enough men and women are speaking intelligently about.
    I am very happy I came across this during my search for something concerning this.

  2. 2017年5月28日13:39 | #2

    Hello there, You’ve done an incredible job. I’ll definitely digg it and
    personally suggest to my friends. I’m confident they’ll be benefited from this site.

  3. DorisTiems
    2017年7月15日09:56 | #3

    Revolutional update of SEO/SMM package “XRumer 16.0 + XEvil 3.0″:
    captcha regignizing of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.
    See you later ;)

    XRumer201707

  4. DorisTiems
    2017年7月17日19:35 | #4

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0″:
    captcha solution of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of introducing videos about XEvil in YouTube.
    See you later ;)

    XRumer201707

  5. DorothyRuirm
    2017年7月18日03:39 | #5

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0″:
    captchas breaking of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of demo videos about XEvil in YouTube.
    Good luck ;)

    XRumer20170717

  6. DorothyRuirm
    2017年7月19日06:59 | #6

    Absolutely NEW update of SEO/SMM package “XRumer 16.0 + XEvil 3.0″:
    captcha breaking of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.
    Good luck!

    XRumer20170718

  7. ArleneBix
    2017年7月22日10:12 | #7

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0″:
    captchas recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another subtypes of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of introducing videos about XEvil in YouTube.
    See you later ;)

    XRumer20170721

  8. ArleneBix
    2017年7月22日19:29 | #8

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil”:
    captcha recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? There are a lot of demo videos about XEvil in YouTube.
    See you later!

    XRumer20170721

  9. ArleneBix
    2017年7月23日00:47 | #9

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil”:
    captchas solving of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another subtypes of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of demo videos about XEvil in YouTube.
    Good luck ;)

    XRumer20170721

  10. ArleneBix
    2017年7月23日06:06 | #10

    Absolutely NEW update of SEO/SMM package “XRumer 16.0 + XEvil”:
    captchas solving of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? There are a lot of impessive videos about XEvil in YouTube.
    See you later!

    XRumer20170721

  11. 2017年7月25日16:12 | #11

    Write My Paper – EssayErudite.com

    Looking for an expert to write my paper for you? You are at the right place.
    Providing superior writing service appears to be our main specialization and passion.
    Our website is the best destination for every English-speaking student who calls for assistance when handling his or her daily academic tasks.

  12. 2017年7月25日17:13 | #12

    Write My Essay – EssayErudite.com

    Fed up of typing “who can write my essay” in the search bar?
    Would you like to have a reliable helper always by your side?
    Our website will come as an excellent solution to write my essay

  13. 2017年7月25日20:29 | #13

    Dissertation Writing Service – EssayErudite.com

    Our https://essayerudite.com/dissertation-writing-service/ provides a full-scale writing assistance accessible online 24/7.
    Apart from many other writing companies, we are rather picky when forming a professional staff of experts.
    Moreover, we try to make our every customer feel safe and pleased with the service.

  14. 2017年7月26日16:22 | #14

    EssayErudite.com is the web’s leading provider of quality and professional academic writing.
    When it comes to essay writing, an in-depth research is a big deal. Our experienced writers are professional in many fields of knowledge so that they can assist you with virtually any academic task. We deliver papers of different types: essays, theses, book reviews, case studies, etc.
    We have thousands of satisfied customers who have already recommended us to their friends. Why not follow their example and place your order today?

  15. 2017年7月31日19:57 | #15

    Хорошо отдохнуть можно тут: http://www.jbereg.ru – Детский лагерь в Крыму

  16. 2017年8月1日00:41 | #16

    Yesterday i read some interesting info about Omega 3 stuff and now i really wanna get it. But i want a quality, some premium omega 3 fish oil. I’ve got this carlson omega 3 . What do you think about this Carlson brand?

  17. 2017年8月1日01:34 | #17

    http://www.copic-sketch.ru – городской скетчинг

  18. 2017年8月1日11:00 | #18

    Amazing! This blog looks just like my old one!
    It’s on a totally different subject but it has pretty much the same layout and design. Outstanding choice of colors!

  19. 2017年8月1日14:17 | #19

    You made some decent points there. I looked on the web
    for more info about the issue and found most individuals will go along with your views
    on this web site.

  20. 2017年8月1日16:24 | #20

    Day ago i read some shocking info about Omega 3 stuff and now i really wanna get it. But i’m not really sure which benefits will i have. I’ve got this omega 3 info , and now i wanna purchase it with good price. Any idea?

  21. 2017年8月1日22:51 | #21

    Amazing things here. I am very happy to look your article.

    Thank you so much and I am taking a look ahead to touch you.
    Will you please drop me a mail?

  22. 2017年8月1日23:37 | #22

    Hello my loved one! I wish to say that this post is amazing, nice written and include almost all vital infos.
    I’d like to look extra posts like this .

  23. 2017年8月2日03:22 | #23

    I am not sure where you’re getting your information, but great topic.
    I needs to spend some time learning more or understanding more.
    Thanks for fantastic info I was looking for this information for my mission.

  24. 2017年8月2日06:31 | #24

    Hi there colleagues, how is everything, and what you wish for
    to say concerning this paragraph, in my view its really amazing in favor of me.

  25. 2017年8月2日12:55 | #25

    что есть чтобы похудеть http://диетоника.товар-топ.рф

  26. 2017年8月2日16:42 | #26

    If some one wants expert view about running a blog after that i suggest him/her to pay a visit this web site, Keep up the pleasant job.

  27. 2017年8月2日21:15 | #27

    Write more, thats all I have to say. Literally, it seems as
    though you relied on the video to make your point. You obviously know what youre talking about,
    why waste your intelligence on just posting videos
    to your weblog when you could be giving us something informative to read?

  28. 2017年8月2日21:53 | #28

    Day ago i got some amazing info about Omega 3 stuff and now i very wanna get it. But i’m not 100% sure which benefits will i have. I’ve found this omega 3 info , and now i want to purchase it with lowest price. Any idea?

  29. 2017年8月3日03:56 | #29

    Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to more added agreeable from you! However, how can we communicate?

  30. 2017年8月3日09:08 | #30

    Very shortly this web page will be famous amid all blog visitors, due to it’s good
    posts

  31. 2017年8月3日11:29 | #31

    I’m amazed, I have to admit. Seldom do I encounter a blog that’s both educative and interesting, and without a doubt,
    you’ve hit the nail on the head. The problem is something not enough folks are speaking intelligently about.
    Now i’m very happy that I came across this during my search for something concerning this.

  32. 2017年8月3日12:57 | #32

    Yesterday i read some cool info about Omega 3 foods and now i very wanna get it. But i’m not 100% sure which pluses will i have. I’ve got this omega 3 info , and now i wanna buy it with best price. Any idea?

  33. 2017年8月3日19:53 | #33

    I believe that is among the most important
    info for me. And i’m glad reading your article.
    But wanna observation on some normal things, The website taste is ideal, the articles is actually excellent :
    D. Just right job, cheers

  34. 2017年8月4日00:29 | #34

    Hello very cool website!! Guy .. Excellent .. Superb .. I’ll bookmark your website and take the feeds additionally?
    I’m glad to search out so many helpful information right here
    in the post, we need work out more techniques on this regard, thanks for sharing.
    . . . . .

  35. 2017年8月4日00:49 | #35

    May I simply just say what a comfort to discover a person that really knows what they’re discussing on the internet.

    You actually know how to bring a problem to light and make
    it important. More people have to check this out and understand this side of the story.

    It’s surprising you’re not more popular since you certainly have the gift.

  36. 2017年8月4日02:35 | #36

    Day ago i read some shocking info about Omega 3 foods and now i very wanna get it. But i’m not absolutely sure which pluses will i have. I’ve got this [url=https://buy-omega-3.com] omega 3 info [/url] , and currently i want to buy it with best price. Any idea?

  37. 2017年8月4日04:48 | #37

    Hi there all, here every person is sharing these familiarity, so it’s nice to read
    this website, and I used to go to see this website every day.

  38. 2017年8月4日06:59 | #38

    Wonderful goods from you, man. I’ve understand your stuff previous to and you
    are just extremely excellent. I actually like what you’ve acquired here, certainly like what you are stating and the way in which you
    say it. You make it entertaining and you still
    care for to keep it wise. I cant wait to read much more from you.
    This is actually a terrific web site.

  39. 2017年8月4日09:38 | #39

    I am regular visitor, how are you everybody? This article posted at
    this web site is actually nice.

  40. 2017年8月4日15:18 | #40

    I think what you composed made a bunch of sense. However, what
    about this? suppose you typed a catchier title? I am not saying your content is not
    good, but suppose you added something that makes people want more?
    I mean Eric's linux and nginx! » linux 重启没响应
    is a little vanilla. You should look at Yahoo’s front page and watch how they write post headlines
    to grab viewers to open the links. You might try adding a video
    or a picture or two to grab people excited about what you’ve
    got to say. Just my opinion, it might make your website a little bit more interesting.

  41. 2017年8月4日16:28 | #41

    Day ago i got some amazing info about Omega 3 foods and now i really wanna buy it. But i’m not absolutely sure which pluses will i have. I’ve found this [url=https://buy-omega-3.com] omega 3 info [/url] , and now i wanna purchase it with lowest price. Any idea?

  42. Carolynmal
    2017年8月5日02:07 | #42

    Absolutely NEW update of SEO/SMM package “XRumer 16.0 + XEvil”:
    captcha recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of demo videos about XEvil in YouTube.
    You read it – then IT WORKS!
    See you later ;)

    XRumer201708

  43. 2017年8月5日06:49 | #43

    Yesterday i got some shocking info about Omega 3 foods and now i really wanna get it. But i’m not 100% sure which pluses will i have. I’ve got this [url=https://buy-omega-3.com] omega 3 info [/url] , and now i want to get it with lowest price. Any idea?

  44. 2017年8月5日06:56 | #44

    Fastidious answer back in return of this query with firm arguments and describing the whole thing regarding that.

  45. Carolynmal
    2017年8月5日07:16 | #45

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0″:
    captchas solving of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another subtypes of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of introducing videos about XEvil in YouTube.
    You read it – then IT WORKS!
    Good luck!

    XRumer201708

  46. 2017年8月5日13:55 | #46

    Thank you for the auspicious writeup. It in fact was a amusement account
    it. Look advanced to more added agreeable from you! However, how could we communicate?

  47. 2017年8月5日19:09 | #47

    Hmm it looks like your blog ate my first comment (it was super long) so I guess I’ll just sum it
    up what I had written and say, I’m thoroughly enjoying your blog.
    I as well am an aspiring blog blogger but I’m still new to
    everything. Do you have any tips for rookie blog writers?
    I’d certainly appreciate it.

  48. 2017年8月5日22:34 | #48

    I am actually thankful to the owner of this website who has shared this impressive paragraph at at this time.

  49. 2017年8月5日22:40 | #49

    Great blog here! Additionally your site rather a lot up very fast!

    What web host are you the usage of? Can I am getting your affiliate link in your host?

    I desire my website loaded up as fast as yours lol

  50. 2017年8月6日16:07 | #50

    Day ago i got some cool info about Omega 3 stuff and now i very wanna buy it. But i’m not absolutely sure which benefits will i have. I’ve got this [url=https://buy-omega-3.com] omega 3 info [/url] , and currently i want to buy it with good price. Any idea?

评论分页
1 2 3 ... 7 508
订阅评论
5+7= (必填)