Strona 1 z 1

Komenarze wewnątrz jednego polecenia skryptu powłoki

: 20 marca 2011, 16:20
autor: starach
Cześć,
Chciałem zrobić skrypt uruchamiający proces konfiguracji instalacji serwera Apache, który przetestuję u siebie a potem wyślę na serwer gdzie mi posłuży tam ponownie. Chyba najlepiej za to co chcę w nim osiągnąć przemówi sam kod:

Kod: Zaznacz cały

../apache-src/configure \
--prefix=/opt/apache \
--disable-actions \ #Disable action triggering on requests, which is provided by mod_actions.
--disable-alias \ #Disable the mapping of requests to different parts of the filesystem, which is provided by mod_alias.
--disable-asis \ #Disable support for as-is filetypes, which is provided by mod_asis.
--disable-auth-basic \ #Disable user-based access control provided by mod_auth. This module provides for HTTP Basic Authentication, where the usernames and passwords are stored in plain text files.
--disable-autoindex \ #Disable the directory listing functionality provided by mod_autoindex.
--disable-access \ #Disable host-based access control provided by mod_access.
--disable-cgi \ #mod_cgi, which provides support for CGI scripts, is enabled by default when using a non-threaded MPM. Use this option to disable CGI support.
--disable-cgid \ #When using the threaded MPMs worker support for CGI scripts is provided by mod_cgid by default. To disable CGI support use this option.
--disable-charset-lite \ #Disable character set translation provided by mod_charset_lite. This module will be installed by default only on EBCDIC systems.
--disable-dir \ #Disable directory request handling provided by mod_dir.
--disable-env \ #Enable setting and clearing of environment variables, which is provided by mod_env.
--disable-http \ #Disable the HTTP protocol handling. The http module is a basic one, enabling the server to function as an HTTP server. It is only useful to disable it if you want to use another protocol module instead. Don't disable this module unless you are really sure what you are doing. 
#Note: This module will always be linked statically.
--disable-imagemap \ #Disable support for server based imagemaps, which provided by mod_imagemap.
--disable-include \ #Disable Server Side Includes provided by mod_include.
--disable-log-config \ #Disable the logging configuration provided by mod_log_config. You won't be able to log requests to the server without this module.
--disable-mime \ #mod_mime associates the requested filename's extensions with the file's behavior and content (mime-type, language, character set and encoding). Disabling this module is normally not recommended.
--disable-negotiation \ #Disable content negotiation provided by mod_negotiation.
--disable-setenvif \ #Disable support for basing environment variables on headers, which is provided by mod_setenvif.
--disable-status \ #Enable the process/thread monitoring, which is provided by mod_status.
--disable-userdir #Disable the mapping of requests to user-specific directories, which is provided by mod_userdir.
edit>

Kod: Zaznacz cały

../apache-src/configure \
--prefix=/opt/apache \
--disable-actions	`: Disable action triggering on requests, \which is provided by mod_actions.` \
--disable-alias		`: Disable the mapping of requests to different parts of the filesystem, \which is provided by mod_alias.` \
--disable-asis		`: Disable support \for as-is filetypes, \which is provided by mod_asis.` \
--disable-auth-basic	`: Disable user-based access control provided by mod_auth. This module provides \for HTTP Basic Authentication, where the usernames and passwords are stored in plain text files.` \
--disable-autoindex	`: Disable the directory listing functionality provided by mod_autoindex.` \
--disable-access	`: Disable host-based access control provided by mod_access.` \
--disable-cgi		`: mod_cgi, \which provides support \for CGI scripts, is enabled by default when using a non-threaded MPM. Use this option to disable CGI support.` \
--disable-cgid		`: When using the threaded MPMs worker support \for CGI scripts is provided by mod_cgid by default. To disable CGI support use this option.` \
--disable-charset-lite	`: Disable character \set translation provided by mod_charset_lite. This module will be installed by default only on EBCDIC systems.` \
--disable-dir		`: Disable directory request handling provided by mod_dir.` \
--disable-env		`: Enable setting and clearing of environment variables, \which is provided by mod_env.` \
--disable-http		`: Disable the HTTP protocol handling. The http module is a basic one, enabling the server to \function as an HTTP server. It is only useful to disable it if you want to use another protocol module instead. Don\'t disable this module unless you are really sure what you are doing. Note: This module will always be linked statically.` \
--disable-imagemap	`: Disable support \for server based imagemaps, \which provided by mod_imagemap.` \
--disable-include	`: Disable Server Side Includes provided by mod_include.` \
--disable-log-config	`: Disable the logging configuration provided by mod_log_config. You won\'t be able to log requests to the server without this module.` \
--disable-mime		`: mod_mime associates the requested filename\'s extensions with the \file\'s behavior and content (mime-type, language, character \set and encoding). Disabling this module is normally not recommended.` \
--disable-negotiation	`: Disable content negotiation provided by mod_negotiation.` \
--disable-setenvif	`: Disable support \for basing environment variables on headers, \which is provided by mod_setenvif.` \
--disable-status	`: Enable the process/thread monitoring, \which is provided by mod_status.` \
--disable-userdir	`: Disable the mapping of requests to user-specific directories, \which is provided by mod_userdir.`