可以通过执行下面的代码来修改linux系统的hostid
#!/usr/bin/python
from struct import pack
hostid = pack("I",int("0x210a2500",16))
filename = "/etc/hostid"
open(filename,"wb").write(hostid)
#!/usr/bin/pyth