Kali linux 如何配置Web站点

写这篇博客,也是为了纪念一下早上消耗的光阴。。。

1.在kali里安装apache2的服务

apt-get install apache2

安装好的apache2文件是放在kali的  

计算机/etc/apache2

运行的文件是在

计算机/etc/init.d/apache2

2.搭建web站点

kali 默认的web站点在

/计算机/var/www/html

使用命令行进入查看是否有www和html文件夹,如果没有的话,那么就手动创建www和html文件夹

mkdir www | mkdir html

3.启动apache2服务

在每次需要使用apache2的时候都需要启动apache2服务

service apache2 start

或是

/etc/init.d/apache2 start

查看apache2是否开启

service apache2 status
或
/etc/init.d/apache2 status

停止apache2服务

service apache2 stop
或
/etc/init.d/apache2 stop

4.访问web站点

可以是

http://127.0.0.1/1.html
http://localhost/1.html

http://本机IP/1.html
http://192.168.11.126/1.html

5.其他地方访问web站点

要想能够访问本kali设的web站点,就必须与本kali在同一个网段下,这个道理和在window上建立一个web站点一个意思,只能是同网段才能够访问的

 

 

 

 

 

 

 

 

 

 


版权声明:本文为qq_42133828原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。