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
A Docker container starts a single process when i...
Installation, configuration, startup, login and c...
Table of contents 1. Direct assignment 2. Shallow...
Table of contents 1. Check the number of Linux bi...
Delayed loading (lazy loading) and preloading are...
Preface What is the role of an agent? - Multiple ...
Table of contents Preface Is there any hope after...
Preface: Recently, the company project changed th...
1. Use basic text elements to mark up content Fir...
You may remember that in the past articles we hav...
Installation Environment WIN10 VMware Workstation...
Table of contents Overview Promise Race Method Re...
Because I need to use Ubuntu+Python 3.6 version t...
Table of contents 1. Array.at() 2. Array.copyWith...
Common scenarios for Nginx forwarding socket port...