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
Install PostgreSQL 11 on CentOS 7 PostgreSQL: The...
Table of contents 1. Anti-shake function 2. Use d...
This article example shares the specific code of ...
<frameset></frameset> is familiar to e...
Preface Yesterday, there was a project that requi...
Virtual machines are very convenient testing soft...
In LINUX, periodic tasks are usually handled by t...
01. Command Overview The locate command is actual...
Table of contents What is JSI What is different a...
As a required course for front-end developers, CS...
The advantages of this solution are simplicity an...
Table of contents Kill instruction execution prin...
<br />Adding pictures reasonably can make a ...
When Mysql occupies too much CPU, where should we...
Table of contents 1. Several syntaxes of Insert 1...