当前位置: 首页 > news >正文

张家港网站设计制作早晨设计百度关键词规划师入口

张家港网站设计制作早晨设计,百度关键词规划师入口,谷歌官网入口,织梦企业网站源码同步软件安装部署与用户创建 概述准备环境目标资源1.测试虚拟机下载地址包含node1,node22.KFS管控平台工具下载地址3.临时授权下载地址 实操#xff1a;同步软件安装部署1.node1准备安装环境(1)增加flysync 用户并设置密码(2)调整flysync的最大文件句柄数#xff08;open fil… 同步软件安装部署与用户创建 概述准备环境目标资源1.测试虚拟机下载地址包含node1,node22.KFS管控平台工具下载地址3.临时授权下载地址 实操同步软件安装部署1.node1准备安装环境(1)增加flysync 用户并设置密码(2)调整flysync的最大文件句柄数open files、允许创建的最大进程数量max user processes(3)hosts 文件配置(4)network配置(5)上传并安装ruby工具(6)node1数据库配置(7)重启数据库使配置生效(8)导入测试数据(9)最后检查下环境 2.node2准备安装环境(1)增加flysync 用户并设置密码(2)调整flysync的最大文件句柄数open files、允许创建的最大进程数量max user processes(3)hosts 文件配置(4)network配置(5)拷贝并安装ruby工具(6)node2数据库添加用户并授权(7)最后检查下环境 3.node2部署KFS 管控平台KFSMC(1).上传安装包及授权文件(2).解压安装包(3).创建安装目录并授权(4).启动安装程序a.命令行下安装b.界面化安装c.如果为正常卸载数据库 (5).启动管控平台(6).验证平台是否正常运行 4.创建管控平台专用用户(1).创建角色并配置权限(2).创建用户 概述 Kingbase FlySync是面向同城/异地灾备、数据库平滑升级替换、数据集中共享与分发、应用上云迁移、数据库负载均衡等场景的数据同步产品。该产品基于增量日志解析技术性能高、时延低、资源占用极少能够实现异构数据源之间大规模增量数据的任意方向流转和实时同步帮助用户打破数据孤岛轻松共享分发数据。Kingbase FlySync支持丰富的软硬件平台和数据源同步拓扑可以一对一、一对多、多对一、级联等方式任意组合延伸并可在数据同步过程中保证端到端的事务级数据完整性和高可用性。 准备环境 两台虚拟机 虚拟机IP数据库软件版本角色操作系统K2node1192.168.40.111(Kingbase) KingbaseES V8R6主库CenterOS7.2K2node2192.168.40.112(Kingbase) KingbaseES V8R6备库CenterOS7.2 数据库安装要求 项目node1node2数据库版本KingbaseES V8R6KingbaseES V8R6安装路径/KingbaseES/V8//KingbaseES/V8/data路径/data/data端口5432154321用户名systemsystem密码kingbasekingbase 目标 同步程序安装部署使用命令方式完成数据迁移并保证数据一致。按照以下规范完成部署 类别源端目标端replicater安装路径/home/flysync/replicator/home/flysync/replicatorreplicator端口rmi-port11000/kufl-port:3112rmi-port:11000/kufl-port3112kfs服务名kingbase8_sourcekingbase8_targetKFS 同步所使用的用户flysync/flysyncflysync/flysync管控平台地址http://192.168.40.112:8089http://127.0.0.1:8089kfs命令相关的路径/home/flysync/replicator/flysync/flysync-replicator/bin/home/flysync/replicator/flysync/flysync-replicator/bin/opt/KFS/manager/bin//opt/KFS/compare/bin//opt/KFS/console/bin/映射规则1examexam[0017]映射规则2exam.courseexam0017.course0017 5.创建新管控平台角色和用户格式如下 类别格式角色role_0017用户user_017 资源 1.测试虚拟机下载地址包含node1,node2 虚拟机快照都还原至优化数据库root用户密码为kingbase.123kingbase用户密码为kingbase 点击下载百度网盘 2.KFS管控平台工具下载地址 点击下载百度网盘 3.临时授权下载地址 点击下载百度网盘 实操同步软件安装部署 1.node1准备安装环境 (1)增加flysync 用户并设置密码 [rootnode1 ~]# adduser flysync [rootnode1 ~]# usermod -G kingbase flysync [rootnode1 ~]# echo flysync | passwd --stdin flysync 更改用户 flysync 的密码 。 passwd所有的身份验证令牌已经成功更新。 [rootnode1 ~]#(2)调整flysync的最大文件句柄数open files、允许创建的最大进程数量max user processes [rootnode1 ~]# cat /etc/security/limits.conf EOF flysync - nofile 65535 flysync - nproc 8096 EOF [rootnode1 ~]# cat /etc/security/limits.conf # /etc/security/limits.conf # #This file sets the resource limits for the users logged in via PAM. #It does not affect resource limits of the system services. # #Also note that configuration files in /etc/security/limits.d directory, #which are read in alphabetical order, override the settings in this #file in case the domain is the same or more specific. #That means for example that setting a limit for wildcard domain here #can be overriden with a wildcard setting in a config file in the #subdirectory, but a user specific setting here can be overriden only #with a user specific setting in the subdirectory. # #Each line describes a limit for a user in the form: # #domain type item value # #Where: #domain can be: # - a user name # - a group name, with group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #type can have the two values: # - soft for enforcing the soft limits # - hard for enforcing hard limits # #item can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open file descriptors # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit (KB) # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to values: [-20, 19] # - rtprio - max realtime priority # #domain type item value ##* soft core 0 #* hard rss 10000 #student hard nproc 20 #faculty soft nproc 20 #faculty hard nproc 50 #ftp hard nproc 0 #student - maxlogins 4#add by kingbase kingbase soft nproc 65536 kingbase hard nproc 65536 kingbase soft nofile 65536 kingbase hard nofile 65536 #kingbase soft stack 10240 #kingbase hard stack 32768 kingbase soft core unlimited kingbase hard core unlimitedflysync - nofile 65535 flysync - nproc 8096 [rootnode1 ~]# (3)hosts 文件配置 [rootnode1 ~]# cat /etc/hosts EOF 192.168.40.111 node1 192.168.40.112 node2 EOF [rootnode1 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.40.111 node1 192.168.40.112 node2 [rootnode1 ~]# (4)network配置 [rootnode1 ~]# cat /etc/sysconfig/network EOFNETWORKING yesEOF [rootnode1 ~]# cat /etc/sysconfig/network # Created by anaconda NETWORKING yes HOSTNAME node1 [rootnode1 ~]# (5)上传并安装ruby工具 使用FTP工具上传rbenv_2.2.2_linux_x64.zip到/home/flysync目录下 [rootnode1 flysync]# ls -l 总用量 6832 -rw-r--r-- 1 root root 6993781 11月 16 10:28 rbenv_2.2.2_linux_x64.zip [rootnode1 flysync]# pwd /home/flysync [rootnode1 flysync]# [rootnode1 flysync]# chown flysync:flysync /home/flysync/rbenv_2.2.2_linux_x64.zip [rootnode1 flysync]#解压rbenv_2.2.2_linux_x64.zip包 [rootnode1 flysync]su flysync [flysyncnode1 flysync]# unzip -q /home/flysync/rbenv_2.2.2_linux_x64.zip [flysyncnode1 flysync]# ls -l 总用量 6836 -rwxr-xr-x 1 root root 340 11月 4 2019 fspm drwxrwxr-x 3 flysync flysync 17 11月 4 2019 rbenv -rw-r--r-- 1 flysync flysync 6993781 11月 16 10:28 rbenv_2.2.2_linux_x64.zip [rootnode1 flysync]#把ruby添加到环境变量 [flysyncnode1 flysync]# vi ~/.bash_profile [flysyncnode1 flysync]# source ~/.bash_profile [flysyncnode1 flysync]# cat ~/.bash_profile [flysyncnode1 ~]$ cat ~/.bash_profile # .bash_profile# Get the aliases and functions if [ -f ~/.bashrc ]; then. ~/.bashrc fi# User specific environment and startup programsPATH$PATH:$HOME/.local/bin:$HOME/bin export RUBY_HOME/home/flysync/rbenv/ruby export PATH$RUBY_HOME/bin:$PATH export PATH[flysyncnode1 flysync]# ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] [flysyncnode1 flysync]# (6)node1数据库配置 登录数据库 [kingbasenode1 ~]$ cd /KingbaseES/V8/Server/bin/ [kingbasenode1 bin]$ ./ksql -Usystem test ksql (V8.0) 输入 help 来获取帮助信息. test# 添加flysync用户并授权 test# CREATE USER flysync PASSWORD flysync; CREATE ROLE test# ALTER USER flysync REPLICATION; ALTER ROLE test# GRANT ALL PRIVILEGES ON DATABASE TEST TO flysync ; GRANT test# ALTER USER flysync SUPERUSER; ALTER ROLE test# 配置服务器参数 test# ALTER SYSTEM SET wal_level logical; ALTER SYSTEM test# ALTER SYSTEM SET wal_keep_segments 4; ALTER SYSTEM test# ALTER SYSTEM SET max_wal_senders 10; ALTER SYSTEM test# ALTER SYSTEM SET max_replication_slots 10; ALTER SYSTEM test# 退出数据库并修改数据库认证文件 test# \q [kingbasenode1 bin]$ cat /data/sys_hba.conf EOF host replication all 0.0.0.0/0 scram-sha-256 EOF [kingbasenode1 bin]$ cat /data/sys_hba.conf # Kingbase Client Authentication Configuration File # # # Refer to the Client Authentication section in the Kingbase # documentation for a complete description of this file. A short # synopsis follows. # # This file controls: which hosts are allowed to connect, how clients # are authenticated, which Kingbase user names they can use, which # databases they can access. Records take one of these forms: # # local DATABASE USER METHOD [OPTIONS] # host DATABASE USER ADDRESS METHOD [OPTIONS] # hostssl DATABASE USER ADDRESS METHOD [OPTIONS] # hostnossl DATABASE USER ADDRESS METHOD [OPTIONS] # # (The uppercase items must be replaced by actual values.) # # The first field is the connection type: local is a Unix-domain # socket, host is either a plain or SSL-encrypted TCP/IP socket, # hostssl is an SSL-encrypted TCP/IP socket, and hostnossl is a # plain TCP/IP socket. # # DATABASE can be all, sameuser, samerole, replication, a # database name, or a comma-separated list thereof. The all # keyword does not match replication. Access to replication # must be enabled in a separate record (see example below). # # USER can be all, a user name, a group name prefixed with , or a # comma-separated list thereof. In both the DATABASE and USER fields # you can also write a file name prefixed with to include names # from a separate file. # # ADDRESS specifies the set of hosts the record matches. It can be a # host name, or it is made up of an IP address and a CIDR mask that is # an integer (between 0 and 32 (IPv4) or 128 (IPv6) inclusive) that # specifies the number of significant bits in the mask. A host name # that starts with a dot (.) matches a suffix of the actual host name. # Alternatively, you can write an IP address and netmask in separate # columns to specify the set of hosts. Instead of a CIDR-address, you # can write samehost to match any of the servers own IP addresses, # or samenet to match any address in any subnet that the server is # directly connected to. # # METHOD can be trust, reject, md5, password, scram-sha-256, # gss, sspi, ident, peer, pam, ldap, radius or cert. # Note that password sends passwords in clear text; md5 or # scram-sha-256 are preferred since they send encrypted passwords. # # OPTIONS are a set of options for the authentication in the format # NAMEVALUE. The available options depend on the different # authentication methods -- refer to the Client Authentication # section in the documentation for a list of which options are # available for which authentication methods. # # Database and user names containing spaces, commas, quotes and other # special characters must be quoted. Quoting one of the keywords # all, sameuser, samerole or replication makes the name lose # its special character, and just match a database or username with # that name. # # This file is read on server startup and when the server receives a # SIGHUP signal. If you edit the file on a running system, you have to # SIGHUP the server for the changes to take effect, run sys_ctl reload, # or execute SELECT pg_reload_conf(). # # Put your actual configuration here # ---------------------------------- # # If you want to allow non-local connections, you need to add more # host records. In that case you will also need to make Kingbase # listen on a non-local interface via the listen_addresses # configuration parameter, or via the -i or -h command line switches.# CAUTION: Configuring the system for local trust authentication # allows any local user to connect as any Kingbase user, including # the database superuser. If you do not trust all your local users, # use another authentication method.# TYPE DATABASE USER ADDRESS METHOD# local is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 scram-sha-256 host all all 0.0.0.0/0 scram-sha-256 # IPv6 local connections: host all all ::1/128 scram-sha-256 host all all ::0/0 scram-sha-256 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all trust host replication all 127.0.0.1/32 scram-sha-256 host replication all ::1/128 scram-sha-256 host replication all 0.0.0.0/32 scram-sha-256 host replication all 0.0.0.0/0 scram-sha-256 [kingbasenode1 bin]$ (7)重启数据库使配置生效 [kingbasenode1 bin]$ sys_ctl restart -D /data waiting for server to shut down.... done server stopped waiting for server to start....2023-11-16 03:43:14.182 GMT [5233] 警告: max_connections should be less than or equal than 10 (restricted by license) 2023-11-16 03:43:14.182 GMT [5233] 提示: the value of max_connect is set 10 2023-11-16 03:43:14.183 GMT [5233] 警告: max_connections should be less than or equal than 10 (restricted by license) 2023-11-16 03:43:14.183 GMT [5233] 提示: the value of max_connect is set 10 2023-11-16 11:43:14.189 CST [5233] 日志: sepapower extension initialized 2023-11-16 11:43:14.191 CST [5233] 日志: 太多后台工作进程 2023-11-16 11:43:14.191 CST [5233] 详细信息: 当前设置里最多可以注册2个后台工作进程. 2023-11-16 11:43:14.191 CST [5233] 提示: 考虑增大配置参数 max_worker_processes的值. 2023-11-16 11:43:14.191 CST [5233] 日志: 太多后台工作进程 2023-11-16 11:43:14.191 CST [5233] 详细信息: 当前设置里最多可以注册2个后台工作进程. 2023-11-16 11:43:14.191 CST [5233] 提示: 考虑增大配置参数 max_worker_processes的值. 2023-11-16 11:43:14.192 CST [5233] 日志: 正在启动 KingbaseES V008R006C005B0023 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46), 64-bit 2023-11-16 11:43:14.192 CST [5233] 日志: 正在监听IPv4地址0.0.0.0端口 54321 2023-11-16 11:43:14.192 CST [5233] 日志: 正在监听IPv6地址::端口 54321 2023-11-16 11:43:14.193 CST [5233] 日志: 在Unix套接字 /tmp/.s.KINGBASE.54321上侦听 2023-11-16 11:43:14.244 CST [5233] 日志: 日志输出重定向到日志收集进程 2023-11-16 11:43:14.244 CST [5233] 提示: 后续的日志输出将出现在目录 sys_log中.done server started [kingbasenode1 bin]$ (8)导入测试数据 [kingbasenode1 install]$ ksql -U flysync -d test -f /install/EXAM_v0.11.sql ksql:/install/EXAM_v0.11.sql:8: 注意: 串联删除10个其它对象 描述: 递归删除 序列 exam.seq_student_sno 递归删除 表 exam.student 递归删除 表 exam.course 递归删除 表 exam.instructor 递归删除 表 exam.instructor_history 递归删除 表 exam.score 递归删除 视图 exam.v_score_information 递归删除 function exam.get_avg_score(numeric) 递归删除 procedure exam.retire_instructor(numeric) 递归删除 表 exam.tmpbak01 DROP SCHEMA CREATE SCHEMA SET CREATE SEQUENCE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE CREATE TABLE COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT COMMENT INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 INSERT 0 1 CREATE VIEW CREATE FUNCTION CREATE PROCEDURE CREATE TRIGGER ksql:/install/EXAM_v0.11.sql:202: 警告: 没有事物在运行中 COMMIT [kingbasenode1 install]$ (9)最后检查下环境 检查机器名 [kingbasenode1 install]$ exit 登出 [rootnode2 flysync]# uname -n node2 检查操作系统属性检查及配置 [rootnode1 ~]$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 11210 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65535 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 8096 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited 检查IP 地址 [rootnode1 flysync]# hostname --ip-address 192.168.40.111 192.168.40.111 [rootnode1 flysync]# 检查其他机器的 IP 地址是否正确 [rootnode1 ~]$ ping -c 4 node1 PING node1 (192.168.40.111) 56(84) bytes of data. 64 bytes from node1 (192.168.40.111): icmp_seq1 ttl64 time0.036 ms 64 bytes from node1 (192.168.40.111): icmp_seq2 ttl64 time0.110 ms 64 bytes from node1 (192.168.40.111): icmp_seq3 ttl64 time0.036 ms 64 bytes from node1 (192.168.40.111): icmp_seq4 ttl64 time0.037 ms--- node1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev 0.036/0.054/0.110/0.033 ms [flysyncnode1 ~]$ ping -c 4 node2 PING node2 (192.168.40.112) 56(84) bytes of data. 64 bytes from node2 (192.168.40.112): icmp_seq1 ttl64 time1.65 ms 64 bytes from node2 (192.168.40.112): icmp_seq2 ttl64 time1.43 ms 64 bytes from node2 (192.168.40.112): icmp_seq3 ttl64 time0.262 ms 64 bytes from node2 (192.168.40.112): icmp_seq4 ttl64 time0.301 ms--- node2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3003ms rtt min/avg/max/mdev 0.262/0.913/1.656/0.637 ms 检查时区 [rootnode1 ~]$ date 2023年 11月 16日 星期四 11:48:34 CST2.node2准备安装环境 (1)增加flysync 用户并设置密码 [rootnode2 ~]# userdel -r flysync [rootnode2 ~]# adduser flysync [rootnode2 ~]# usermod -G kingbase flysync [rootnode2 ~]# echo flysync |passwd --stdin flysync 更改用户 flysync 的密码 。 passwd所有的身份验证令牌已经成功更新。 [rootnode2 ~]# (2)调整flysync的最大文件句柄数open files、允许创建的最大进程数量max user processes [rootnode2 ~]# cat /etc/security/limits.conf EOF flysync - nofile 65535 flysync - nproc 8096 EOF [rootnode2 ~]# cat /etc/security/limits.conf # /etc/security/limits.conf # #This file sets the resource limits for the users logged in via PAM. #It does not affect resource limits of the system services. # #Also note that configuration files in /etc/security/limits.d directory, #which are read in alphabetical order, override the settings in this #file in case the domain is the same or more specific. #That means for example that setting a limit for wildcard domain here #can be overriden with a wildcard setting in a config file in the #subdirectory, but a user specific setting here can be overriden only #with a user specific setting in the subdirectory. # #Each line describes a limit for a user in the form: # #domain type item value # #Where: #domain can be: # - a user name # - a group name, with group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # #type can have the two values: # - soft for enforcing the soft limits # - hard for enforcing hard limits # #item can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open file descriptors # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit (KB) # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to values: [-20, 19] # - rtprio - max realtime priority # #domain type item value ##* soft core 0 #* hard rss 10000 #student hard nproc 20 #faculty soft nproc 20 #faculty hard nproc 50 #ftp hard nproc 0 #student - maxlogins 4# End of file #add by kingbase kingbase soft nproc 65536 kingbase hard nproc 65536 kingbase soft nofile 65536 kingbase hard nofile 65536 kingbase soft stack 10240 kingbase hard stack 32768 kingbase soft core unlimited kingbase hard core unlimited flysync - nofile 65535 flysync - nproc 8096 [rootnode2 ~]# (3)hosts 文件配置 [rootnode2 ~]# cat /etc/hosts EOF 192.168.40.111 node1 192.168.40.112 node2 EOF [rootnode2 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.40.111 node1 192.168.40.112 node2 [rootnode2 ~]# (4)network配置 [rootnode1 ~]# cat /etc/sysconfig/network EOF NETWORKING yes EOF [rootnode2 ~]# cat /etc/sysconfig/network # Created by anaconda NETWORKING yes HOSTNAME node2 [rootnode2 ~]# (5)拷贝并安装ruby工具 bash [flysyncnode2 ~]# scp rootnode1:/home/flysync/rbenv_2.2.2_linux_x64.zip /home/flysync/ The authenticity of host node1 (192.168.40.111) cant be established. ECDSA key fingerprint is b8:54:e0:74:c5:e2:33:46:0d:7d:39:91:e3:b5:5a:6d. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added node1,192.168.40.111 (ECDSA) to the list of known hosts. rootnode1s password: rbenv_2.2.2_linux_x64.zip 100% 6830KB 6.7MB/s 00:00 [flysyncnode2 ~]# cd /home/flysync/ [flysyncnode2 flysync]# ls rbenv_2.2.2_linux_x64.zip rbenv_2.2.2_linux_x64.zip [flysyncnode2 flysync]#解压rbenv_2.2.2_linux_x64.zip包 [rootnode2 flysync]su flysync [flysyncnode2 flysync]# unzip -q /home/flysync/rbenv_2.2.2_linux_x64.zip [flysyncnode2 flysync]# ls -l 总用量 6836 -rwxr-xr-x 1 root root 340 11月 4 2019 fspm drwxrwxr-x 3 flysync flysync 17 11月 4 2019 rbenv -rw-r--r-- 1 flysync flysync 6993781 11月 16 10:28 rbenv_2.2.2_linux_x64.zip [rootnode1 flysync]#把ruby添加到环境变量 [flysyncnode2 ~]$ vi ~/.bash_profile [flysyncnode2 ~]$ source ~/.bash_profile [flysyncnode2 ~]$ cat ~/.bash_profile # .bash_profile# Get the aliases and functions if [ -f ~/.bashrc ]; then. ~/.bashrc fi# User specific environment and startup programs export RUBY_HOME/home/flysync/rbenv/ruby export PATH$RUBY_HOME/bin:$PATH PATH$PATH:$HOME/.local/bin:$HOME/binexport PATH [flysyncnode2 flysync]# ruby -v ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux] [flysyncnode2 flysync]# (6)node2数据库添加用户并授权 登录数据库 [flysyncnode2 ~]$ exit exit [rootnode2 flysync]# su kingbase [kingbasenode2 flysync]$ [kingbasenode2 flysync]$ cd /KingbaseES/V8/Server/bin/ [kingbasenode2 bin]$ ./ksql -Usystem test ksql (V8.0) 输入 help 来获取帮助信息.test# 添加flysync用户并授权 test# CREATE USER flysync PASSWORD flysync; CREATE ROLE ttest# GRANT ALL PRIVILEGES ON DATABASE TEST TO flysync ; GRANT test# ALTER USER flysync SUPERUSER; ALTER ROLE test# DROP DATABASE IF EXISTS console; 注意: 数据库 console 不存在,跳过 DROP DATABASE test# DROP DATABASE IF EXISTS compare; 注意: 数据库 compare 不存在,跳过 DROP DATABASE test# CREATE DATABASE console; CREATE DATABASE test# CREATE DATABASE compare; CREATE DATABASE test# GRANT ALL PRIVILEGES ON DATABASE compare TO flysync ; GRANT test# GRANT ALL PRIVILEGES ON DATABASE console TO flysync ; GRANT test# (7)最后检查下环境 检查机器名 [kingbasenode1 install]$ exit 登出 [rootnode2 flysync]# uname -n node2检查操作系统属性检查及配置 [rootnode2 flysync]# ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 9838 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 9838 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited [rootnode2 flysync]# 检查IP 地址 [rootnode2 flysync]# hostname --ip-address 192.168.40.112 [rootnode2 flysync]# 检查其他机器的 IP 地址是否正确 [rootnode2 flysync]# ping -c 4 node1 PING node1 (192.168.40.111) 56(84) bytes of data. 64 bytes from node1 (192.168.40.111): icmp_seq1 ttl64 time0.296 ms 64 bytes from node1 (192.168.40.111): icmp_seq2 ttl64 time0.274 ms 64 bytes from node1 (192.168.40.111): icmp_seq3 ttl64 time0.370 ms 64 bytes from node1 (192.168.40.111): icmp_seq4 ttl64 time0.325 ms--- node1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev 0.274/0.316/0.370/0.038 ms [rootnode2 flysync]# ping -c 4 node2 PING node2 (192.168.40.112) 56(84) bytes of data. 64 bytes from node2 (192.168.40.112): icmp_seq1 ttl64 time0.028 ms 64 bytes from node2 (192.168.40.112): icmp_seq2 ttl64 time0.043 ms 64 bytes from node2 (192.168.40.112): icmp_seq3 ttl64 time0.038 ms 64 bytes from node2 (192.168.40.112): icmp_seq4 ttl64 time0.036 ms--- node2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev 0.028/0.036/0.043/0.006 ms [rootnode2 flysync]# 检查时区 [rootnode2 flysync]# date 2023年 11月 16日 星期四 13:19:32 CST [rootnode2 flysync]# 3.node2部署KFS 管控平台KFSMC (1).上传安装包及授权文件 [rootnode2 ~]# cd /install/ [rootnode2 install]# ls -l 总用量 2011428 -rw-r--r-- 1 root root 872781824 4月 9 2023 KingbaseES_V008R006C005B0023_Lin64_single_install.iso -rw-r--r-- 1 root root 1186909089 11月 17 10:40 KingbaseFlySync-V002R002C004B20230320-mc-Linux-x86_64.tar.gz -rw-r--r-- 1 root root 3351 4月 9 2023 license_12350_0_dev.dat -rw-r--r-- 1 root root 1396 11月 17 10:41 license.dat drwxrwxr-x 2 kingbase kingbase 6 4月 9 2023 scripts [rootnode2 install]# su flysync [flysyncnode2 install]$(2).解压安装包 [flysyncnode2 install]$ tar -zxvf KingbaseFlySync-V002R002C004B20230320-mc-Linux-x86_64.tar.gz setup.sh setup/install.bin setup/ setup/.manifest setup/MD5 setup/installer.properties [flysyncnode2 install]$ (3).创建安装目录并授权 [flysyncnode2 install]$ exit exit [rootnode2 install]# mkdir /opt/KFS [rootnode2 install]# chown -R flysync:flysync /opt/KFS/ [rootnode2 install]# (4).启动安装程序 a.命令行下安装 [flysyncnode2 install]$ ./setup.sh -i console Now launch installer... 正在准备进行安装 正在从安装程序档案中提取 JRE... 正在解包 JRE... 正在从安装程序档案中提取安装资源... 配置该系统环境的安装程序...正在启动安装程序... 金仓数据同步管理平台 (使用 InstallAnywhere 创建) -------------------------------------------------------------------------------正在准备控制台模式安装... 简介 --InstallAnywhere 将指导您完成 金仓数据同步管理平台 的安装。建议您在继续本次安装前退出所有程序。 如果要回到前一步骤进行更改可输入“back”。如果要取消本次安装可随时输入“quit”。请按 ENTER 键继续: 许可协议 ----安装和使用 金仓数据同步管理平台 产品之前 您须接受下列许可协议北京人大金仓信息技术股份有限公司 “软件最终用户许可协议”重要须知请认真阅读本《最终用户许可协议》以下 称《协议》是您个人或单一实体与北京人大金仓信息 技术股份有限公司以下简称“人大金仓”之间有关上述 人大金仓软件产品的法律协议。 本“软件产品”包括计算机软件并可能包括相关媒体、 印刷材料和联机文档“软件产品”。本“软件产品”还 包括对人大金仓提供给您的原“软件产品”的任何更新和补 充资料。任何与本“软件产品”一同提供给您的并与单独一 份软件许可证相关的软件产品是根据本《协议》中的条款而 授予您。您一旦安装、复制、下载、 访问或以其它方式使用“软件产品” 即表示您同意接受本《协议》各项条款的约束。 如您不同意本《协议》中的条款请不要安装、 复制或使用“软件产品”。软件产品许可证本“软件产品”受著作权法及国际著作权条约和其它知识 产权法和条约的保护。请按 ENTER 键继续: 本“软件产品”只许可使用而不出售。1、许可证的授予。只要您遵守本《协议》 人大金仓将授予您下列非独占性的不可转让的权利应用软件。 本软件的使用应在相应合同上规定的地点上使用。使用应受 到购买的数量和许可种类如合同中所约定的使用限制所 制约。如果许可种类没有特殊说明 则您只能在单一一台计算机、工作站、手持式计算机、 智能电话或其他数字电子仪器“计算机”上安装、使用、 访问、显示、运行或以其他方式互相作用于“运行”本 “软件产品”的一份副本保留权利。除本协议中具体的规定外 未明示授予的一切其它权利均为人大金仓所有。 人大金仓保留对本协议内容的解释权。2、其它权利和限制的说明。限制转让。在任何情况下 没有人大金仓的事先书面同意 您不得转让本协议或本协议项下授予的任何使用许可。请按 ENTER 键继续: 非再销售性软件。 如果本“软件产品”标明“非再销售品” 则无论本《协议》其它条款有如何说明 您对本“软件产品”的使用只限于演示、测试或评价目的 而您不得再销售或以其它方式有偿转让本“软件产品”。对反向工程、反向编译、反汇编的限制。 您不得对本“软件产品”进行反向工程、 反向编译或反汇编尽管有此限制 但如果适用法律明示允许上述活动 并仅在适用法律明示允许的范围内从事上述活动 则不在此限。商标。本《协议》不授予您任何有关人大金仓商标或服务 商标的权利。出租限制。不得出租、租赁或出借本“软件产品”。出口限制。您承认本“软件产品”受中国出口法律管辖。 您同意遵守所有适用于本“软件产品”的国际法和国内法 包括《中华人民共和国对外贸易法》请按 ENTER 键继续: 以及中国政府颁布的相关软件出口的限制和规定。支持服务。人大金仓为您提供与“软件产品”有关的支持 服务“支持服务” 但支持服务的具体内容受相关合同的制约 人大金仓保留对支持服务进行收费的权利。 支持服务的使用受用户手册、联机文档和/或其它人大金仓提 供的材料中所述的各项政策和计划的制约。提供给您作为支 持服务的一部份的任何附加软件代码应被视为本“软件产品 ”的一部分并须符合本《协议》中的各项条款和条件。 至于您提供给人大金仓作为支持服务的一部分的技术信息 人大金仓可将其用于商业用途包括产品支持和开发。 除了在为您提供支持时必须的情况外 人大金仓在使用这些技术信息时不会以个人形式提及您。协议终止。如您未遵守本《协议》的各项条款和条件 在不损害其它权利的情况下人大金仓可终止本《协议》。 如此类情况发生 您必须销毁“软件产品”的所有副本及其所有组成部分。3、升级版本。如本“软件产品”标明为升级版本您必须获 取由人大金仓标明为合格使用升级版本的产品的许可证方可请按 ENTER 键继续: 使用本“软件产品”。人大金仓公司保留在任何时候为您提 供本“软件产品”的升级版本或升级收取费用的权利。标明 为升级版本的“软件产品”替换和/或补充使您有资格使用升 级版本的基础的产品 您只可根据本《协议》的条款使用所产生的升级产品。如本 “软件产品”是您获得许可作为单一产品使用的一套软件程 序包中一个组件的升级版本则本“软件产品”只可作为该 单一产品包的一部分而使用和转让 并且不可将其分开使用在一台以上的计算机上。4、知识产权。本“软件产品”包括但不限于本“软件产品 ”中所含的任何图像、照片、动画、录像、录音、音乐、 文字和附加程序、随附的印刷材料、 及本“软件产品”的任何副本的产权、 著作权和其他知识产权均由人大金仓或其供应商拥有。通 过使用“软件产品”可访问的内容的一切所有权和知识产权 均属于各自内容所有者拥有 并可能受著作权法或其它知识产权法和条约的保护。 本《协议》不授予您使用这些内容的权利。 如果这份“软件产品”包括只以电子形式提供的文档 您可以打印一份该电子文档。 您不可以从本软件中去掉版权声明并保证为本“软件产品请按 ENTER 键继续: ”复制品全部或部分复制版权声明 您同意制止以任何形式非法复制本软件及文档。 您不可复制本“软件产品”随附的印刷材料。5、多重媒体软件。您可以由多种媒体获得“软件产品” 。 无论您收到何种类型或大小的媒体 您只可使用适用于您单一的计算机的一种媒体。 您不可在另一台计算机上运行另一种媒体。 除作为“软件产品”永久转让的一部分外如上文所述 您不得将另一种媒体出借、 出租或租赁或以其他方式转移给另一用户。6、备份副本。 在按照本《协议》安装一份本“软件产品”副本后 您可以保留人大金仓用以提供给您本“软件产品”的原媒体 仅用于备份或存档之用。 如果需要原媒体方可在计算机上使用“软件产品” 您可以复制一份“软件产品”副本仅用于备份或存档之用。 除本《协议》中明文规定外您不可复制本“软件产品”或 随附本“软件产品”的印刷材料。 经允许的复制件应以安全的方式予以保存。请按 ENTER 键继续: 7、保密。“保密信息”包括程序含程序中使用的方法和概 念和人大金仓识别为专有的或保密的一切信息。 除非本协议明确允许您不得将保密信息透露或者以其他方 式提供给第三方和您没有必要授权其在业务中使用程序的任 何雇员。您应采取一切合理、必要的步骤保证不将本软件 产品的程序或任何部分透露或以其他方式提供给第三方。如您是在中华人民共和国取得此人大金仓产品 下列有限保证适用于您。1、有限保证只要您有有效的许可人大金仓保证1“软件产品” 自收货之日起九十天内基本符合随附书面材料所述的功能。 2人大金仓提供的支持服务应基本与有关书面材料中所述 相符并且人大金仓支持工程师将在商业所允许的范围内尽 力解决任何问题。如果本产品不符合本保证 人大金仓将修理、更换本产品或退回您已支付的价款但您 应将该“软件产品”连同您所持有的发票一同退还给人大金 仓。如果本产品的故障是由事故、滥用或误用所造成 则本保证无效。退换的产品享受原保证期剩余时间 或三十天的保证以时间较长者为准。 在适用法律允许的最大范围内并且除上述保证外请按 ENTER 键继续: 人大金仓否认一切明示或默示的保证、条件和其他条款。不 能予以排除的任何默示保证仅限于九十天或适用法律允许的 最短期间以时间较长者为准内有效。 2、有限责任在适用法律所允许的最大范围内除上述保证规定者外 人大金仓或其供应商在任何情况下绝不就因使用或不能使用 “软件产品”或因提供或未提供支持服务所发生的任何特殊 的、意外的、 非直接的或间接的损失包括但不限于营业利润损失、 营业中断、 商业信息的遗失或任何其他金钱上的损失承担赔偿责任 即使人大金仓或其任何供应商事先被告知该损害发生的可能 性。不论任何情况 人大金仓在本《协议》任何条款下所承担的全部责任 以您就“软件产品”实际已付的价款或人民币10.00元为限 以两者之间较高额为准。但是 如果您已经与人大金仓达成支持服务协议人大金仓就支持 服务的全部赔偿责任应以该支持服务协议条款为准。管辖法律本协议受中华人民共和国法律管辖包括但不限于《中华 人民共和国著作权法》、请按 ENTER 键继续: 《中华人民共和国计算机软件保护条例》、 《中华人民共和国商标法》、《中华人民共和国专利法》、 《中华人民共和国反不正当竞争法》等法律法规。 因本协议或其违约引起的或与之有关的任何争论或索赔 应由人大金仓所在地人民法院管辖。 人大金仓的知识产权如被侵犯上述规定不限制人大金仓就 此向具有合法管辖权的法院请求做出强制性的补救措施。人大金仓的联系方式如下地址北京市朝阳区容达路7号中国电科太极信息产业园B座三 层 邮编100102 电话86-10-5885 1118 网址www.kingbase.com.cn 全国服务热线400-601-1188 技术支持邮箱supportkingbase.com.cn是否接受此许可协议条款 (Y/N): Y 选择授权文件 ------请选择正确的授权文件license.dat。 如有疑问请联系北京人大金仓信息技术股份有限公司。授权文件路径: /install/license.dat授权文件内容 -------------------------------------------------- produceDate: 2022-12-02 validDays: 365 MacAddr: 00:00:00:00:00:00 ServiceNum: 100 clientNumPerService: 100 supportConsole: 1 supportCompare: 1 选择安装集 -----请选择将由本安装程序安装的“安装集”。-1- 完全安装2- 管控平台3- 比对服务输入“安装集”的号码或按 ENTER 键以接受缺省值: 选择安装文件夹 -------您想在哪一位置安装缺省安装文件夹 /opt/KFS输入一个绝对路径或按 ENTER 键以接受缺省路径: 比对服务元数据库配置 ----------比对服务元数据库配置。-1- MySQL2- Kingbase3- PostgreSQL输入对应数据库类型数字或按ENTER键接受缺省类型: 21- 是-2- 否V8R6及以上版本: 1主机名: node2 主机名: 192.168.40.112端口号 (默认 54321): 数据库名: console模式名(小写): kfs用户名: flysync密码: flysync-1- 是2- 否初始化元数据库: 1-------------------------------------------------- 测试连接成功。 服务元信息配置 -------服务元信息配置。管理员账号信息账号: admin 密码: admin确认密码: admin服务中心端口 (默认 8090): 管控平台端口 (默认 8089): 比对服务端口 (默认 8091): -------------------------------------------------- 预安装摘要 -----按 ENTER 键继续。如果所列信息有误请输入“BACK” 然后进行更改产品名金仓数据同步管理平台安装文件夹/opt/KFS磁盘空间信息用于安装目标 所需空间 1,401.89 MB可用空间 5,489.81 MB请按 ENTER 键继续: 正在安装... -------[|||][------------------|------------------|------------------|------------------] 请稍候 --- 请稍候 --- 请稍候 --- 请稍候 --- 安装完成 ----恭喜金仓数据同步管理平台 已成功地安装到/opt/KFS如果您需要将 金仓数据同步管理平台 注册为系统服务 请以 root 身份运行/opt/KFS/scripts/Root.sh启动服务后访问金仓数据同步管理平台地址:http://localhost:8089/login单击“完成”以退出安装程序。按 ENTER 键以退出安装程序: Complete. [flysyncnode2 install]$ b.界面化安装 Installation failed . [flysyncnode2 install]$ [flysyncnode2 install]$ export DISPLAY192.168.40.1:0.0 [flysyncnode2 install]$ ./setup.sh -i swing Now launch installer... 正在准备进行安装 正在从安装程序档案中提取 JRE... 正在解包 JRE... 正在从安装程序档案中提取安装资源... 配置该系统环境的安装程序...正在启动安装程序... Complete. [flysyncnode2 install]$c.如果为正常卸载数据库 [flysyncnode2 ~]$ rm ~/.com.zerog.registry.xml(5).启动管控平台 注意一定要用root用户执行 [flysyncnode2 install]$ exit exit [rootnode2 ~]# /opt/KFS/scripts/Root.sh Detected RHEL or Fedora: Installing the FlySync Web Manager Service daemon using systemd... creating default service file... Created symlink from /etc/systemd/system/multi-user.target.wants/fsmanager.service to /etc/systemd/system/fsmanager.service. Detected RHEL or Fedora: Installing the FlySync Web Console Service daemon using systemd... creating default service file... Created symlink from /etc/systemd/system/multi-user.target.wants/fsconsole.service to /etc/systemd/system/fsconsole.service. Detected RHEL or Fedora: Installing the FlySync Compare Service daemon using systemd... creating default service file... Created symlink from /etc/systemd/system/multi-user.target.wants/fscompare.service to /etc/systemd/system/fscompare.service. Starting FlySync Web Manager Service with systemd... Waiting for FlySync Web Manager Service... running: PID:48396 Starting FlySync Web Console Service with systemd... Waiting for FlySync Web Console Service... running: PID:48663 Starting FlySync Compare Service with systemd... Waiting for FlySync Compare Service... running: PID:48922 SUCCESS [rootnode2 ~]# (6).验证平台是否正常运行 KFSMC平台服务器地址为192.168.40.112平台端口为8089 安装时用户名和密码都是admin 4.创建管控平台专用用户 (1).创建角色并配置权限 【系统管理】【角色管理】【添加】【填入相关信息】【保存】 【系统管理】【角色管理】 【权限分配】 (2).创建用户 【系统管理】 【用户管理】 【添加】 【填写相关信息】【保存】
http://www.pierceye.com/news/719043/

相关文章:

  • 图跃企业网站建设seo提供服务
  • 厦门市建设管理协会网站发帖效果好的网站
  • 手机商城网站制作网页设计与制作的岗位职责
  • 教学网站系统流程图wordpress激活主题
  • 北京房地产网站建设做app还是做微网站好
  • 网站建设的整个流程管理咨询公司网站
  • 长沙网站建设有限公司怎么做网站赚大钱
  • 找做网站页的在哪找沭阳建设局网站
  • 私人做网站有什么用不断加强门户网站建设
  • WordPress简单百度站长插件使用cms建设网站安全吗
  • 响水做网站价格余江网站建设
  • 好的免费个人网站网站建设所需要的材料
  • 南宁本地网站有哪些建筑工程网络组网
  • 如何构建一个网站wordpress更换ssl
  • 做电影网站需要注意什么安徽易企建站
  • 莆田网站格在哪里做网站数据维护
  • 建设的网站别人登录密码做个企业网站多少钱
  • 邢台网站推广怎么做好网站推理
  • 网站项目需求盐城网站开发基本流程
  • 桐乡市城乡规划建设局网站网站企业备案和个人备案的区别
  • 公职人员可以做公益网站吗dw做的网站怎么放到服务器上
  • wordpress 导航网站模板wordpress建立企业网站
  • 厦门网站建设哪里好青岛做网站电话
  • 中国做网站正邦自己建站模板
  • 网站设计公司如何盈利安阳做网站多少钱
  • 简述网站开发的主要阶段邢台短视频推广
  • 黑彩网站充值就给你做单子青岛高品质网站建设
  • 网站建设是固定资产还是列费用矿泉水瓶50种手工制作
  • 兰州 网站建设凡客优品家居
  • 国内免费网站服务器推荐夸克网页版