Простой скрипт рестартящий апач при превышении LA определенного значения (в данном примере 5):
if [ "$a" -lt 500 ]; then
echo ALLOK;
echo $a;
else
echo $a;
/etc/init.d/httpd restart;
fi
Простой скрипт рестартящий апач при превышении LA определенного значения (в данном примере 5):
To write a message to users that have login, you can using the command write. But before that, you need to check who is login, and which terminal he is login to, use command who...
Current versions of vzdump has dependency for cstream and perl-LockFile-Simple, both available via rpmforge. Below is how I got it to install and run on CentOS-5.5 x86_64 architecture.
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm<br />rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm<br />yum --enablerepo=rpmforge install cstream perl-LockFile-Simple<br />rpm -ivh http://download.openvz.org/contrib/utils/vzdump/vzdump-1.2-4.noarch.rpmIt's necessary to export the location of the PVE libraries that vzdump requires. This can be added to «.bash_profile»:
export PERL5LIB=/usr/share/perl5/Not all of the Linux distributions allow users to tweak file system parameters during Linux installation, such as file system Reserved Block Count. Debian Linux installer allows user to change file system Reserved Block Count at Linux installation stage.
Other Linux distributions, particularly Redhat Linux, only allow user to tune file system parameters at post-installation stage, via Linux file system utility tune2fs...
Ubuntu Tweak is an application to config Ubuntu easier for everyone.It provides many useful desktop and system
options that the default desktop environment doesn’t provide.With its help, you will enjoy with the experience of
Ubuntu!
This is intended as a step-by-step guide to what to do when things go wrong using NFS. Usually trouble first rears its head on the client end, so this diagnostic will begin there...
Let's go ahead and get this out of the way: The following post contains only my personal opinions. These are not the opinions of my employer and should not be considered as such.
The term «cloud hosting» has become more popular over the past few years and it seems like everyone is talking about it. I'm often asked by customers and coworkers about what cloud hosting really is. Where does traditional dedicated hosting end and cloud begin? Do they overlap? Who needs cloud and who doesn't?
You can't talk about cloud hosting without defining it first. When I think of «cloud», these are the things that come to mind:
That list may seem a bit vague at first, but try to let it sink in just a bit. Hosting applications in a «cloud» shouldn't mean that you must have a virtual instance running on Xen, KVM or VMWare, and it shouldn't mean that you must have an account with Rackspace Cloud, Amazon EC2, or Microsoft Azure. It means that your hosting operations are highly automated and you can rapidly allocate and deallocate resources for the requirements of your current projects.
Consider this: a customer of a traditional dedicated hosting provider decides to take their applications and host them on one VPS at a leading commercial provider. That provider allows the customer to spin up new VM's in a matter of minutes and re-image the VM's whenever they like. Is that cloud hosting? I'd say yes — even if it's one single virtual instance. That customer has moved from a hosting system with manual interventions and extended lead times to a system where they have instant control over their resources.
It's not possible to talk about what cloud is without talking about what it isn't.
It's important to remember that cloud hosting is a marketing term. As for the technology of cloud, it's what you make of it. You should be looking to reduce costs, solidify availability and increase performance every day. If the ideals of cloud hosting help you do that, it might be the right option for you.
©2010 . All Rights Reserved.
.
Already happy with nginx in front of Apache for a number of sites, I decided it was time to start testing nginx/fastcgi on my personal server (the serial crash test dummy of my web operations). The only problem: I have yet to find a sensible method of grabbing useful runtime information from the PHP fastcgi process itself, and if you can’t sensibly watch it, you can’t sensibly deploy it.
Below is command to run process with the least CPU and IO priority.
nice -n 19 ionice -c 3 <command>You could also include the same in the beginning of the script:
#!/bin/bash<br /># Make process nice<br />renice +19 -p $$ >/dev/null 2>&1<br />ionice -c3 -p $$ >/dev/null 2>&1References:
In this lesson of the MySQL tutorial, you will learn...
1. To start up and shut down the MySQL Server
2. To view Information about the Server and Databases
3. To view and kill Threads
4. To clear System Caches
5. Various mysqladmin Options