Centos 7
防火墙服务查看:systemctl status firewalld
启动:systemctl start firewalld
关闭:systemctl stop firewalld (临时) systemctl disable firewalld
Ntp服务查看:systemctl status ntpd
启动:systemctl start ntpd(临时) systemctl enable ntpd
SELinux服务查看:getenforce 或者/usr/sbin/sestatus
关闭:setenforce 0(临时)
查询当前时区:date -R
查询占用8080端口的进程:fuser -v -n tcp 8080
vi在当前行的下一行插入,按o或者O键