Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
1f18561c
Commit
1f18561c
authored
Jun 28, 2020
by
zhangkuanguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试环境
parent
9221b663
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
database.php
new_admincp/applications/zsb/config/database.php
+5
-4
memcached.php
new_admincp/applications/zsb/config/memcached.php
+1
-1
No files found.
new_admincp/applications/zsb/config/database.php
View file @
1f18561c
...
...
@@ -47,8 +47,9 @@
$IpHostAllow
=
explode
(
'.'
,
GetIp
());
$server_ip
=
$_SERVER
[
'SERVER_ADDR'
];
//if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127')
if
(
$server_ip
==
'192.168.105.10
6
'
)
if
(
$server_ip
==
'192.168.105.10
7
'
)
{
$host_city_nj
=
'192.168.105.243'
;
if
(
GB_CITY
==
'nj'
)
{
...
...
@@ -142,7 +143,7 @@ if($server_ip =='192.168.105.106')
$active_group
=
'db'
;
$active_record
=
TRUE
;
$db_hostname
=
'172.17.1.50'
;
$db_hostname
=
$host_city_nj
;
$db_database
=
GB_CITY
.
'_house'
;
//主库
...
...
@@ -224,7 +225,7 @@ if($server_ip =='192.168.105.106')
$active_group
=
'db'
;
$active_record
=
TRUE
;
$db_hostname
=
'172.17.1.50'
;
$db_hostname
=
$host_city_nj
;
$db_database
=
GB_CITY
.
'_house'
;
//主库
...
...
@@ -307,7 +308,7 @@ if($server_ip =='192.168.105.106')
$active_group
=
'db'
;
$active_record
=
TRUE
;
$db_hostname
=
'172.17.1.50'
;
$db_hostname
=
$host_city_nj
;
$db_database
=
GB_CITY
.
'_house'
;
//主库
...
...
new_admincp/applications/zsb/config/memcached.php
View file @
1f18561c
...
...
@@ -8,7 +8,7 @@ $IpHostAllow =explode('.',GetIp());
//if($IpHostAllow['0']=='192' || $IpHostAllow['0']=='127')
$server_ip
=
$_SERVER
[
'SERVER_ADDR'
];
if
(
$server_ip
==
'192.168.105.10
6
'
)
if
(
$server_ip
==
'192.168.105.10
7
'
)
{
$memcached
[
'servers'
]
=
array
(
'default'
=>
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment