Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux System shutdown procedures     - Teach you how to choose to install CentOS 6.5 installation package (Linux)

- Merge sort Java implementation (Programming)

- crontab task scheduling Health Check (Linux)

- The hashcode method of Java (Programming)

- Python 3 for instructions encoded string conversion (Programming)

- CRF ++ Linux use (Linux)

- Let you Fun Ubuntu desktop eleven weapon (Linux)

- How to Install Node.js in CentOS 7 (Linux)

- Linux system ARP attack solution (Linux)

- Using PPA to install the lightweight theme software HotShots 2.1.0 under Ubuntu (Linux)

- 20 Unix / Linux command skills (Linux)

- Install MATE desktop environment adjustment tools Mate Tweak 3.3.6 (Linux)

- Android Custom View password box example (Programming)

- Linux System Tutorial: Fix ImportError: No module named wxversion error (Linux)

- C / C ++ language variable scope: local variables, global variables, file-level variables (Programming)

- Linux Network Programming - raw socket programming (Programming)

- Linux GCC 5.1.0 compiler installation (Linux)

- floating IP in OpenStack neutron (Server)

- Puppet 3.x installed on Debian 7 (Server)

- CentOS 7 RHEL 7 to reset the root password (Linux)

  Linux System shutdown procedures
  Add Date : 2018-11-21      
  In the chat, a message saying Linux users sent a sudden power failure, the data is not saved, then how in the enterprise to ensure that all data stored on the hard disk of it? This makes me think of the difference between this and the windows, when you want to shut down the server, if someone connects to the server to access data windows, windows will prompt someone to connect to the current server, we notify the user do to facilitate preservation of data preparation, so Linux is not so smart, and to our own artificial prompting the user.

Linux on the shutdown procedures, most of the users that will use the shutdown -h now everything will be fine, in fact, Linux shutdown is also a place worth noting that, let's talk about the shutdown process to do some work to do it !

1. Check the current online staff, who can use this command, you can know who is using Linux resources, this is generally referred to as remote login (Telnet or SSH) to operate the Linux host.

2. See who's connected to the host computer, you can use the netstat command, use the method is generally:

1 netstat -a displays all of the services provided by the state of the machine, behind the display appeared, LISTEN said it is listening service.

2 netstat -an on the basis of the above you can see which port is in use.

3. synchronous data to the hard disk. Under normal circumstances, Linux will be 30 seconds to perform a sync command to write data to the hard disk memory.

Since the Linux system, in order to speed up the read speed of data, in some cases, some data is not directly written to the hard disk, but is temporarily stored in the first memory of them, if the data is repeatedly calls or rewritten, Since then it has not been written to disk is read directly from the memory of them out on a fairly fast, if the data is not stored in the case, restart or shutdown or a sudden power failure, the consequences can be imagined. So you need to restart or shut down when the sync command to write data synchronization input sync, in memory of the data has not been saved, it will be written to the hard disk, instead of the original version, so that the system shut down or restart before the boot, it is best to execute the command, the general command to execute it several times, it is generally preferred to enter the third sync command.

4. Finally, execute the appropriate commands to perform the corresponding action.

Shutdown command: shutdown

Restart: reboot

Direct Power Off: halt

Note: shutdown can also transmit a warning message to the user login: # shutdown +5 "System will shutdown after 5 minutes" on notice that five minutes after shutdown.
- MySQL Installation Troubleshooting (Database)
- MySQL Parameter Tuning Best Practices (Database)
- IOS distributed management using GitHub project development (Linux)
- Oracle RAC node on the expulsion of the inspection process on OEL6.3 (Database)
- To use Java arrays implement the order form (Programming)
- Using Android Studio integrated development environment to build Android (Linux)
- Workspace Go language and environment variables GOPATH (Linux)
- vnStatSVG: traffic monitoring software vnStat (Linux)
- pscp use Detailed Windows and Linux each file transfer tool (Linux)
- Linux Getting Started tutorial: Experience VirtualBox Virtual Machine chapter (Linux)
- The user of fedora is not in the sudoers file method to solve (Linux)
- Shell script to crawl through AWR SQL Report Problems (Database)
- Shell generated using automated configuration script Orabbix (Database)
- U disk to install Windows and Ubuntu 15.04 dual system (Programming)
- You need to know 12 Git High Command (Linux)
- Docker startups use continuous integration deployment (Server)
- Linux, Firefox unloading and installation and upgrade (Linux)
- Ubuntu install video playback software SMPlayer (Linux)
- PostgreSQL-- run Supervisord on Docker in Ubuntu (Database)
- CentOS Linux Optimization and real production environment (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.