Fedora Linux是著名的redhat公司除收费的RHEL发行版外一个免费的实验性操作系统(实验性是相对于Redhat Enterprise Linux而言); 其最新版本Version 13在近期发布了(点这里进入下载页面);Fedora是一个基于社区的发行版本,同时它十分流行,其流行度仅次于Ubuntu乌班图。
|
|||||
|
我们知道hostid作为一台主机的唯一标示符(hostname本身可能重复),而许多付费软件通过鉴别hostid发给相关的license. hostname的修改较为简单,只需要修改/etc/sysconfig/network中的hostname并重启即可。 hostid的修改就不那么方便了,下面介绍一种方法: 编辑一个c文件,是的之后你还需要修改它,就叫做host.c吧! #include <stdio.h> #include <unistd.h> int main() { long id,res; // get real (default) hostid id = gethostid(); printf(“current hostid is: %x\n”,id); // set new hostid if is superuser res = sethostid(0xa090d01); //括号内填入你想要的hostid if (res == 0) printf(“if result is zero – success! (%d) \n”,res); // check if it is changed…. id . . . → Read More: 在linux平台上如何修改hostid |
|||||
|
Copyright © 2012 Oracle Clinic – Maclean Liu的个人技术博客 - All Rights Reserved |
|||||
最新评论