In Mysql shell execute:
SHOW ENGINE INNODB STATUS \G
Look for the Section –
TRANSACTIONS
Find transaction like:
In Mysql shell execute:
SHOW ENGINE INNODB STATUS \G
Look for the Section –
TRANSACTIONS
Find transaction like:
If you can’t delete link in editor make ine change in file editor.php diff editor.php editor.php.old 794c794 < if(isset($map->links[$target])) { — > if(isset($map->links[target])) {
For install Weathermap you need have Cacti with Plugin Architecture
For PHP we need GD library
apt-get install php5-gd
Go to Cacti Plugins
cd cacti/plugins
wget http://network-weathermap.com/files/php-weathermap-0.97c.zip
unzip php-weathermap-0.97c.zip
Very simple to do Cacti upgrade
wget http://www.cacti.net/downloads/cacti-0.8.8g.tar.gz
mysqldump -l --add-drop-table cacti > cacti.sql
mv cacti cacti_old
tar xvf cacti-0.8.8g.tar.gz
mv cacti-0.8.8g cacti
Перед заменой сбойного диска на сервере желательно сначала его подсветить, чтобі по случайности не вінять “живой” диск
Делается єто так:
/MegaRAID/MegaCli/MegaCli64 -PdLocate -start -PhysDrv [32:1] -a0
где:
32 – Enclosure Device ID: 32
1 – Slot Number: 1
Выключить подсветку:
/MegaRAID/MegaCli/MegaCli64 -PdLocate -stop -PhysDrv [32:1] -a0
Если у вас настроена репликация Mysql то иногда бинарные логи розрастаются до неймоверных обьемов. В таком случае эти логи можно скормить мастеру Mysql заодно освободив место на файловой системе
Делается это так:
master$ mysql -u root -pMypass -e "PURGE BINARY LOGS TO 'mysql-bin.0066';"
Или так:
Sometimes need to shape speed in browser (Firefox) for emulate slow user connections
Using tc :
tc qdisc add dev eth0 root netem delay 2000ms 1000ms
2000ms – original packet timeout
1000ms – deviation
Вот так незамысловато все устроено 🙂
If you want update Mysql from 5.6 to 5.7 do this steps
https://dev.mysql.com/downloads/repo/apt/
Download mysql-apt-config_0.6.0-1_all.deb
Install apt-sources
dpkg -i mysql-apt-config_0.6.0-1_all.deb
After that you have apt-resources for installing
Update resources
apt-get update
По следам заметки chan_dongle + asterisk 10
Текущая версия dongle уже не поддерживается на сайте google
Форк можно взять тут https://github.com/bg111/asterisk-chan-dongle
Особо ничего не поменялось.
Собирать будем под Asterisk 13.7
Asterisk 13.7.0, Copyright (C) 1999 - 2014, Digium, Inc. and others