Linux: Ubuntu13.04 because the local machine has Nginx, there is no need to install Apache2. However, to learn how to use icinga today, let's take a look at apache2. Now we are familiar with icinga and use Nginx to replace Apache2. Installation is simple: apt-getinstallapache2 and Automatic startup failed, because my Nginx occupies port 80 and port 443. Whereisapach
Linux: Ubuntu 13.04
Because the local machine has Nginx, there is no need to install Apache2.
However, to learn how to use icinga today, let's take a look at apache2. Now we are familiar with icinga and use Nginx to replace Apache2.
Installation is simple:
Apt-get install apache2
Then auto start fails because Nginx occupies port 80 and port 443.
Find the/etc/apache2 directory through whereis apache2
Okay. Open the ports. conf file in this directory,
Change all port 80 to 81,443.
Then, read the file comment and say the/etc/apache2/sites-enabled/000-default file is required. After the file is opened
Set
Modify it to 81, and then you can see that the root directory is under/var/www.
Check the index.html file in/var/www/directory.
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
Restart apache2 now
Service apache2 restart
* Restarting web server apache2 apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... Waiting apache2: cocould not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[OK]
You can open the/etc/apache2/apache2.conf file.
Add the previous sentence:
ServerName localhost
After restarting again, the error disappears.
Open the webpage and enter localhost: 81address. The index.html page is displayed.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2