gethostname, sethostname -获取/设置主机名内容简介#include int gethostname(char *name, size_tlen);int sethostname(const char *name, size_tlen);描述These system calls are used to access or to change the host name of..._uclibc gethostname...
文章浏览阅读5.7k次。http://extr3metech.wordpress.com/2012/12/12/changing-hostname-in-centos-red-hat-linux/http://www.chenshake.com/linux-foundation-set-fqdn-hostname/To change host name in Linux from command line, type:v_centos的fqdn可以在哪里改...