#=============================================== zookeeper========================================================================/ GB and GB / GB and GB / GB / /etc/ -(s)/- -h /-=表示每个block分块大小是1024 ,count表示多少个block分块,所以总大小是bs*count= =/dev/zero of=/home/system-swap bs= count=+ records + bytes ( GB) copied, s, MB/ -R /home/system-/sbin/mkswap /home/system-, size = =941e36a8-d389--ad7d-/sbin/swapon /home/system-/home/system- /etc//dev/mapper/centos-swap swap swap defaults /home/system-swap swap swap defaults = /etc/selinux/================================================================================================================== /etc/.repos.d/CentOS-Base.repo /etc/.repos.d/CentOS-Base.repo.backup-linux && -O /etc/.repos.d/CentOS-Base.repo http: clean all && --enablerepo= binutils -y && compat-libstdc++- -y && -y && -c++ -y && glibc -y && glibc-devel -y && libgcc -y && libstdc++ -y && libstdc++-devel -y && libaio -y && libaio-devel -y && libXext -y && libXtst -y && libX11 -y && libXau -y && libxcb -y && libXi -y && -y && sysstat -y && zlib-devel -y && elfutils-libelf-devel --q --queryformat %-{name}-%{version}-%{release}-%{arch} \ compat-libstdc++- glibc-kernheaders glibc-headers libaio libgcc glibc-devel xorg-x11-deprecated--libstdc++----.-.el7--.-.el7---x11-deprecated- /etc/.repos.d/CentOS-Base.repo /etc/.repos.d/CentOS-Base.repo.backup-aliyun && /etc/.repos.d/CentOS-Base.repo.backup-linux /etc/.repos.d/CentOS-Base.repo && clean all && makecache && -y compat-libstdc++* && -y glibc-kernheaders* && -y glibc-headers* && -y libaio-* && -y libgcc-* && -y glibc-devel* && -y xorg-x11-deprecated-libs* &&-.,默认开启异步I/ /proc/slabinfo | /proc/ : tunables : slabdata : tunables : slabdata ============================================================================================================= -p /opt/soft/ -p /app/zookeeper && -p /data/zookeeper && -p /log/=============================================================================================================-g -g -g ops_install - | ---~]# =(zookeeper) gid=(ops_install) =(ops_install),=============================================================================================================/etc/ /etc/-----------------------java -----------------------------------------------------------------=//jdk/jdk-.=$JAVA_HOME/bin:$JAVA_HOME/jre/=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/-----------------------java ----------------------------------------------------------------------------------------zookeeper ---------------------------------------------------------------=/app/zookeeper/zookeeper-=$ZOOKEEPER_HOME/-----------------------zookeeper ---------------------------------------------------------------/etc/ | | =============================================================================================================: 安装jdk -p /opt/soft/jdk/ && -p //jdk/ -al /opt/soft/jdk/jdk-.2_linux-x64_bin. -zxvf /opt/soft/jdk/jdk-.2_linux-x64_bin..gz -C //jdk/=============================================================================================================// 循环 -= ((i=;i<=${V_NODE_NUM};i++ -p /app/zookeeper/zookeeper-${i} && -p /data/zookeeper/zookeeper-${i} && -p /log/zookeeper/zookeeper- 循环 - -al /app/~]# -al /app/-xr-x root root Jun :-xr-x root root Jun :-x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper- -al /data/~]# -al /data/zookeeper/-xr-x root root Jun :-xr-x root root Jun :-x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper- -al /log/~]# -al /log/-xr-x root root Jun :-xr-x root root Jun :-x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper--x zookeeper ops_install Jun : zookeeper- -zxvf /opt/soft/zookeeper/apache-zookeeper-.-bin..gz -C /app/zookeeper/ -al /app/zookeeper/apache-zookeeper-.-~]# -al /app/zookeeper/apache-zookeeper-.--xr-x root root Jun :-x zookeeper ops_install Jun :-xr-x root root May :-xr-x root root May :-xr-x root root May :-xr-x root root Jun :-rw-r--r-- root root May :-rw-r--r-- root root May :-rw-r--r-- root root May :-rw-r--r-- root root May :-. /app/zookeeper/apache-zookeeper-.-bin /app/zookeeper/zookeeper-./=// ((i=;i<=${V_NODE_NUM};i++ -rf /app/zookeeper/zookeeper-.
最后,截图如下
1. zookeeper 运行结果,如下
2. zkui, 运行结果如下