Portal Home > Knowledgebase > Articles Database > Stop server restarting httpd service
Stop server restarting httpd service
Posted by LP560, 12-16-2009, 06:08 AM |
My server is under DDOS attack, when I stop httpd the server load (which is at 200+) drops, but the server will restart httpd and the server load increases.
I would like to stop httpd and stop it restarting so I can stable and start work on the server, but I've forgotten how to do this!
Any suggestions appreciated
|
Posted by sysgallery, 12-16-2009, 06:42 AM |
Just run the following commands:
killall httpd
chkconfig --level 35 httpd off
If possible, reboot the server. httpd will not start.
|
Posted by JohnCS, 12-16-2009, 07:02 AM |
If its cPanel server also uncheck httpd in Main >> Service Configuration >> Service Manager
|
Posted by LP560, 12-16-2009, 07:30 AM |
Thanks.
Managed to sort the DDOS attack as well, thankfully it wasn't a bad one!
|
Posted by gregm11, 12-16-2009, 08:52 AM |
You can SSH to the box and run top command and kill the pid for httpd or run command service httpd stop
If you need helpd fining out why you got attacked you can take a look at dot defender for free on linux or windows.It will monitor the incoming traffic on your server. You can then check the logs and see what is attacking and how it's trying. The application does not use much resources and its simple to install. http://www.applicure.com/Homepage
|
Posted by keserhosting, 12-16-2009, 11:30 AM |
check the number of httpd connection to the server using this command,
#netstat -lpn|grep :80|awk '{print $5}'|sort
|
Posted by ksv2nash, 12-16-2009, 11:37 AM |
Hello,
this shows number of connections per each IP right?
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
|
Add to Favourites Print this Article
Also Read