loopback & SARAH Linux

Egon Eckert egon na www.capitol.cz
Neděle Červenec 6 14:37:53 CEST 1997


Zdenek Pizl, Czech Agriculture University, Prague <pizl na max.af.czu.cz> wrote:

:  potrebuju si na PC, ktery je lokalne, pustit httpd tak aby mi simuloval
: www server se vsim vsudy, a nevim jak na to

Pro takovou trivialitu IMHO neni vubec potreba loopback device. Staci
zkompilovat kernel s podporou TCP/IP, automaticky ziskate 'localhost' s
adresou 127.0.0.1, coz je to o co vam jde. Doufam, ze vite co to znamena
'zkompilovat kernel'. :)

Viz. dokumentace :

Loop device support
CONFIG_BLK_DEV_LOOP
  Enabling this option will allow you to mount a file as a file
  system.  This is useful if you want to check an ISO9660 file system
  before burning the CD, or want to use floppy images without first
  writing them to floppy.  This option also allows one to mount a
  filesystem with encryption.  To use these features, you need a
  recent version of mount (check the file Documentation/Changes for
  location and latest version).  Note that this loop device has
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  nothing to do with the loopback device used for network connections
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  from the machine to itself.  Most users will answer N here.
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
To tedy nepotrebujete. Co potrebujete, je toto :

TCP/IP networking
CONFIG_INET
  These are the protocols used on the Internet and on most local
  Ethernets. The safest is to say Y here (which will enlarge your
  kernel by about 35 kB), since some programs (e.g. the X window
  system) use TCP/IP even if your machine is not connected to any
  other computer. You will get the so-called loopback device which
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  allows you to ping yourself (great fun, that!). This option is also
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  necessary if you want to use the full power of term (term is a
  program which gives you almost full Internet connectivity if you
  have a regular dial up shell account on some Internet connected Unix
  computer. Read the Term-HOWTO, available via ftp (user: anonymous)
  on sunsite.unc.edu:/pub/Linux/docs/HOWTO).  Short answer:
  say Y.

To je ono. Koneckoncu, tato option by mela byt na unixovem systemu v kernelu
SAMOZREJME.

Egon Eckert


Další informace o konferenci Linux