My personal work is summarized for your reference. if anything is wrong, please point out and thank you. View all network card IP Addresses & mdash; ipaddr start firewall & mdash; systemctlstartfirewalld. service stop firewall & mdash; systemctlst
My personal work is summarized for your reference. if anything is wrong, please point out and thank you.
View all NIC ip addresses -- ip addr
Start firewall -- systemctl start firewalld. service
Stop firewall -- systemctl stop firewalld. service
Disable firewall startup -- systemctl disable firewalld. service
List the running service status-systemctl
Start a service --systemctl start postfix.service
Close a service --systemctl stop postfix.service
Restart a service :--systemctl restart postfix.service
Display the status of a service --systemctl status postfix.service
Enable a service at startup --systemctl enable postfix.service
Disable a service at startup --systemctl disable postfix.service
Check whether the service is started --systemctl is-enabled postfix.service;echo $?
View the list of started Services --systemctl list-unit-files|grep enabled
Set the system default startup running level 3 --ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
Set the system default startup running level 5 --ln -sf/lib/systemd/system/graphical.target/etc/systemd/system/default.target