Mycat大型项目使用案例Word格式文档下载.docx

上传人:b****6 文档编号:16144464 上传时间:2022-11-20 格式:DOCX 页数:42 大小:219.82KB
下载 相关 举报
Mycat大型项目使用案例Word格式文档下载.docx_第1页
第1页 / 共42页
Mycat大型项目使用案例Word格式文档下载.docx_第2页
第2页 / 共42页
Mycat大型项目使用案例Word格式文档下载.docx_第3页
第3页 / 共42页
Mycat大型项目使用案例Word格式文档下载.docx_第4页
第4页 / 共42页
Mycat大型项目使用案例Word格式文档下载.docx_第5页
第5页 / 共42页
点击查看更多>>
下载资源
资源描述

Mycat大型项目使用案例Word格式文档下载.docx

《Mycat大型项目使用案例Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《Mycat大型项目使用案例Word格式文档下载.docx(42页珍藏版)》请在冰豆网上搜索。

Mycat大型项目使用案例Word格式文档下载.docx

rootmycat/-R

[root@node24src]#rpm-ivhjre-8u51-linux-x64.rpm

Preparing...###########################################[100%]

1:

jre1.8.0_51###########################################[100%]

UnpackingJARfiles...

rt.jar...

jsse.jar...

charsets.jar...

localedata.jar...

jfxrt.jar...

plugin.jar...

javaws.jar...

Deploy.jar...

[root@node24src]#java-version

javaversion"

1.8.0_51"

Java(TM)SERuntimeEnvironment(build1.8.0_51-b16)

JavaHotSpot(TM)64-BitServerVM(build25.51-b03,mixedmode)

此处注意java版本不得低于1.6

至此Mycat安装就算完成了

2.mysql环境以及Mycat配置

我的环境如下

10.1.166.22:

mysqldn1

10.1.166.23mysqldn2

10.1.166.24mysqldn3

10.1.166.25mysqldn4

10.1.166.26mysqldn5

配置hosts文件

[root@node22src]#cat/etc/hosts

127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4

:

1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6

10.1.166.22node22

10.1.166.22dn1

10.1.166.23dn2

10.1.166.24dn3

10.1.166.25dn4

10.1.166.26dn5

传到各个机器

foriin10.1.166.2210.1.166.2310.1.166.2410.1.166.2510.1.166.26;

doscp/etc/hosts$i:

/etc;

done

为你的mycat用户设置个密码

[root@node24src]#passwdmycat

Changingpasswordforusermycat.

Newpassword:

BADPASSWORD:

itisWAYtooshort

istoosimple

Retypenewpassword:

passwd:

allauthenticationtokensupdatedsuccessfully.

原始mycat测试配置

[root@node24conf]#>

../logs/wrapper.log

[root@node24conf]#

[root@node24conf]#pwd

/usr/local/mycat/conf

[root@node24conf]#../bin/mycatstart

StartingMycat-server...

报错处理方案

[root@node24conf]#cat../logs/wrapper.log

STATUS|wrapper|2015/09/1801:

27:

36|-->

WrapperStartedasDaemon

36|LaunchingaJVM...

INFO|jvm1|2015/09/1801:

36|JavaHotSpot(TM)64-BitServerVMwarning:

ignoringoptionMaxPermSize=64M;

supportwasremovedin8.0

ERROR|wrapper|2015/09/1801:

36|JVMexitedwhileloadingtheapplication.

36|Error:

Exceptionthrownbytheagent:

.MalformedURLException:

Localhostnameunknown:

.UnknownHostException:

node24:

unknownerror

41|LaunchingaJVM...

INFO|jvm2|2015/09/1801:

41|JavaHotSpot(TM)64-BitServerVMwarning:

41|Error:

41|JVMexitedwhileloadingtheapplication.

45|LaunchingaJVM...

INFO|jvm3|2015/09/1801:

45|JavaHotSpot(TM)64-BitServerVMwarning:

45|JVMexitedwhileloadingtheapplication.

45|Error:

50|LaunchingaJVM...

INFO|jvm4|2015/09/1801:

50|JavaHotSpot(TM)64-BitServerVMwarning:

50|Error:

50|JVMexitedwhileloadingtheapplication.

54|LaunchingaJVM...

INFO|jvm5|2015/09/1801:

54|JavaHotSpot(TM)64-BitServerVMwarning:

54|JVMexitedwhileloadingtheapplication.

54|Error:

FATAL|wrapper|2015/09/1801:

54|Therewere5failedlaunchesinarow,eachlastinglessthan300seconds.Givingup.

54|Theremaybeaconfigurationproblem:

pleasecheckthelogs.

55|<

--WrapperStopped

发现有报错所以要先启动一下原始的连原始的都报错那还配置没有意义

36|JVMexitedwhileloadingtheapplicati

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1