数据库中间件mycat安装过程

先安装jdk ,
http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html
20170122在blog常用软件加了jdk9.0.4的下载文件
https://blog.pucipuci.cn/file/jdk-9.0.4_linux-x64_bin.tar.gz

#wget http://download.oracle.com/otn-pub/java/jdk/9.0.1+11/jdk-9.0.1_linux-x64_bin.tar.gz?AuthParam=1511763152_88b88232c3dbf65f786070b6e8833a6c
wget https://blog.pucipuci.cn/file/jdk-9.0.4_linux-x64_bin.tar.gz
tar -zxvf jdk-9.0.4_linux-x64_bin.tar.gz 
mv jdk-9.0.4 /usr/local/jdk-9.0.4
vi /etc/profile



vi /etc/profile
#写入
export JAVA_HOME=/usr/local/jdk-9.0.4
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
source /etc/profile

[root@HQ tmp]# java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)


wget https://raw.githubusercontent.com/MyCATApache/Mycat-download/master/1.4-RELEASE/Mycat-server-1.4-release-20151019230038-linux.tar.gz
tar -zxvf Mycat-server-1.4-release-20151019230038-linux.tar.gz
mv mycat/ /usr/local/

# groupadd mycat
# useradd -s /sbin/nologin -g mycat -M mycat
# passwd mycat

chown -R mycat.mycat /usr/local/mycat/
cd /usr/local
cd mycat
cd bin
./mycat start

ps -ef | grep mycat

[root@HQ bin]# ps -ef | grep mycat
root       3700      1  0 11:00 ?        00:00:00 /usr/local/mycat/bin/./wrapper-linux-x86-64 /usr/local/mycat/conf/wrapper.conf wrapper.syslog.ident=mycat wrapper.pidfile=/usr/local/mycat/logs/mycat.pid wrapper.daemonize=TRUE wrapper.lockfile=/var/lock/subsys/mycat
root       3726   3297  0 11:00 pts/1    00:00:00 grep mycat

netstat -anp | grep 8066

有端口监听

mysql -uroot -p -P8066 -hlocalhost

成功!!


标签: mycat

非特殊说明,本博所有文章均为博主原创。

最新文章

发表评论