centos 6
chkconfig — list
centos7从init切换到systemd启动的原因是,init只支持单线程启动,而systemd支持同时启动多个服务,更快。
centos7 列出所有开机自启服务
systemctl list-unit-files
enabled代表开机自启动,disabled代表非开机自启,static代表不确定是否开机自启,因为可能依赖于其他服务
centos6防火墙iptables(哪些ip、port放行,就是个过滤的表)
centos7防火墙firewalld
systemctl enable firewalld
systemctl disable firewalld