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