Apache common interview

  1. Apache operating modes and features in the Linux system? How to make use Apache worker mode?
  • prefork is a non-threaded, and derivative mode of operation, using a process to deal with the request, it is relatively easy to consume memory, but good stability, a process problem does not affect other requests.
  • worker is using multiple sub-processes, each child process has multiple threads, it is due to the use of threads to handle requests, memory consumption is small, suitable for high flow of requests, but a process if there is a problem, then the thread will appear under this process problem that stability is not very good.
  • event model is to solve the keep-alive mode of operation to maintain a long connection appears, use a long time keep-alive connections, a thread will always be occupied, even with no request needs to wait for a timeout before being released, this time there have been working mode of the event appeared. In the event mode of operation, there will be some dedicated thread to manage these keep-alive type of thread, when there is a request to come true, the thread passes the request to the server, after the implementation, but also allow it to be released. This enhances the request processing in a highly concurrent scenarios. In addition, event mode is not supported in the use of https.
  • Designated worker compiled mode, the default mode is prefork
  1. Apache long connection time adjustment
#vim  httpd.conf
Include conf/extra/httpd-default.conf
#vim /usr/local/apache/conf/extra/httpd-default.conf
Timeout 1800
  1. apache hide the version number method
  1. Apache log cutting
  2. Apache achieve security chain function
  3. Apache supports authentication mode
  4. Apache supports virtual host type

Guess you like

Origin www.cnblogs.com/joinbestgo/p/11023496.html