Commit 1f18561c authored by zhangkuanguang's avatar zhangkuanguang

测试环境

parent 9221b663
...@@ -47,8 +47,9 @@ ...@@ -47,8 +47,9 @@
$IpHostAllow =explode('.',GetIp()); $IpHostAllow =explode('.',GetIp());
$server_ip = $_SERVER['SERVER_ADDR']; $server_ip = $_SERVER['SERVER_ADDR'];
//if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127') //if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127')
if($server_ip =='192.168.105.106') if($server_ip =='192.168.105.107')
{ {
$host_city_nj = '192.168.105.243';
if(GB_CITY=='nj') if(GB_CITY=='nj')
{ {
...@@ -142,7 +143,7 @@ if($server_ip =='192.168.105.106') ...@@ -142,7 +143,7 @@ if($server_ip =='192.168.105.106')
$active_group = 'db'; $active_group = 'db';
$active_record = TRUE; $active_record = TRUE;
$db_hostname ='172.17.1.50'; $db_hostname = $host_city_nj;
$db_database =GB_CITY.'_house'; $db_database =GB_CITY.'_house';
//主库 //主库
...@@ -224,7 +225,7 @@ if($server_ip =='192.168.105.106') ...@@ -224,7 +225,7 @@ if($server_ip =='192.168.105.106')
$active_group = 'db'; $active_group = 'db';
$active_record = TRUE; $active_record = TRUE;
$db_hostname ='172.17.1.50'; $db_hostname = $host_city_nj;
$db_database =GB_CITY.'_house'; $db_database =GB_CITY.'_house';
//主库 //主库
...@@ -307,7 +308,7 @@ if($server_ip =='192.168.105.106') ...@@ -307,7 +308,7 @@ if($server_ip =='192.168.105.106')
$active_group = 'db'; $active_group = 'db';
$active_record = TRUE; $active_record = TRUE;
$db_hostname ='172.17.1.50'; $db_hostname = $host_city_nj;
$db_database =GB_CITY.'_house'; $db_database =GB_CITY.'_house';
//主库 //主库
......
...@@ -8,7 +8,7 @@ $IpHostAllow =explode('.',GetIp()); ...@@ -8,7 +8,7 @@ $IpHostAllow =explode('.',GetIp());
//if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127') //if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127')
$server_ip = $_SERVER['SERVER_ADDR']; $server_ip = $_SERVER['SERVER_ADDR'];
if($server_ip == '192.168.105.106') if($server_ip == '192.168.105.107')
{ {
$memcached['servers'] = array( $memcached['servers'] = array(
'default' => array( 'default' => array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment