Linxu System common service start, shutdown, firewall restart, stop, shut down, service boot common command

Source: Internet
Author: User

1. Permanent effect, no recovery after reboot

Open: Chkconfigiptables on

OFF: Chkconfigiptables off


2, immediate effect, restart after restart firewall restart

Way One:/etc/init.d/iptables restart

Mode two: Service iptables restart

Turn off the firewall: mode one:/etc/init.d/iptables stop

Mode two: Service iptables stop

Start firewall mode one:/etc/init.d/iptables start

Mode two: Service iptables start


Strace tracing process (e.g. Sshd,yum installation)

Failed to open or restart a process, you can use the Strace trace process

Strace/etc/init.d/sshd Restart can see trace information


SELinux

1 Permanent method – Requires server restart

Modify the/etc/selinux/config file to set selinux=disabled, and then restart the server.

2 Temporary methods – Set system parameters using the command Setenforce 0

attached: Setenforce 1 set SELinux to become enforcing mode

Setenforce 0 Setting SELinux to become permissive mode


Shutdown (System shutdown, restart, and logout)

SHUTDOWN-H now shut down system (1)

Init 0 Shutdown System (2)

Telinit 0 Shutdown System (3)

Shutdown-h Hours:minutes & Shutdown system at scheduled times

Shutdown-c Cancel the system at a predetermined time

Shutdown-r now restart (1)

Reboot restart (2)

Logout logoff


This article is from the Linux system Learning extension blog, so be sure to keep this source http://zhangxiaoxiong.blog.51cto.com/11657691/1785668

Linxu System common service start, shutdown, firewall restart, stop, shut down, service boot common command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.