dhclient報錯:dhclient(3108) is already running – exiting.的解決方法

問題表現:
執行dhclient命令時丟擲以下錯誤。

dhclient(3108) is already running - exiting.
This version of ISC DHCP is based on the release available
on ftp.isc.org. Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.
Please report for this software via the CentOS Bugs Database:
 http://bugs.centos.org/
exiting.

解決方法:
查詢dhclient程序。

[root@localhost ~]# ps -ef | grep dhclient
root 3108 1    0 04:36 ?     00:00:00 dhclient
root 4140 3013 0 05:16 pts/0 00:00:00 grep dhclient

可以看到程序ID是3108,殺死他。

[root@localhost ~]# kill -9 3108

之後再次執行dhclient就正常了。

2 thoughts on “dhclient報錯:dhclient(3108) is already running – exiting.的解決方法”

  1. dhclient ens3
    dhclient(4329) is already running – exiting.
    This version of ISC DHCP is based on the release available
    on http://ftp.isc.org. Features have been added and other changes
    have been made to the base software release in order to make
    it work better with this distribution.
    Please report for this software via the CentOS Bugs Database:
    http://bugs.centos.org/
    exiting.
    這個報錯解決一下

    1. 兄弟,按照文章上寫的,結束dhclient程序再重新執行就好了,或者你可以試著加-r引數重新獲取IP。出這個問題是因為dhclient只能執行一個例項,一般如果你網絡卡設定了自啟動,那麼開機就會執行這個程式,你再執行就出錯了。

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Code