Practical mod_perl-CHAPTER 5:Web Server Control, Monitoring, Upgrade, and Maintenance

Tham khảo tài liệu 'practical mod_perl-chapter 5:web server control, monitoring, upgrade, and maintenance', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Page 146 Thursday November 18 2004 12 36 PM CHAPTER 5 Web Server Control Monitoring Upgrade and Maintenance This chapter covers everything about administering a running mod_perl server. First we will explain techniques for starting restarting and shutting down the server. As with Perl there s more than one way to do it and each technique has different implications for the server itself and the code it runs. A few widely used techniques for operating a server are presented. You may choose to use one of the suggested techniques or develop your own. Later in the chapter we give instructions on upgrading and disabling scripts on a live server using a three-tier scheme and monitoring and maintaining a web server. Starting the Server in Multi-Process Mode To start Apache manually just run its executable. For example on our machine a mod_perl-enabled Apache executable is located at home httpd httpd_perl httpd_perl. So to start it we simply execute panic home httpd httpd_perl bin httpd_perl This executable accepts a number of optional arguments. To find out what they are without starting the server use the -h argument panic home httpd httpd_perl bin httpd_perl -h The most interesting arguments will be covered in the following sections. Any other arguments will be introduced as needed. Starting the Server in Single-Process Mode When developing new code it is often helpful to run the server in single-process mode. This is most often used to find bugs in code that seems to work fine when the server starts but refuses to work correctly after a few requests have been made. It also helps to uncover problems related to collisions between module names. 146 Page 147 Thursday November 18 2004 12 36 PM Running in single-process mode inhibits the server from automatically running in the background. This allows it to more easily be run under the control of a debugger. The -X switch is used to enable this mode panic home httpd httpd_perl bin httpd_perl -X With the

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
24    19    1    27-11-2024
187    25    1    27-11-2024
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.