linux怎么看dhcp服务

 2022-06-24    784  

linux怎么看dhcp是否关闭

查看服务状态

linux怎么看dhcp服务

/etc/init.d/dhcpd status

查看是否运行dhcp服务:

ps aux | grep dhcp  |grep -v grep

ps aux指令

linux上进程有5种状态:

1. 运行(正在运行或在运行队列中等待)

2. 中断(休眠中, 受阻, 在等待某个条件的形成或接受到信号)

3. 不可中断(收到信号不唤醒和不可运行, 进程必须等待直到有中断发生)

4. 僵死(进程已终止, 但进程描述符存在, 直到父进程调用wait4()系统调用后释放)

5. 停止(进程收到SIGSTOP, SIGSTP, SIGTIN, SIGTOU信号后停止运行运行)

扩展知识:

1. 查看是否设置开机启动

chkconfig --list | grep dhcpd

2. 查看端口是否打开

netstat -anulp | grep :67

3:关闭 dhcpd

/etc/init.d/dhcpd   stop

4:开启 hdcpd

/etc/init.d/dhcpd   start


  •  标签:  
  • linux
  •  

原文链接:https://77isp.com/post/1503.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。