31.2. PXE 引​​​​​​​导​​​​​​​配​​​​​​​置​​​​​​​

下​​​​​​​一​​​​​​​步​​​​​​​是​​​​​​​复​​​​​​​制​​​​​​​启​​​​​​​动​​​​​​​安​​​​​​​装​​​​​​​所​​​​​​​必​​​​​​​需​​​​​​​的​​​​​​​文​​​​​​​件​​​​​​​到​​​​​​​ tftp 服​​​​​​​务​​​​​​​器​​​​​​​,这​​​​​​​样​​​​​​​当​​​​​​​客​​​​​​​户​​​​​​​请​​​​​​​求​​​​​​​时​​​​​​​就​​​​​​​可​​​​​​​以​​​​​​​找​​​​​​​到​​​​​​​。​​​​​​​tftp 服​​​​​​​务​​​​​​​器​​​​​​​和​​​​​​​输​​​​​​​出​​​​​​​安​​​​​​​装​​​​​​​树​​​​​​​的​​​​​​​网​​​​​​​络​​​​​​​服​​​​​​​务​​​​​​​器​​​​​​​通​​​​​​​常​​​​​​​是​​​​​​​同​​​​​​​一​​​​​​​个​​​​​​​。​​​​​​​
要​​​​​​​复​​​​​​​制​​​​​​​这​​​​​​​些​​​​​​​文​​​​​​​件​​​​​​​,你​​​​​​​可​​​​​​​以​​​​​​​在​​​​​​​ NFS、​​​​​​​FTP 或​​​​​​​ HTTP 服​​​​​​​务​​​​​​​器​​​​​​​上​​​​​​​运​​​​​​​行​​​​​​​「​​​​​​​网​​​​​​​络​​​​​​​引​​​​​​​导​​​​​​​工​​​​​​​具​​​​​​​」​​​​​​​。​​​​​​​你​​​​​​​并​​​​​​​不​​​​​​​需​​​​​​​要​​​​​​​一​​​​​​​台​​​​​​​独​​​​​​​立​​​​​​​的​​​​​​​ PXE 服​​​​​​​务​​​​​​​器​​​​​​​。​​​​​​​

31.2.1. 命​​​​​​​令​​​​​​​行​​​​​​​配​​​​​​​置​​​​​​​

If the network server is not running X, the pxeos command line utility, which is part of the system-config-netboot package, can be used to configure the tftp server files as described in 第 31.4 节 “TFTPD”:
pxeos -a -i "<description>" -p <NFS|HTTP|FTP> -D 0 -s client.example.com \ 
-L <net-location> -k <kernel> -K <kickstart> <os-identifer>
以​​​​​​​下​​​​​​​列​​​​​​​表​​​​​​​解​​​​​​​释​​​​​​​了​​​​​​​这​​​​​​​些​​​​​​​选​​​​​​​项​​​​​​​:
  • -a — 指​​​​​​​定​​​​​​​被​​​​​​​添​​​​​​​加​​​​​​​到​​​​​​​ PXE 配​​​​​​​置​​​​​​​的​​​​​​​操​​​​​​​作​​​​​​​系​​​​​​​统​​​​​​​实​​​​​​​例​​​​​​​。​​​​​​​
  • -i "<description>" — Replace "<description>" with a description of the OS instance.
  • -p <NFS|HTTP|FTP> — Specify which of the NFS, FTP, or HTTP protocols to use for installation. Only one may be specified.
  • -D <0|1> — Specify "0" which indicates that it is not a diskless configuration since pxeos can be used to configure a diskless environment as well.
  • -s client.example.com — 提​​​​​​​供​​​​​​​ NFS、​​​​​​​FTP 或​​​​​​​ HTTP 服​​​​​​​务​​​​​​​器​​​​​​​的​​​​​​​名​​​​​​​字​​​​​​​。​​​​​​​
  • -L <net-location> — Provide the location of the installation tree on that server after the -L option.
  • -k <kernel> — Provide the specific kernel version of the server installation tree for booting.
  • -K <kickstart> — Provide the location of the kickstart file, if available.
  • <os-identifer> — Specify the OS identifier, which is used as the directory name in the /tftpboot/linux-install/ directory.
If FTP is selected as the installation protocol and anonymous login is not available, specify a username and password for login, with the following options before <os-identifer> in the previous command:
-A 0 -u <username> -p <password>
关​​​​​​​于​​​​​​​ pxeos 命​​​​​​​令​​​​​​​的​​​​​​​命​​​​​​​令​​​​​​​行​​​​​​​选​​​​​​​项​​​​​​​的​​​​​​​更​​​​​​​多​​​​​​​信​​​​​​​息​​​​​​​,请​​​​​​​参​​​​​​​考​​​​​​​ pxeos 帮​​​​​​​助​​​​​​​页​​​​​​​。​​​​​​​

为了尽快向用户提供最新的信息,本文档可能会包括由机器自动从英文原文翻译的内容。如需更多信息,请参阅此说明。