![Kali Linux 2018:Assuring Security by Penetration Testing](https://wfqqreader-1252317822.image.myqcloud.com/cover/290/36699290/b_36699290.jpg)
上QQ阅读APP看书,第一时间看更新
HTTP
If your penetration testing works, you may want to have a web server for various reasons, such as to serve malicious web application scripts. In Kali Linux, there is already an Apache web server installed; you just need to start the service.
The following are the steps that are required to activate your HTTP server in Kali Linux:
- To start the Apache HTTP service, open a command line Terminal and type the following command to start the Apache server:
service apache2 start
- After this, you can browse to the web page at 127.0.0.1; it will display the It works! page by default:
![](https://epubservercos.yuewen.com/83ED18/19470387008849606/epubprivate/OEBPS/Images/1d45694b-b519-4fb1-85b6-bb0cfd0eb8fa.png?sign=1738927826-zZu59T4rODIc224VEtVcMyaAey6MRbKC-0-a11b5d1fc0e4ba3447326a23014f71c0)
To stop the Apache HTTP service, perform the following steps:
- Open a command-line Terminal and type the following command to stop the Apache server:
service apache2 stop
Remember that the previous command will not survive boot up. After bootup, you need to give the command again. Fortunately, there is a way to start the Apache HTTP service automatically after the Kali Linux boots up by providing the update-rc.d apache2 defaults command.
- The command will add the apache2 service to be started on booting up.