hosting

Η φιλοξενία όπως πρέπει να είναι !

 

Cloud Vps στην Ελλάδα!

Cloud Vps , Cloud Vps SSD , Dedicated servers

Varnish , nginx , apc , cpanel , plesk , virtualmin

 

 

slogan

 


 

SSH login to your server

#Go to /usr/bin or where ever your path works ( echo $path to see it )

Cd /usr/bin

# download pt-kill

wget www.percona.com/get /pt-kill

# make it executable

chmod +x pt-kill

# create the startup file

nano /etc/init.d/pt-kill

# here it opens the editor to insert start and stop scripts

# there are several commands to use with pt-kill you can fine theme #in the persona website. Our script check for a user database #connections and kill them if they run more than 60 sec. Also log #killed queries and send an email

#Script start here ----------------------------------

#!/bin/sh

#

# pt-kill   This shell script takes care of starting and stopping

#               the pt-kill services.

#

# chkconfig: - 60 20

# description: pt-kill stops long running MySQL queries

#

# probe: true

# Source function library.

. /etc/rc.d/init.d/functions

RETVAL=0

# See how we were called.

case "$1" in

start)

   echo -n $"Starting pt-kill: "

   pt-kill \

     --pid /var/run/pt-kill.pid \

     --daemonize \

     --interval 5 \

     --busy-time 60 \

     --wait-after-kill 15 \

     --user databaseusername \

     --password databasepassword \

     --log /var/log/mysql-kill.log \

     --print \

     --execute-command '(echo "Subject: pt-kill query found on `hostname`"; tail -1 /var/log/mysql-kill.log)|/usr/sbin/sendmail -t Αυτή η διεύθυνση ηλεκτρονικού ταχυδρομείου προστατεύεται από τους αυτοματισμούς αποστολέων ανεπιθύμητων μηνυμάτων. Χρειάζεται να ενεργοποιήσετε τη JavaScript για να μπορέσετε να τη δείτε.' \

     --kill-query

   RETVAL=$?

   echo

   [ $RETVAL -ne 0 ] && exit $RETVAL

;;

stop)

       # Stop daemons.

            echo -n $"Shutting down pt-kill: "

       killproc pt-kill

       echo

      ;;

restart)

      $0 stop

       $0 start

       ;;

*)

     echo $"Usage: pt-kill {start|stop}"

       RETVAL=3

       ;;

esac

exit $RETVAL

#Script ends here ----------------------------------

Change databaseusername with your mysql username

Change databasepassword with your mysql database password

Change busy-time with your time to end mysql queries ( in our example is 60 sec )

Put your email in the report email

Save it and check it !

# run script

/etc/init.d/ pt-kill start

#If complains about not executable etc run

chmod +x /etc.init.d/pt-kill

# if you want to start auto when server reboots run

chkconfig –level 345 pt-kill on

 This article was created by greek-hosting.gr . Fill free to reproduce it but please add a link to us

Cpanel Web hosting

Σε ευρωπαικά datacenters με 99,9 uptime ! Δείτε τα πακέτα μας. ...

"CPanel web hosting Με 99,9 uptime , και το καλύτερο λογισμικό backup από την R1soft τα δεδομ..."


Read More

Read More

Comments (0)

Vps στην Ελλάδα

Ελληνικό οικονομικό  Vps για ταχύτητα και SEO! ...

"Ελληνικό VPS Οικονομικά Vps Στην Ελλάδα , στην Θεσσαλονίκη με σύνδεση με οπτική ίνα στον OTE..."


Read More

Read More

Comments (0)

Cloud Vps με SSD δίσκους

Cloud Vps με SSD δίσκους! απίστευτες ταχύτητες σε ευρωπαικά Datacenters! ...

"Cloud VPS με SSD δίσκους Τώρα το VPS σας ποιο αξιόπιστο από ποτέ.  Πάνω σε πλατφόρμα cl..."


Read More

Read More

Comments (0)

Joomla Web hosting

φιλοξενία της Joomla ιστοσελίδας σας σε ειδικά διαμορφωμένους servers ...

"To Joomla είναι από τα πιο διαδεδομένα opensource cms και καταλαμβάνει ένα πολύ μεγάλο μέρος..."


Read More

Read More

Comments (0)

Wordpress vps hosting

Για ιστοσελίδες με μεγάλη επισκεψιμότητα στήνουμε Varnish , Nginx , Apc ...

"Nginx με APC - Alternative PHP Cache ! Εάν η σελίδα σας έχει πολύ κίνηση και σας αναγκάζουν..."


Read More

Read More

Comments (0)

Dedicated servers

Dedicated servers σε ευρωπαικά datacenters σε απίστευτες τιμές! ...

"Dedicated servers σε πραγματικά χαμηλές τιμές!  Από 30 ευρώ το μήνα , αγοράστε το δικό σ..."


Read More

Read More

Comments (0)

radio streaming

hosting Θεσσαλονικη

 

Απογειώνουμε το Wordpress ή Joomla site σας , ειδικά για ιστοσελίδες μεγάλης επισκεψιμότητας , διαμορφώνοντας κατάλληλα ένα vps για τις δικές σας ανάγκες  με τεχνολογίες όπως Varnish , Nginx , APC

greek-hosting.gr © 2013 Κατασκευή ιστοσελίδων θεσσαλονίκη toastedweb.gr