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.