Linux中与网络配置有关的文件.doc

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux中与网络配置有关的文件

Linux中与网络配置有关的文件 /etc/hosts 这个文件是把IP地址和主机名联系起来的简单文件。文件内容如下: # Do not remove the following line, or various programs # that require network functionality will fail. spring localhost.localdomain localhost /etc/services记录着端口号和服务之间的对应关系,这个文件不需要修改。文件内容如下 # /etc/services: # $Id: services,v 1.32 2003/01/09 17:56:30 dwalsh Exp $ # # Network services, Internet style # # Note that it is presently the policy of IANA to assign a single well-known # port number for both TCP and UDP; hence, most entries here have two entries # even if the protocol doesnt support UDP operations. # Updated from RFC 1700, ``Assigned Numbers (October 1994). Not all ports # are included, only the more common ones. # # The latest IANA port assignments can be gotten from # /assignments/port-numbers # The Well Known Ports are those from 0 through 1023. # The Registered Ports are those from 1024 through 49151 # The Dynamic and/or Private Ports are those from 49152 through 65535 # # Each line describes one service, and is of the form: # # service-name port/protocol [aliases ...] [# comment] tcpmux 1/tcp # TCP port service multiplexer tcpmux 1/udp # TCP port service multiplexer rje 5/tcp # Remote Job Entry rje 5/udp # Remote Job Entry echo 7/tcp echo 7/udp discard 9/tcp sink null discard 9/udp sink null 厖 /etc/sysconfig/network 这个文件可以配置一些基本的网络信息。如主机名、网关。文件内容如下: NETWORKING=yes (是否需要配置网络,值是yes或no ,一般为yes. HOSTNAME=spring (主机名,要更改主机名可以修改此项,重启后生效。 GATEWAY=54 (配置主机的网关 /etc/host.conf 指定主机进行域名解析时的查找顺序。 order hosts,bind /etc/nsswitch.conf是由SUN公司开发的,用于管理系统中多个配置文件查找顺序,比/etc/host.conf功能多,我们一般不使用。文件内容如下: # /etc/nsswitch.conf # An example Name Service Switch config file. This file should be # sorted with the most-used services at the beginning. # The entry [NOTFOUND=return] means that the search for an # entry should stop if the search in the previous entry turned # up nothing. Note that if the search failed due to some other reason # (like no NIS server respondin

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档