uninstall First, confirm whether it has been installed or the system comes with the httpd service, using the following command:
or:
I have already installed it once, so it will be displayed as follows: Then I will uninstall my httpd first. First, I need to stop the httpd service. The command is as follows:
Then you can use the rpm -e or yum -erase command, but the rpm -e command requires you to uninstall the dependent packages first, so I use the yum -erase command to uninstall, the command is as follows:
In the middle, you will be asked to confirm, just press y, until Complete! appears, indicating that the uninstallation is complete. Install If you want to confirm whether the uninstallation is complete, you can use the list command to list the installed files (the first step of uninstallation). We will not do this here. We will directly list the httpd items in the yum repository with the following command:
Then, after seeing the available items, we enter the following command to install it:
Enter 'y' in the middle and the installation is complete. Then we check the running status of httpd through the following command:
If httpd is not started, we can start the service with the following command:
The default www directory is under /var/www/html/, so we write an html file to see what happens. Enter the following command to create a file containing the hello world string:
Then, we use curl to access the local:
Already in normal service! |
<<: Understanding MySQL precompilation in one article
>>: A brief analysis of React's understanding of state
Table of contents App.vue sub1.vue sub2.vue Summa...
Table of contents 1. The original array will be m...
Recently, when I was learning jQuery, I came acro...
Table of contents Preface 1. Create objects befor...
mysql gets all dates or months in a time period 1...
The multi-site feature of WordPress allows you to...
The vue project implements an upgraded version of...
Table of contents 1. Comparison of data before an...
Project Background Recently, there is a project w...
Friends who have some basic knowledge of SQL must...
Now, more and more front-end developers are starti...
Get the number of connections --- Get the maximum...
Transactions ensure the atomicity of multiple SQL...
1. Introduction to mysqldump mysqldump is a logic...
In daily development tasks, we often use MYSQL...