In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
I. introduction of the version
First, we need to download the Apache2.4 server: http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC14
With regard to the current version of the server, I would like to explain here that Apache cannot be used with its own server and must be compiled before it can be used. But the third-party compiled Apache is also available on his website, so here we download the third-party one instead of compiling it manually. Here it provides five third-party servers.
1. If you want to install the inherited development environment, you can choose the latter two WampServer and XAMPP, both of which are easy to install and use.
2. To download a separate installation package, you can choose the first two websites, ApacheHaus and Apache Lounge.
Second, server download
Today, let's take ApacheHaus as an example. Other versions may be configured differently, so you can search and solve them on your own. Download the server according to the URL provided.
Http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC14
III. Apache server configuration
1. After downloading, we copy it to the D:\ Android_Develop_Tools folder and extract it. The following is his directory structure.
2. According to the default configuration of Apache, we should put the Apache24 hard disk in the root directory, but we don't put it in the root directory, so we need to configure it. Go to the conf directory and open the httpd.conf file.
Modify the default path
On line 38
Define SRVROOT "/ Apache24" ServerRoot "${SRVROOT}"
Change to the directory where you installed Apache:
Define SRVROOT "D:\ Android_Develop_Tools\ httpd-2.4.23-x64-vc14\ Apache24" ServerRoot "${SRVROOT}"
If you do not modify it, you will get an error:
Httpd.exe: Syntax error on line 39 of Drexplink Android Developmental ToolsUniverse httpdMurx64-
Vc14/Apache24/conf/httpd.conf: ServerRoot must be a valid directory
3. Open the unzipped folder, then go to the conf directory and open the httpd.conf file (modify it because port 80 of my computer is occupied)
Modify Port
Modify line 60
# Listen 12.34.56.78:80 Listen 80
Change it to 8081 (you can define it yourself, but don't conflict with others)
# Listen 12.34.56.78:80 Listen 8081
Modify line 222
ServerName localhost:80
Change to:
ServerName localhost:8081
If you do not modify it, you will get an error:
(OS 10048) each socket address (protocol / network address / port) is usually allowed to be used only once. : AH00072: mak
E_sock: could not bind to address [::]: 80
(OS 10048) each socket address (protocol / network address / port) is usually allowed to be used only once. : AH00072: mak
E_sock: could not bind to address 0.0.0.0:80
AH00451: no listening sockets available, shutting down
4. Go to the bin directory, hold down the shift button without right-clicking, and select "Open Command window here"
Then type httpd.exe-k install and hold down the Apache service. Seeing these new systems indicates that the installation is successful.
Solve the problem that port 443 is occupied
(OS 10048) each socket address (protocol / network address / port) is usually allowed to be used only once. : AH00072: mak
E_sock: could not bind to address [::]: 443
(OS 10048) each socket address (protocol / network address / port) is usually allowed to be used only once. : AH00072: mak
E_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
If the message above indicates that your port 443 is occupied, the solution is
Open httpd.conf, find the line where ssl_module is loaded, and comment it out with a #:
# LoadModule ssl_module modules/mod_ssl.so
Now just type the httpd.exe-k start command.
We typed http://localhost:8081/index.html into the browser to display some information to show that it was successful.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.