linux 进程

杀死进程 kill

  kill    选项  进程号

  选项   -9  强迫进程立即停止

以树状的形式显示进程的pid

  pstree -p

防火墙:

  service  iptables   restart  重启防火墙

          status     状态

          stop      停止

          start      开启

查看某个服务的运行状态   service sshd   status

测试某个端口 

  telnet  ip地址    端口

列出系统有哪些服务服务?

ls  -l  /etc/init.d

chkconfig  -- list  所有的服务在各个级别的运行情况

chkconfig  服务名  --list 只查看一个服务的级别情况

chkconfig  --level  5  服务名  on/off   设置某个应用在某个级别是否自开启

原文地址:https://www.cnblogs.com/mm163/p/10494154.html