O & M monitoring Nagios serialization 2: deploying an apache server (1)

Source: Internet
Author: User

As the saying goes: to do good things, you must first sharpen your tools. to make system management easier and more effective, a good monitoring tool is essential. here, I recommend nagios, an open-source monitoring tool that has been used for more than four years and is powerful and customizable.

O & M monitoring Nagios serialization 1: self-monitoring implementation of Nagios servers
O & M monitoring Nagios serialization 2: deploying an apache server
O & M monitoring Nagios serialization 3: deploying and configuring the Nagios Service
O & M monitoring Nagios serialization 4: Nagios monitoring mysql Server
O & M monitoring Nagios serialization 5: Important policies for key application monitoring


Apache should be the most commonly used deployment. It can be complicated, but on nagios, we only need simple functions to verify users, just add a little modification. This is also to reflect "the simpler and easier thinking ". It is easy to do. In the future, redeployment or recovery will be faster and there will be no pressure [1].

(1) install apache
Tar zxvf httpd-2.2.8.tar.gz
Cd httpd-2.2.8
./Configure -- prefix =/usr/local/apache # You only need this option
Make
Make install

(2) Check whether apache is correctly installed
1. Run/usr/local/apache/bin/apachectl-t to check whether the apache configuration file syntax is correct. The unaltered apache configuration file syntax is obviously correct when we configure the file httpd. when the conf or its files have been changed, it is best to run this command first, and its error output can quickly locate where the configuration file has an error.

2. Run the command line/usr/local/apache/bin/apachectl start to start the apache daemon and enter the IP address of the server in the browser of another machine, check whether the default page of apache can be browsed normally-usually IT works! ". To facilitate apache maintenance in the future, we can modify the environment variable file/etc/profile and append the line "export PATH = $ PATH: /usr/local/apache/bin ", save and execute source/etc/profile to make the change take effect immediately. In this way, we will not have to enter a long path when executing commands such as apache startup, enter apachectl start directly.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.