How to shutdown a server


The linked article describes example of how to shutdown a server by anyone from beginners to experts. This is the summary.

Beginners: Login as root and then shutdown.

Intermediates: Login as root, and then check if active TCP connection, services and processes. Shutdown the services and the processes. Shutdown the server.

Experts: Confirm input command several times, and then press enter. Shutdown after doing “sync” x3 and confirm if he miss some operations. Experts are very cautious.

At the end of article, he wrote commands when he shutdown a server.

# ps -ef|more
# netstat -an|more
# w
# free

ps – report a snapshot of the current processes.
-e Select all processes.
-f does full-format listing.

netstat – Display  network  connections, routing tables, interface statistics, masquerade connections, netlink messages, and multicast memberships
-a print all sockets, including the listening server sockets.
-n shows numerical  addresses instead of trying to determine symbolic host, port or user names.

w – Show who is logged on and what they are doing.
free – Display amount of free and used memory in the system

How to shutdown a server

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s