Apache服务器的设置文件位于/usr/local/apache/conf/目录下,传统上使用3个配置文件 httpd.conf,access.cord和srm.conf来配置Apache服务器的行为。httpd.conf提供了最基本的服务器配置,是对守护程序httpd如何运行的技术描述:srm.conf是服务器的资源映射文件,告诉服务器各种文件的MIME类型,以及如何支持这些文件;access.cord用于配置服务器的访问权限,控制不同用户和计算机的访问限制;这3个配置文件控制着服务器的各个方面的特性,因此为了正常运行服务器便需要设置好这3个文件。
如何设置httpd.conf,使得Apache服务器监听在特定的端口
正确答案及解析
正确答案
解析
修改httpd.conf文件里面关于Listen的选项,例如:
Listen 8000是使Apache监听在8000端口,如果要同时指定监听端口和监听地址,可以使用:
Listen 192.170.2.1:80
Listen 192.170.2.5:8000
这样就使得Apache同时监听在192.170.2.1的80端口和192.170.2.5的8000端口
当然也可以在httpd.conf文件里面设置:
Port 80
可以实现类似的效果。
你可能感兴趣的试题
Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.
- 
                
- A.Artificial Intelligence
 - B.Cloud Computing
 - C.Internet of Things
 - D.Big Data
 
 - 查看答案
 
In project human resource management , ( )is not a source of power for the project manager.
- 
                
- A.referent power
 - B.expert power
 - C.reward power
 - D.audit power
 
 - 查看答案
 
At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.
- 
                
- A.detail feasibility analysis
 - B.opportunity analysis
 - C.economic feasibility analysis
 - D.risk analysis
 
 - 查看答案
 
( )is a grid that shows the project resources assigned to each work package.
- 
                
- A.Stakeholder engagement assessment matrix
 - B.Requirements traceability matrix
 - C.Probability and impact matrix
 - D.Responsibility assignment matrix
 
 - 查看答案
 
Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.
- 
                
- A.digital
 - B.networking
 - C.intelligentize
 - D.informatization
 
 - 查看答案