Prepare the bagsInstallCheck if Apache is already installed
Uninstall Apache
(-nodeps means ignoring the dependencies of the software) Create a folder to store rpm packages
Unzip the package
Move Apache's two dependent files apr and apr-util to its srclib folder (note that the folder cannot have a version number, otherwise the system will not be able to find these two software)
pcre regular expression library, expat development library for parsing XML files
Switch to the apache decompression directory and compile the installation package
Install Apache
Switch to the path where apache is installed and modify the apache configuration
Modify the port number: Modify the root path for accessing the homepage: Start ApacheYou need to first link the startup program to the system startup directory and name it httpd
Register the apache service and add the following content to the beginning of the file
#!/bin/sh # chkconfig:35 61 61 # description:Apache Configure Apache to start automatically and add Linux service monitoring
View List
Start, Restart
This is the end of this article about installing Apache server on Linux. For more relevant content about installing Apache server on Linux, please search previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: MySQL index pushdown details
>>: Detailed introduction to CSS priority knowledge
In actual projects, there are relationships betwe...
If we introduce the nesting rules of basic HTML w...
1. Download the RPM package corresponding to Linu...
Table of contents 1. Modular concept 2. Modulariz...
The legend component is a commonly used component...
1. Import the basic style of external CSS files U...
Table of contents 1. Preparation 2. Define the gl...
I am using the Ubuntu 16.04 system here. Installa...
Preface As one of the best web servers in the wor...
Linux change hostname command 1. If you only need...
Preface We already know that MySQL uses the SQL S...
1. Introduction Nginx is a free, open source, hig...
This article shares a draggable login box impleme...
Today, due to project requirements, js is needed t...
Shtml and asp are similar. In files named shtml, s...