Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Cento7.4 installs mycat and mycat-eye

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Prerequisite: the environment requires that the JDK1.7+ version is installed and the mysql client (yum install mysql) operating system IP:192.168.75.48 installs mycat

Download and decompress

Wget http://dl.mycat.io/1.6.5/Mycat-server-1.6.5-release-20180122220033-linux.tar.gztar-zxvf Mycat-server-1.6.5-release-20180122220033-linux.tar.gz-C / usr/local/cd / usr/local/mycat/conf

Modify schema.xml,server.xml according to the actual situation

For example:

Schema.xml:

Show slave status

Server.xml:

0 1 1 0 2 false 0 65535 0 1 1 0 1 64k 1k 0 384m false Xxxxxxxx xx_app Xx_data,xx_dubbo_monitor,xx_log,xx_mis,xx_data,xx_task user xx_app true

Modify environment variabl

Echo export PATH=$PATH:/usr/local/mycat/bin > > / etc/profileecho export MYCAT_HOME=/usr/local/mycat > > / etc/profilesource / etc/profile

Create a mycat user

Groupadd mycat-g 910useradd mycat-g 910chown-R mycat:mycat / usr/local/mycat

Start mycat

Cd / usr/local/mycat/bin./mycat start

Command line login

Mysql-u xx_Corn_User-pxxxxxx-P8066-h 127.0.0.1

Install zookeeper

Download and decompress

Wget http://mirrors.hust.edu.cn/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gztar-zxvf zookeeper-3.4.6.tar.gz-C / usr/local/cd / usr/local/zookeeper-3.4.6/confcp zoo_sample.cfg zoo.cfg

Start zookeeper

Cd / usr/local/zookeeper-3.4.6/bin/./zkServer.sh start install mycat-eye

Download and decompress

Wget https://raw.githubusercontent.com/MyCATApache/Mycat-download/master/mycat-web-1.0/Mycat-web-1.0-SNAPSHOT-20160617163048-linux.tar.gztar-zxvf Mycat-web-1.0-SNAPSHOT-20160617163048-linux.tar.gz-C / usr/local/

Modify zookeeper address

Cd / usr/local/mycat-web/mycat-web/WEB-INF/classesvi mycat.properties zookeeper=localhost:2181-> zookeeper=127.0.0.1:2181

Start mycat-eye

Cd / usr/local/mycat-web./start.sh &

Visit mycat-eye

Http://192.168.75.48:8082/mycat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report