Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Shut Down or Reboot a Solaris System Shut Down hoặc khởi động lại hệ thống Solaris

Solaris is usually used as a server operating system. Solaris thường được sử dụng như một hệ điều hành máy chủ. Because of this, you want to make sure that you shut the system down as gracefully as possible to ensure there isn't any data loss. Bởi vì điều này, bạn muốn chắc chắn rằng bạn tắt hệ thống xuống như gracefully nhất có thể để bảo đảm không có bất kỳ mất mát dữ liệu.

For every application that is installed on your server, you should make sure that you have the correct scripts in /etc/rc(x).d to gracefully shut down the service. Đối với mỗi ứng dụng được cài đặt trên máy chủ của bạn, bạn nên chắc chắn rằng bạn đã đúng các script trong / etc / rc (x). D để gracefully tắt dịch vụ.

Shutdown Shutdown
You have more than one command option that you can use. Bạn có nhiều hơn một tùy chọn lệnh mà bạn có thể sử dụng. The best command is this, executed as root: Lệnh này tốt nhất là, thực hiện như là người chủ:

shutdown -y -i5 -g0 shutdown-y-i5-g0

This will immediately shut the system down. Điều này ngay lập tức sẽ tắt hệ thống xuống. You can also use the older command that still works: Bạn cũng có thể sử dụng lệnh lớn tuổi mà vẫn hoạt động:

sync;sync;init 5 đồng bộ; đồng bộ; init 5

You can even use: Bạn thậm chí có thể sử dụng:

poweroff poweroff

Reboot Khởi động lại
If you are trying to reboot the system as opposed to turning it off, you could use: Nếu bạn đang cố gắng để khởi động lại hệ thống như trái ngược với tắt, bạn có thể sử dụng:

shutdown -y -i6 -g0 shutdown-y-i6-g0

Or: Hoặc:

sync;sync;init 6 đồng bộ; đồng bộ; init 6

Or even: Hoặc thậm chí:

reboot khởi động lại

So many commands to do the same thing… almost seems silly. Vì vậy, nhiều lệnh để làm điều tương tự ... gần như có vẻ ngớ ngẩn.

This article was originally written on 12/13/06 Tagged with: Bài viết này ban đầu được viết ngày 12/13/06 Tagged với: Solaris Solaris

Daily Email Updates Email cập nhật hàng ngày

You can get our how-to articles in your inbox each day for free. Bạn có thể làm thế nào chúng tôi vào các bài viết trong hộp thư của bạn mỗi ngày miễn phí. Just enter your name and email below: Chỉ cần nhập tên và email của bạn dưới đây:


Name: Tên:
Email: Email:

Comments (10) Comment (10)

  1. Steve Steve

    There are differences between shutdown, reboot, init 6. Có sự khác biệt giữa tắt máy, khởi động lại, init 6.

    Shutdown will issue a warning, and can be deferred. Shutdown sẽ phát hành một cảnh báo, và có thể được trả chậm.

    init 6 calls application shutdown scripts. init 6 cuộc gọi áp dụng lệnh tắt máy. reboot does not. khởi động lại không.

  2. The Geek The Geek

    Thanks for the tip… I had read somewhere that reboot calls the shutdown scripts, but I guess that was incorrect. Thanks for the tip ... Tôi đã đọc ở đâu đó rằng các tập lệnh khởi động lại các cuộc gọi tắt máy, nhưng tôi đoán rằng không chính xác.

  3. Ally Đồng minh

    Does any one know how to get the shutdown/hibernate options to appear on the logoff screen for my version: developers solaris 10? Không bất kỳ một trong biết làm thế nào để tắt / tùy chọn hibernate để xuất hiện trên màn hình khỏi mạng cho các phiên bản của tôi: các nhà phát triển solaris 10?
    I just want to use it on my home PC as a desktop OS. Tôi chỉ muốn sử dụng nó trên máy chủ của tôi như là một hệ điều hành máy tính để bàn.

  4. Colin Colin

    The sync's you've added before init are totally superflous. Các đồng bộ của bạn đã được gửi trước khi init là hoàn toàn superflous.
    “poweroff” only exists on the big SunFire systems. "Poweroff" chỉ tồn tại trên hệ thống Sunfire lớn.

  5. olivier d Olivier d

    avoir poweroff and reboot : as they don't call the /etc/…. avoir poweroff và khởi động lại: khi họ không gọi / etc / .... scripts they should be avoided unless absolutely necessary. tập lệnh mà họ cần phải tránh tuyệt đối, trừ khi cần thiết.

    prefer “init _number_” (works on old and new versions) for solaris. thích "init _number_" (chỉ hoạt động trên các phiên bản cũ và mới) cho solaris.

    (note: on linux, prefer “telinit _number_” to go in that mode (ex: telinit 1 to go into single user mode) (lưu ý: trên Linux, thích "telinit _number_" để đi trong chế độ đó (ví dụ: telinit 1 để đi vào chế độ người dùng đơn)

  6. Ihatebloatware Ihatebloatware

    Solaris 10 Developers edition – the CME desktop (the old one that looks a bit like an Amstrad 286 GUI, lol) doesn't seem to have a button to shutdown. Solaris 10 phiên bản phát triển - các máy tính để bàn CME (cũ trông giống như một GUI 286 Amstrad, lol) dường như không có một nút để tắt máy.

    The KDE desktop – I think I used the command line (terminal, konsole) and just typed in 'shutdown' – it's a bit temperamental cause the default install configures things like DHCP and expects the machine to be online all the time; mine isn't, so sometimes it refuses to entirely close. Các KDE máy tính để bàn - Tôi nghĩ rằng tôi đã sử dụng dòng lệnh (nhà ga, Konsole) và chỉ cần gõ vào 'tắt' - it's a bit temperamental gây ra mặc định cài đặt cấu hình DHCP và những thứ như dự kiến máy sẽ được trực tuyến tất cả các thời gian; mỏ ISN ' t, do đó, đôi khi nó từ chối hoàn toàn đóng. Sometimes it doesn't want to start either but it's usually ok and hasn't ever crashed. Đôi khi nó không muốn bắt đầu hoặc nhưng nó thường là ok và chưa bao giờ bị rơi. I haven't looked at what I should disable / enable yet on the running services… Tôi đã không nhìn vào những gì tôi nên tắt / bật nào được nêu ra trên các dịch vụ đang chạy ...

    nb – Sun's manual and help pages for commands for mounting USB harddrives are wrong for Developer 10! nb - Sun dẫn sử dụng và giúp cho các trang cho lệnh mount USB harddrives sai cho phát triển 10!

  7. Christian O Christian O

    How do you create a shutdown script that would reboot the computer for every 30 minutes with the warning script? Làm thế nào để bạn tạo một tập lệnh tắt máy mà có thể khởi động lại máy tính cho mỗi 30 phút với các tập lệnh cảnh báo?

  8. ayam Ayam

    #!/bin/ksh #! / bin / ksh

    echo “please reboot this computer NOW” echo "hãy khởi động lại máy tính này NOW"
    #END SCRIPT # END SCRIPT

    put that script in crontab and configure so it runs every 30 minutes đặt rằng kịch bản trong crontab và cấu hình để nó chạy mỗi 30 phút

  9. ranga Ranga

    i have a question .. tôi có một câu hỏi ..

    #shutdown -y -i5 -g0 # shutdown-y-i5-g0

    here g means gracefully and i means init 5 to shutdown ở đây có nghĩa là g gracefully và tôi có nghĩa là init 5 để tắt máy

    what is -y ? những gì được-y? what it indicates? nó cho thấy những gì?

  10. JoeSchmoe JoeSchmoe

    the '-y' means 'yes, i really mean to do this' the '-y' có nghĩa là 'có, tôi thực sự có ý nghĩa để làm điều này'


Leave a Comment Để lại một Thảo luận




Leave your Để lại của bạn friendly thân thiện comment here. bình luận ở đây.

If you have a computer help question, Nếu bạn có một câu hỏi giúp máy tính, click here to leave it on the forums bấm vào đây để lại nó trên các diễn đàn instead. thay vì.

Note: Your comment may not show up immediately on the site. Lưu ý: Ý kiến của bạn có thể không hiển thị ngay lập tức trên trang web.

Our Friends Bạn bè của chúng tôi
Getting Started Bắt đầu


About How-To Geek Giới How-To Geek
What Is That Process? Quá trình đó là gì?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Bản quyền © 2006-2009 HowToGeek.com. All Rights Reserved. Tất cả các quyền.