- 查看服务状态
systemctl status httpd
- 开启服务
systemctl start httpd
- 设置开机启动
systemctl enable httpd
- 关闭服务
systemctl stop httpd
- 防火墙操作
iptables -I INPUT -p TCP --dport 80 -j ACCEPT
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
- 查看作业及kill
jobs -l 显示所有job
kill 或 kill -9 终止进程;一般情况下,-9可以马上杀死进程,没有任何阻塞