Install and modify the Apache2 port in UBuntu because the local machine has Nginx, so 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. The installation is simple: [plain] apt-getins... UBuntu installs and modifies the Apache2 port because the local machine has Nginx, so 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. The installation is simple: [plain] apt-get install apache2 and then Auto Start fails, because Nginx occupies port 80 and port 443. Find the/etc/apache2 Directory through whereis apache2 and open ports under the Directory. in the conf file, change all port 80 to Port 81,443 to Port 444. then, read the file comment and say that the/etc/apache2/sites-enabled/000-default file is required. after opening the file, [plain] Modify it to 81, and then you will see the index.html file [plain] under/var/www in the root 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 apache2service apache2 restart [plain] * 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] can open the/etc/apache2/apache2.conf file and add the following sentence: [plain] The error disappears after ServerName localhost is restarted again. Open the webpage and enter localhost: 81address. the index.html page is displayed.