[emerg]: could not build the server_names_hash, you should increase either server_names_hash_max_size: 512 or server_names_hash_bucket_size: 64
/etc/nginx/nginx.conf
http {
…
server_names_hash_bucket_size 512;
…
}
MySQL е много бърза, стабилна система за управление на релационни бази данни (Relational Management Systems- RDBMS). Базата данни позволява ефективно съхранение, претърсване, сортиране и извличане на данни. MySQL контролира достъпа до вашите данни и позволява едновременна работа на множество потребители, бърз достъп, както и осигуряване на достъп само на оторизираните за това потребители. …
PS: Готин домейн за дрехи: dreha.bg
Идеята е да се открият какви dhcp сървъри има в мрежата.
dhcping -s 255.255.255.255 -r -v
Got answer from: 172.16.2.2
received from 172.16.2.2, expected from 255.255.255.255
Got answer from: 172.16.2.2
received from 172.16.2.2, expected from 255.255.255.255
no answer
Тук става ясно, че има един -- 172.16.2.2
function detect_encoding($string)
{
return strtolower(mb_detect_encoding("$string",'utf-8,windows-1251'));
}//End of detect_encoding($string)
$string="мартин петров";#stringa e windows1251;
echo detect_encoding($string);
//Shte wyrne windows-1251, ako stringa e utf-8 shte wyrne utf-8
function cp1251_to_utf8($s)
{
if ( mb_check_encoding("$s","cp1251") == 1){return iconv("cp1251","utf8",$s);}else { return $s; };
}
function utf8_to_cp1251($s)
{
if ( mb_check_encoding("$s","utf-8") == 1){return iconv("utf8","cp1251",$s);}else{return $s;}
}//End of utf8_to_cp1251($s)
При change master на mysql slave излиза следната грешка съпроводена с решение :) :
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 licenseType 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> stop slave;
Query OK, 0 rows affected, 1 warning (0.00 sec)mysql> CHANGE MASTER TO MASTER_HOST='192.193.123.4', MASTER_USER='slaveuser', MASTER_PASSWORD='pass', MASTER_LOG_FILE='mysql-bin.000020', MASTER_LOG_POS=49869;
ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error logmysql> reset slave;
Query OK, 0 rows affected (0.00 sec)mysql> CHANGE MASTER TO MASTER_HOST='192.193.123.4', MASTER_USER='slaveuser', MASTER_PASSWORD='pass', MASTER_LOG_FILE='mysql-bin.000020', MASTER_LOG_POS=49869;
Query OK, 0 rows affected (0.02 sec)mysql> start slave;
Query OK, 0 rows affected (0.00 sec)