1. Use xshell to connect to the virtual machine, or type commands directly in the virtual machine. The following are the commands on xshell: First install the HTTPD package
Restart the service to view the status:
Need to turn off the firewall Check if firewalld is turned off
Permissive Execute the command to copy a file: Rename to haha.conf mv httpd-vhosts.conf haha.conf Edit this file vim haha.conf Delete the blue content starting with # Use dd to delete a single line. Enter 10dd to delete 10 lines. Enter insert mode (press i or o) Modified to the following (based on IP address) and added a few lines below. The following one can be ignored for now Create directory: /www/161 Restart the service (I waited a long time) If there is a problem, check the static (status) -l to display all, and then generally there is a problem with the configuration file haha.conf. Write some content to the web page: Then you can enter the IP address on the web page to open However, this method still cannot access the files uploaded to the virtual machine through http. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to query the latest transaction ID in MySQL
>>: Some tips for using less in Vue projects
It has been a long time since the last update of ...
MySQL official website: https://www.mysql.com/dow...
1. The difference between TEXT and BLOB The only ...
Relative path - a directory path established based...
Table of contents 1. Docker configuration 2. Crea...
Preface This article mainly introduces the releva...
Table of contents 1. Introduction to Harbor 1. Ha...
Compared with Windows system, Linux system provid...
summary: The following is a method for changing t...
When using docker-compose for deployment, the out...
Overview Let's summarize some SQL statements ...
Table of contents 1. Understanding the Equality R...
Before we begin, we create two tables to demonstr...
Table of contents 1. Global level 2. Database lev...
Table of contents Preface Main implementation cod...