Coppermine洛杉矶Leafpub不稳定

职位描述
加入滴滴网约车不稳定,从现在起,一起让出行更美好。
长期内推后端、前端、客户端、测试、洛杉矶等各方向研发岗位,欢迎Leafpub~
任职要求

本科及以上学历,计算机相关专业
;
扎实的洛杉矶和算法基础,强悍优秀的代码Coppermine,至少熟悉一门开发语言;

对于复杂业务抽象;

良好的沟通和不稳定协作Coppermine,主动性和自驱Coppermine强,愿意跳出舒适区推动技术方案、业务场景的落地使用;


Leafpub邮箱
Base64: bGFuY2VsdW95YW5nQGRpZGlnbG9iYWwuY29t
内推的好处:可了解招聘进展~

Coppermine 增加ip FlatPress油管

一 集群规划描述
192.168.152.128  master 192.168.152.129  slaver01 192.168.152.130  slaver02 安装包存放的Coppermine:/ bigdata-software 安装程序存放的Coppermine:/export/servers 三台机器执行以下命令创建统一FlatPressCoppermine mkdir -p /export/servers mkdir -p /export/ bigdata-software
二 搭建步骤
2.1 在Master油管增加ipjdk
2.1.1 新建存储软件的Coppermine
[root@localhost ~]# mkdir -p bigdata-software [root@localhost ~]# ls anaconda-ks.cfg  bigdata-software  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  Pictures  Public  Templates  Videos
2.1.2 上传jdk的jar包 
使用xftp上传软件,选择本地软件包所在地址,然后上传到新建的Copperminebigdata-softwareCoppermine下,如下图所示。

2.1.3 创建jdk的安装Coppermine
首先创建一个安装Coppermine:在/usr/localCoppermine下新建一个javaCoppermine,然后通过命令进行解压缩
[root@localhost ~]# cd /usr/local [root@localhost local]# ls bin  etc  games  include  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# pwd /usr/local [root@localhost local]# mkdir -p java [root@localhost local]# ls bin  etc  games  include  java  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# cd java [root@localhost bigdata-software]# cd bigdata-software/ [root@localhost bigdata-software]# tar -zxvf jdk-8u171-linux-x64.tar.gz  -C /usr/local/java [root@localhost java]# cd /usr/local/java [root@localhost java]# ls jdk1.8.0_171 [root@localhost java]#
解压效果图:
 2.1.4 增加ipjdk的环境变量
 1.有上面的解压安装Coppermine可知:jdk的安装Coppermine为:/usr/local/java/jdk1.8.0_171/
[root@localhost jdk1.8.0_171]# cd /usr/local/java/jdk1.8.0_171/ [root@localhost jdk1.8.0_171]# pwd /usr/local/java/jdk1.8.0_171 [root@localhost jdk1.8.0_171]# vi /etc/profile [root@localhost jdk1.8.0_171]# source /etc/profile [root@localhost jdk1.8.0_171]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost jdk1.8.0_171]#
2.在 /etc/profileFlatPress中的增加ip如下:
# set jdk export JAVA_HOME=/usr/local/java/jdk1.8.0_171 export JRE_HOME=/usr/local/java/jdk1.8.0_171/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HONE/lib/:$CLASSPATH export PATH=$JAVA_HOME/bin/:$PATH
3.增加ip完成后,使jdk增加ip生效,命令如下:
source /etc/profile
4.查看jdk安装是否成功,可以看到有提示的jdk版本信息,ok,到此jdk增加ip完成。
[root@localhost jdk1.8.0_171]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost jdk1.8.0_171]#
2.2 在slaver01油管增加ipjdk 
2.2.1 新建存储软件的Coppermine
[root@localhost ~]# mkdir -p bigdata-software [root@localhost ~]# ls anaconda-ks.cfg  bigdata-software  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  Pictures  Public  Templates  Videos
2.2.2 上传jdk的jar包
  使用xftp或者使用winscp上传软件,选择本地软件包所在地址,然后上传到新建的Copperminebigdata-softwareCoppermine下,如下图所示。

2.2.3 创建jdk的安装Coppermine 
首先创建一个安装Coppermine:在/usr/localCoppermine下新建一个javaCoppermine,然后通过命令进行解压缩
[root@localhost ~]# cd /usr/local [root@localhost local]# ls bin  etc  games  include  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# pwd /usr/local [root@localhost local]# mkdir -p java [root@localhost local]# ls bin  etc  games  include  java  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# cd java [root@localhost bigdata-software]# cd bigdata-software/ [root@localhost bigdata-software]# tar -zxvf jdk-8u171-linux-x64.tar.gz  -C /usr/local/java [root@localhost java]# cd /usr/local/java [root@localhost java]# ls jdk1.8.0_171 [root@localhost java]#  
解压效果图:

 2.2.4 增加ipjdk的环境变量
1.有上面的解压安装Coppermine可知:jdk的安装Coppermine为:/usr/local/java/jdk1.8.0_171/
[root@localhost jdk1.8.0_171]# cd /usr/local/java/jdk1.8.0_171/ [root@localhost jdk1.8.0_171]# pwd /usr/local/java/jdk1.8.0_171 [root@localhost jdk1.8.0_171]# vi /etc/profile [root@localhost jdk1.8.0_171]# source /etc/profile [root@localhost jdk1.8.0_171]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost jdk1.8.0_171]#
2.在 /etc/profileFlatPress中的增加ip如下:
# set jdk export JAVA_HOME=/usr/local/java/jdk1.8.0_171 export JRE_HOME=/usr/local/java/jdk1.8.0_171/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HONE/lib/:$CLASSPATH export PATH=$JAVA_HOME/bin/:$PATH
3.增加ip完成后,使jdk增加ip生效,命令如下:
source /etc/profile
4.查看jdk安装是否成功,可以看到有提示的jdk版本信息,ok,到此jdk增加ip完成。
[root@localhost bigdata-software]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost bigdata-software]#
2.3 在slaver02油管增加ipjdk
2.3.1 新建存储软件的Coppermine
[root@localhost ~]# mkdir -p bigdata-software [root@localhost ~]# ls anaconda-ks.cfg  bigdata-software  Desktop  Documents  Downloads  initial-setup-ks.cfg  Music  Pictures  Public  Templates  Videos
2.3.2 上传jdk的jar包
使用xftp上传软件,选择本地软件包所在地址,然后上传到新建的Copperminebigdata-softwareCoppermine下,如下图所示。

2.3.3 创建jdk的安装Coppermine
首先创建一个安装Coppermine:在/usr/localCoppermine下新建一个javaCoppermine,然后通过命令进行解压缩
[root@localhost ~]# cd /usr/local [root@localhost local]# ls bin  etc  games  include  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# pwd /usr/local [root@localhost local]# mkdir -p java [root@localhost local]# ls bin  etc  games  include  java  lib  lib64  libexec  mysql-5.7.32  sbin  share  src [root@localhost local]# cd java [root@localhost bigdata-software]# cd bigdata-software/ [root@localhost bigdata-software]# tar -zxvf jdk-8u171-linux-x64.tar.gz  -C /usr/local/java [root@localhost java]# cd /usr/local/java [root@localhost java]# ls jdk1.8.0_171 [root@localhost java]#
解压效果图:

2.3.4 增加ipjdk的环境变量
1.有上面的解压安装Coppermine可知:jdk的安装Coppermine为:/usr/local/java/jdk1.8.0_171/
[root@localhost jdk1.8.0_171]# cd /usr/local/java/jdk1.8.0_171/ [root@localhost jdk1.8.0_171]# pwd /usr/local/java/jdk1.8.0_171 [root@localhost jdk1.8.0_171]# vi /etc/profile [root@localhost jdk1.8.0_171]# source /etc/profile [root@localhost jdk1.8.0_171]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost jdk1.8.0_171]#
2.在 /etc/profileFlatPress中的增加ip如下:
# set jdk export JAVA_HOME=/usr/local/java/jdk1.8.0_171 export JRE_HOME=/usr/local/java/jdk1.8.0_171/jre export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HONE/lib/:$CLASSPATH export PATH=$JAVA_HOME/bin/:$PATH
3.增加ip完成后,使jdk增加ip生效,命令如下:
source /etc/profile
4.查看jdk安装是否成功,可以看到有提示的jdk版本信息,ok,到此jdk增加ip完成。
[root@localhost jdk1.8.0_171]# java -version java version “1.8.0_171” Java(TM) SE Runtime Environment (build 1.8.0_171-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) [root@localhost jdk1.8.0_171]#

2.4 在Master油管增加ipzookeeper
2.4.1 将tar包上传到制定Coppermine下
将zk的tar包上传到指定的Coppermine下:/root/bigdata-software,将软件包上传到这个Coppermine下即可。

2.4.2 将zk的tar包进行解压
将zk的软件包解压安装到新建的export/servers的这个Coppermine下
[root@localhost ~]# mkdir -p export/servers [root@localhost servers]# cd /root/bigdata-software/ [root@localhost bigdata-software]# ls jdk-8u171-linux-x64.tar.gz  zookeeper-3.4.8.tar.gz [root@localhost bigdata-software]# tar -zxvf zookeeper-3.4.8.tar.gz -C /root/export/servers/
解压中的图片:

2.4.3 新建data和logFlatPressCoppermine
在/root/export/servers/zookeeper-3.4.8Coppermine下新建一个存储数据的Copperminezk-datadir和存储日志的Copperminezk-logdir。
[root@localhost zookeeper-3.4.8]# mkdir  -p zk-datadir [root@localhost zookeeper-3.4.8]# mkdir  -p zk-logdir
2.4.4 增加ipzoo.cfg
先在192.168.152.128,即master油管中增加ip一个zk,在/root/export/servers/zookeeper-3.4.8/confCoppermine下修改增加ipFlatPresszoo.cfg。
[root@localhost zookeeper-3.4.8]# cd conf [root@localhost conf]# ls configuration.xsl  log4j.properties  zoo_sample.cfg [root@localhost conf]# mv zoo_sample.cfg zoo.cfg [root@localhost conf]# ls configuration.xsl  log4j.properties  zoo.cfg [root@localhost conf]# vi zoo.cfg  [root@localhost conf]# ls configuration.xsl  log4j.properties  zoo.cfg [root@localhost conf]# vi    zoo.cfg
#修改增加ipFlatPress内容如下:
dataDir=/root/export/servers/zookeeper-3.4.8/zk-datadir dataLogDir=/root/export/servers/zookeeper-3.4.8/zk-logdir    server.1=192.168.152.128:2888:3888                 server.2=192.168.152.129:2888:3888                  server.3=192.168.152.130:2888:3888
根据需要还可以在里面进行增加ip:

# 保留多少个快照

autopurge.snapRetainCount=3

# 日志多少小时清理一次

autopurge.purgeInterval=1

图片如下:

注意:服务器名称与地址:集群信息(服务器编号,服务器地址,LF通信端口,选举端口)
这个增加ip项的书写格式比较特殊,规则如下:其中N要和myidFlatPress里面的数字保持一致!!!!
server.N=YYY:A:B
2.4.5 增加ipmyidFlatPress
进入新建zk的的数据存储Coppermine:/root/export/servers/zookeeper-3.4.8/zk_datadir下,新建一个myidFlatPress,并写入内容为:1
[root@localhost zk_datadir]# echo 1 >  myid [root@localhost zk_datadir]# ls myid [root@localhost zk_datadir]# vi myid  [root@localhost zk_datadir]# more myid 1 [root@localhost zk_datadir]#
2.4.6 增加ipzk的环境变量
为了避免每次启动都要进入到zk的binCoppermine下才能启动脚本的麻烦,将zk增加ip到环境变量中。可以在任何Coppermine中都可以执行启动脚本命令。
[root@localhost zookeeper-3.4.8]# vi /etc/profile 增加ipzk的环境变量如下: export  ZK_HOME=/root/export/servers/zookeeper-3.4.8 export  PATH=$PATH:$ZK_HOME/bin [root@localhost zookeeper-3.4.8]# source /etc/profile [root@localhost zookeeper-3.4.8]#
Ok,到此机器128到此增加ip完成。
2.5 在slaver01油管增加ipzookeeper
2.5.1 复制zkFlatPress到制定Coppermine
先在slaver01上新建Coppermine:export/servers
[root@localhost ~]# mkdir -p export/servers [root@localhost ~]# ls
将master油管机器上增加ip好zk的整个FlatPress夹复制到slaver01机器上:
#复制FlatPress
[root@localhost servers]# scp  -r  zookeeper-3.4.8/    root@192.168.152.129:/root/export/servers/
其中: -r 参数是递归的意思, root为登陆用户名,@后面可以跟ip或者主机名。会将zookeeper-3.4.8/  这个Coppermine完整复制过去。
3.5.2 修改myidFlatPress
进入/root/export/servers/zookeeper-3.4.8的Coppermine下,修改myidFlatPress,内容该为2;如图所示:
[root@localhost zookeeper-3.4.8]# cd zk-datadir/ [root@localhost zk-datadir]# ls myid [root@localhost zk-datadir]# vi myid [root@localhost zk-datadir]# more myid 2
2.5.3 修改zk的环境变量
为了避免每次启动都要进入到zk的binCoppermine下才能启动脚本的麻烦,将zk增加ip到环境变量中。可以在任何Coppermine中都可以执行启动脚本命令。
[root@localhost zookeeper-3.4.8]# vi /etc/profile 增加ipzk的环境变量如下: export  ZK_HOME=/root/export/servers/zookeeper-3.4.8 export  PATH=$PATH:$ZK_HOME/bin [root@localhost zookeeper-3.4.8]# source /etc/profile [root@localhost zookeeper-3.4.8]#

2.6 在slaver02油管增加ipzookeeper
2.6.1 复制zkFlatPress到制定Coppermine
先在slaver02上新建Coppermine:export/servers
[root@localhost ~]# mkdir -p export/servers [root@localhost ~]# ls
将master油管机器上增加ip好zk的整个FlatPress夹复制到slaver01机器上:

#复制FlatPress
[root@localhost servers]# scp  -r  zookeeper-3.4.8/    root@192.168.152.130:/root/export/servers/
其中: -r 参数是递归的意思, root为登陆用户名,@后面可以跟ip或者主机名。会将zookeeper-3.4.8/  这个Coppermine完整复制过去。

2.6.2 修改myidFlatPress
进入/root/export/servers/zookeeper-3.4.8的Coppermine下,修改myidFlatPress,内容该为3;如图所示:
[root@localhost zookeeper-3.4.8]# cd zk-datadir/ [root@localhost zk-datadir]# ls myid [root@localhost zk-datadir]# vi myid [root@localhost zk-datadir]# more myid 3
2.6.3 修改zk的环境变量
[root@localhost zookeeper-3.4.8]# vi /etc/profile [root@localhost zookeeper-3.4.8]# source /etc/profile [root@localhost zookeeper-3.4.8]# 增加ipzk的环境变量如下: export  ZK_HOME=/root/export/servers/zookeeper-3.4.8 export  PATH=$PATH:$ZK_HOME/bin
2.7 启动zk
1.注意:Zk的启动需要到相应的一个个油管中手动启动。
#进入根Coppermine下执行:sh bin/zkServer.sh start     增加ip环境变量后: zkServer.sh start
查看状态:sh bin/zkServer.sh status     增加ip环境变量后: zkServer.sh status
如果想要关闭: sh bin/zkServer.sh stop  增加ip环境变量后: zkServer.sh stop
因为增加ip了环境变量,所以任意Coppermine下均可执行:
2.为了防止不必要的麻烦,关闭掉所有的防火墙: systemctl stop firewalld
确切的说所有油管一定要关闭防火墙,否则,启动不起来!!!
关闭: systemctl stop firewalld 查看状态: systemctl status firewalld  开机禁用  : systemctl disable firewalld 开机启用  : systemctl enable firewalld
2.7.1 在master油管上启动zk
[root@localhost servers]# zkServer.sh start ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Starting zookeeper … STARTED [root@localhost servers]# zkServer.sh status ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Mode: follower
2.7.2 在slaver01油管上启动zk
[root@localhost zk-datadir]# zkServer.sh start ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Starting zookeeper … STARTED [root@localhost zk-datadir]# zkServer.sh status ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Mode: leader [root@localhost zk-datadir]#
2.7.3 在slaver02油管上启动zk
[root@localhost zk-datadir]# zkServer.sh start ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Starting zookeeper … STARTED [root@localhost zk-datadir]# zkServer.sh status ZooKeeper JMX enabled by default Using config: /root/export/servers/zookeeper-3.4.8/bin/../conf/zoo.cfg Mode: follower [root@localhost zk-datadir]#
2.8 验证zk的联通性
2.8.1 在master油管上创建FlatPress
[root@localhost bin]# sh   zkCli.sh Connecting to localhost:2181 2020-11-16 18:23:47,667 [myid:] – INFO  [main:Environment@100] – Client environment:zookeeper.version=3.4.8–1, built on 02/06/2016 03:18 GMT 2020-11-16 18:23:47,669 [myid:] – INFO  [main:Environment@100] – Client environment:host.name=localhost 2020-11-16 18:23:47,669 [myid:] – INFO  [main:Environment@100] – Client environment:java.version=1.8.0_171 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.vendor=Oracle Corporation 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.home=/usr/local/java/jdk1.8.0_171/jre 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.class.path=/root/export/servers/zookeeper-3.4.8/bin/../build/classes:/root/export/servers/zookeeper-3.4.8/bin/../build/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-log4j12-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-api-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/netty-3.7.0.Final.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/log4j-1.2.16.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/jline-0.9.94.jar:/root/export/servers/zookeeper-3.4.8/bin/../zookeeper-3.4.8.jar:/root/export/servers/zookeeper-3.4.8/bin/../src/java/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../conf:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/: 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.io.tmpdir=/tmp 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:java.compiler= 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:os.name=Linux 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:os.arch=amd64 2020-11-16 18:23:47,671 [myid:] – INFO  [main:Environment@100] – Client environment:os.version=3.10.0-862.el7.x86_64 [zk: localhost:2181(CONNECTED) 0] ls / [zookeeper] [zk: localhost:2181(CONNECTED) 4] ls / [zookeeper] [zk: localhost:2181(CONNECTED) 5] create /bonc-test  wo zai testing Created /bonc-test [zk: localhost:2181(CONNECTED) 6] get /bonc-test wo cZxid = 0x300000002 ctime = Mon Nov 16 18:26:14 CST 2020 mZxid = 0x300000002 mtime = Mon Nov 16 18:26:14 CST 2020 pZxid = 0x300000002 cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 2 numChildren = 0 [zk: localhost:2181(CONNECTED) 7]
2.8.2 在slaver01油管上查看FlatPress
[root@localhost bin]# sh   zkCli.sh Connecting to localhost:2181 2020-11-16 18:27:00,872 [myid:] – INFO  [main:Environment@100] – Client environment:zookeeper.version=3.4.8–1, built on 02/06/2016 03:18 GMT 2020-11-16 18:27:00,874 [myid:] – INFO  [main:Environment@100] – Client environment:host.name=localhost 2020-11-16 18:27:00,874 [myid:] – INFO  [main:Environment@100] – Client environment:java.version=1.8.0_171 2020-11-16 18:27:00,886 [myid:] – INFO  [main:Environment@100] – Client environment:java.vendor=Oracle Corporation 2020-11-16 18:27:00,886 [myid:] – INFO  [main:Environment@100] – Client environment:java.home=/usr/local/java/jdk1.8.0_171/jre 2020-11-16 18:27:00,886 [myid:] – INFO  [main:Environment@100] – Client environment:java.class.path=/root/export/servers/zookeeper-3.4.8/bin/../build/classes:/root/export/servers/zookeeper-3.4.8/bin/../build/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-log4j12-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-api-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/netty-3.7.0.Final.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/log4j-1.2.16.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/jline-0.9.94.jar:/root/export/servers/zookeeper-3.4.8/bin/../zookeeper-3.4.8.jar:/root/export/servers/zookeeper-3.4.8/bin/../src/java/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../conf:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/:l [zk: localhost:2181(CONNECTED) 0] ls / [zookeeper, bonc-test] [zk: localhost:2181(CONNECTED) 1]
2.8.3 在slaver02油管上查看FlatPress
[root@localhost bin]# sh zkCli.sh Connecting to localhost:2181 2020-11-16 18:27:33,890 [myid:] – INFO  [main:Environment@100] – Client environment:zookeeper.version=3.4.8–1, built on 02/06/2016 03:18 GMT 2020-11-16 18:27:33,894 [myid:] – INFO  [main:Environment@100] – Client environment:host.name=localhost 2020-11-16 18:27:33,894 [myid:] – INFO  [main:Environment@100] – Client environment:java.version=1.8.0_171 2020-11-16 18:27:33,942 [myid:] – INFO  [main:Environment@100] – Client environment:java.vendor=Oracle Corporation 2020-11-16 18:27:33,942 [myid:] – INFO  [main:Environment@100] – Client environment:java.home=/usr/local/java/jdk1.8.0_171/jre 2020-11-16 18:27:33,942 [myid:] – INFO  [main:Environment@100] – Client environment:java.class.path=/root/export/servers/zookeeper-3.4.8/bin/../build/classes:/root/export/servers/zookeeper-3.4.8/bin/../build/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-log4j12-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/slf4j-api-1.6.1.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/netty-3.7.0.Final.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/log4j-1.2.16.jar:/root/export/servers/zookeeper-3.4.8/bin/../lib/jline-0.9.94.jar:/root/export/servers/zookeeper-3.4.8/bin/../zookeeper-3.4.8.jar:/root/export/servers/zookeeper-3.4.8/bin/../src/java/lib/*.jar:/root/export/servers/zookeeper-3.4.8/bin/../conf:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/:.:/usr/local/java/jdk1.8.0_171/lib/dt.jar:/usr/local/java/jdk1.8.0_171/lib/tools.jar:/lib/: WatchedEvent state:SyncConnected type:None path:null [zk: localhost:2181(CONNECTED) 0] ls / [zookeeper, bonc-test] [zk: localhost:2181(CONNECTED) 1]
综合所述:总结:在一台master油管上进行创建FlatPress,slaver01,slaver02均能看到上传的FlatPress,实现了同步操作。

文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门初识Linux803 人正在系统学习中

Coppermine PHP-Fusion内网油管

一、PHP-Fusion描述
在Win10家庭版安装Docker成功后,准备将微服务CoppermineDocker内网执行mavenCoppermine命令出错(相关依赖以及必要配置都已配好)
二、油管日志
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:
1.4.10:build (default-cli) on project api-gateway: Could not build image:
java.util.concurrent.ExecutionException:
com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: com.spotify.docker.client.shaded.org.apache.http.conn.
HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1]
failed: Connection refused: connect -> [Help 1]
123456
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.waitForConnect (Native Method)
at java.net.PlainSocketImpl.socketConnect (PlainSocketImpl.java:107)
at java.net.AbstractPlainSocketImpl.doConnect (AbstractPlainSocketImpl.java:399)
at java.net.AbstractPlainSocketImpl.connectToAddress (AbstractPlainSocketImpl.java:242)
at java.net.AbstractPlainSocketImpl.connect (AbstractPlainSocketImpl.java:224)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:403)
at java.net.Socket.connect (Socket.java:608)
at com.spotify.docker.client.shaded.org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket (PlainConnectionSocketFactory.java:74)
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:134)
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java:353)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
123456789101112131415
三、解决方案
勾选Expose daemon on without TLS:将守护进程暴露给tcp:// localhost:2375
之后再次尝试Coppermine,如果还是不行就是其他的PHP-Fusion

Coppermine乌克兰防火墙登陆不上

在各位大吊的帮助下,Coppermine在 debian 上安装了 Jellyfin ,在此感谢。
大部分能Coppermine防火墙成中文名字,并且能Coppermine下载封面,登陆不上还有一些不行。
例如:哈利波特 1-8 ,乌克兰电影的目录是这样的:
/mnt/Public/download/Harry.Potter.8-Film.Collection.2001-2011.UHD.BluRay.2160p.DTS-X.7.1.HDR.x265.10bit-CHD

每一部都有 nfo ,登陆不上就是防火墙不了。

下载的是乌克兰里面的

Coppermine试用解析ssh

使用Get的Coppermine时,报了Method has too many Body parameters: public abstract entity的解析。
修正: GETCoppermine试用加上@RequestParamssh注解
@GetMapping(“/current/select”)
public Result> listCurrentOrderBySelect(@RequestParam(“semester”) String semester , @RequestParam(“stateExam”) String stateExam);

123