Tip on Reducing Server Loads on Linux Server! (Tutorial)
I am going to give you a tutorial on what to install that might help you. You have to have a program like putty and root access on your server(VPS or Dedicated Server) for all of these applications. This is for linux. I wrote this article. I made the best effort not to include typos.
Process Resource Monitor
Kills processes automatically and emails you when its killed.
Code:
mkdir /root/downloads cd /root/downloads wget http://www.rfxn.com/downloads/prm-current.tar.gz tar -xvzf prm-current.tar.gz cd prm-* ./install.sh pico /usr/local/prm/conf.prm
Edit the configuration file and set the email address & settings to whatever you feel comfortable with.
Control+X to escape and Control+X to save your changes(type y+enter to save and n to not save the file)
Use arrow keys to move around and to delete things use the backspace key while viewing the file.
The application will email you when a process is killed on your server!
Code:
pico /etc/cron.d/prm
Control+X to escape and Control+X to save your changes(type y+enter to save and n to not save the file)
Use arrow keys to move around and to delete things use the backspace key while viewing the file.
Edit the cron job file and set the email address & settings to whatever you feel comfortable with. Its set to check your server every 5 minutes.
Code:
pico /usr/local/prm/killed
Control+X to escape and Control+X to save your changes(type y+enter to save and n to not save the file)
Use arrow keys to move around and to delete things use the backspace key while viewing the file.
You can ignore processes that need to be killed but the file has some that are set to ignore already.
You can run the program without the cron job by running these.
Code:
/usr/local/prm/prm -s /usr/local/sbin/prm -s
You can run the program quietly without the cron job by running these.
Code:
/usr/local/prm/prm -q /usr/local/sbin/prm -q
You can turn the cron job off and on by running these. If it says disabled, your cron job is disabled. If it says enabled, your cron job is on.
Code:
/usr/local/prm/prm -j /usr/local/sbin/prm -j
http://www.rfxn.com/projects/process-resource-monitor/
Log View for cPanel/WHM
View common log files without running ssh commands.
Installation
Code:
wget http://www.logview.org/logview-install chmod +x logview-install ./logview-install rm -f logview-install
Uninstall
Code:
wget http://www.logview.org/logview-uninstall chmod +x logview-uninstall ./logview-uninstall rm -f logview-uninstall
http://www.logview.org/
DDOS Deflate
Stop Denial of Service Attacks Automatically.
Installation
Code:
wget http://www.inetbase.com/scripts/ddos/install.sh chmod 0700 ./install.sh ./install.sh
Type wq after reading the license agreement.
Code:
pico /usr/local/ddos/ddos.conf
Control+X to escape and Control+X to save your changes(type y+enter to save and n to not save the file)
Use arrow keys to move around and to delete things use the backspace key while viewing the file.
Uninstall
Code:
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos chmod 0700 ./uninstall.ddos ./uninstall.dos
http://deflate.medialayer.com/
Thanks for reading and I hope it helps you.
Written by rlshosting.com

Leave a Reply