LINUX Apache 2.0 Simple installation, configuration, testing process

xiaoxiao2021-03-06  100

For detailed installation configuration procedures, please refer to

Compilation and installation

The compiler with ANSI-C must be installed, the GCC must be recommended, and the path to the basic compilation tool such as Make is required.

Get Apache2.0 installation package

#wget

http://www.apache.org/dist/httpd/httpd-2.0.52.tar.gz

Decompression

#gzip -d httpd-2.0.52.tar.gz

#TAR XVF httpd-2.0.52.tar

Code tree configuration

#CD httpd-2.0.52

#. / configure --prefix = / etc / apache (here specified Apache file installation in / etc / apache directory)

This step involves more complex configuration parameters, using #. / Configure --help view help

Introduce each configuration parameter in detail later

Configure needs to wait a few minutes

Compilation # make

Need to wait a few minutes, the actual time required due to your hardware and the number of modules, it will be very different.

Install #make install

Will install according to the -prefix parameters, if it is an upgrade, the installer will not overwrite your profile and documentation

Configuring #vi /etc/apache/conf/httpd.conf

This configuration file will be detailed. // localhost / to request your first web page # / etc / apache / bin / apachectl stop, you can send three signals to the parent process that is running: Term, HUP, and USR1 about three signals Please refer to the following address to stop and restart the server immediately stop TermapAcTL Stop to send a TERM signal to the parent process to make it immediately killed all its sub-process. This will take some time to kill all child processes. Since then, the parent process has exited itself. All requests are aborted and no longer accept other requests to restart the USR1APACHECTL GraceFulusr1 signal so that the parent process suggests that the child process exits after completing their current request (if they don't have a service, will immediately exit). The parent process re-reads its profile and reopen its log file. Whenever a child is dead, the parent process immediately generates a child process with the configuration file and starts the servo new request. Restart the Hupapachectl Restart to send HUP or RESTART signals to the parent process to kill all child processes like they receive the TERM signal, and the difference is that the parent process itself does not quit. It re-reads its configuration file and reopen the log file. Then generate a range of new sub-processes to continue its service.

转载请注明原文地址:https://www.9cbs.com/read-97379.html

New Post(0)