首页 > 其他分享 >【Apache】 修改apache端口号

【Apache】 修改apache端口号

时间:2022-10-13 17:07:48浏览次数:44  
标签:修改 etc apache2 apache Apache 目录 端口号


1 找到apache的安装目录

       通过whereis apache2 查找

        

【Apache】 修改apache端口号_apache

 

2  进入到 /etc/apache2目录修改ports.conf文件

       

【Apache】 修改apache端口号_apache_02

 3 然后修改/etc/apache2/sites-enabled/000-default 文件

    

【Apache】 修改apache端口号_重启_03

4 然后保存,重启

service apache2 restart

    

【Apache】 修改apache端口号_apache_04

    

【Apache】 修改apache端口号_apache_05

 

前后对比即可发现修改成功

标签:修改,etc,apache2,apache,Apache,目录,端口号
From: https://blog.51cto.com/u_15828115/5754004

相关文章