原創(chuàng)|使用教程|編輯:龔雪|2014-04-22 10:18:09.000|閱讀 249 次
概述:Zend Server服務(wù)器集群連接中的請(qǐng)求參數(shù)與錯(cuò)誤代碼描述,及連接示例。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Zend Server提供企業(yè)級(jí)的Web應(yīng)用服務(wù)器,特別是對(duì)PHP應(yīng)用程序的支持很完美。Zend Server服務(wù)器的集群管理方法有很多,下面介紹下服務(wù)器集群連接的請(qǐng)求參數(shù)和錯(cuò)誤代碼。
請(qǐng)求參數(shù):
Parameter |
Type |
Required |
Description |
serverName |
String |
Yes |
Server name |
dbHost |
String |
Yes |
Database host address to join the cluster |
dbUsername |
String |
Yes |
Database credentials (username) |
dbPassword |
String |
Yes |
Database credentials (password) |
nodeIp |
String |
Yes |
Server IP |
dbName |
String |
Yes |
Database name |
failIfConnected |
Boolean |
No |
Cause the action to completely fail if the server is already connected. Otherwise, a normal 200 status is returned without performing any action. Default: false |
錯(cuò)誤代碼:
HTTP Code |
Error Code |
Description |
400 |
alreadyConnected |
The server is already a member of a cluster (not necessarily the current cluster) |
400 |
wrongPassword |
Provided GUI password is incorrect |
405 |
notImplementedByEdition |
This method is only available on Professional or Enterprise editions |
500 |
invalidServerResponse |
Invalid or unexpected response from new server |
500 |
serverNotLicensed |
Zend Server is not licensed |
500 |
noActiveServers |
The server cannot be added because all servers in the cluster are disabled or unreachable |
500 |
cantConnectToServer |
Zend Server is unable to connect to the specified Server URL |
503 |
temporarilyLocked |
The server cannot be added because a cluster member is in graceful startup / shutdown mode |
Zend Server服務(wù)器集群連接示例:
請(qǐng)求:
POST /ZendServer/Api/clusterAddServer serverName=www-05&serverURL=//www-05.local:10081/ZendServer& guiPassword=somepassword&doRestart=TRUE
響應(yīng):
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn