论坛
潜水/灌水快乐,沉淀知识,认识更多同行。
ToB圈子
加入IT圈,遇到更多同好之人。
朋友圈
看朋友圈动态,了解ToB世界。
ToB门户
了解全球最新的ToB事件
博客
Blog
排行榜
Ranklist
文库
业界最专业的IT文库,上传资料也可以赚钱
下载
分享
Share
导读
Guide
相册
Album
记录
Doing
应用中心
搜索
本版
文章
帖子
ToB圈子
用户
免费入驻
产品入驻
解决方案入驻
公司入驻
案例入驻
登录
·
注册
账号登录
立即注册
找回密码
用户名
Email
自动登录
找回密码
密码
登录
立即注册
首页
找靠谱产品
找解决方案
找靠谱公司
找案例
找对的人
专家智库
悬赏任务
圈子
SAAS
qidao123.com技术社区-IT企服评测·应用市场
»
论坛
›
数据库
›
向量数据库
›
[YashanDB认证] 单机YashanDB个人版服务端安装 ...
[YashanDB认证] 单机YashanDB个人版服务端安装
北冰洋以北
论坛元老
|
2024-9-11 01:10:44
|
显示全部楼层
|
阅读模式
楼主
主题
1942
|
帖子
1942
|
积分
5826
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要
登录
才可以下载或查看,没有账号?
立即注册
x
学习链接:YashanDB|崖山数据库体系YashanDB学习中心-第一章_安装摆设
#Yashandb#2024 YCA认证 报名表
环境:
操作体系:Centos7.6
数据库版本:yashandb-personal-23.2.1.100
CPU:X86
1.准备工作
1.准备1台linux主机,1688端口不能被占用,发起关闭防火墙
[root@localhost /]# netstat -anp|grep 1688
[root@localhost /]# systemctl stop firewalld
2. 关闭交换分区(目标是为最大限度使用物理内存)
[root@localhost /]# sysctl -w vm.swappiness=0
[root@localhost /]# echo "vm.swappiness = 0">> /etc/sysctl.conf
3. 调解自动分配当地端口范围
[root@localhost /]# sysctl -w net.ipv4.ip_local_port_range='32768 60999'
[root@localhost /]# echo "net.ipv4.ip_local_port_range = 32768 60999" >> /etc/sysctl.conf
4.调解进程的VMA上限该参数作用是限定一个进程可以拥有的VMA(虚拟内存地区)的数量,调解是为了让数据库进程充实使用主机资源
[root@localhost /]# sysctl -w vm.max_map_count=2000000
[root@localhost /]# echo "vm.max_map_count=2000000" >> /etc/sysctl.conf
5.使变量见效
[root@localhost /]# sysctl -p
6.调解资源限定值
[root@localhost /]# ulimit -n 65536 #设置可以打开的最大的文件描述符数量65536(单元:个)
[root@localhost /]# ulimit -u 65536 #设置可以打开的最大的进程数65536(单元:个)
[root@localhost /]# ulimit -m unlimited #设置没有限定的使用常驻内存的巨细(单元:kbytes)
[root@localhost /]# ulimit -s 8192 #设置可以使用linux的默认栈空间巨细是8192kb(单元:kbytes)
7.修改设置文件
[root@localhost /]# vi /etc/security/limits.conf
◼在文件/etc/security/limits.conf后面添加以下内容:
yashan soft nofile 65536 #表示yashan用户可以打开的最大的文件描述符数量65536个
yashan hard nofile 65536
yashan soft nproc 65536 #表示yashan用户可以打开的最大的进程数65536个yashan hard nproc 65536
yashan soft rss unlimited #表示yashan用户可以没有限定的使用常驻内存的巨细yashan hard rss unlimited
yashan soft stack 8192 #表示yashan用户可以使用linux的默认栈空间巨细是8192kb
yashan hard stack 8192
8.创建新用户yashan,修改密码
[root@localhost /]# useradd yashan
[root@localhost /]# passwd yashan
2.数据库安装
1.切换yashan用户
[root@localhost /]# su yashan
假如切换时出现“bash-4.2$”而不是[yashan@localhost root]$,可参考下面的办法处理
【Linux】解决切换用户出现bash-4.2$问题&创建平凡用户并设置密码、授权-CSDN博客
2.切换到yashan用户的root目录下
[yashan@localhost root]$ cd
3.新建一个install的文件夹,并进入该文件下,查看当前用户路径
[yashan@localhost ~]$ mkdir install
[yashan@localhost ~]$ cd install/
[yashan@localhost install]$ pwd
4.登录YashanDB数据库官网,在服务支持-软件下载下载安装包文件,并上传到该路径下
YashanDB 下载中心
5.解压文件包,查看解压目录后的全部文件(软件包名根据现实填写)
[yashan@localhost install]$ tar -zxf yashandb-personal-23.2.1.100-linux-x86_64.tar.gz
[yashan@localhost install]$ ll
6.执行如下命令,生成安装参数文件(1234更换成yashan用户密码)
[yashan@localhost install]$./bin/yasboot package se gen --cluster yashandb -u yashan -p 1234 --ip 192.168.11.25 --port 22 --install-path /home/yashan/yasdb_home --data-path /home/yashan/yasdb_data --begin-port 1688
出现如下界面证实安装参数文件生成乐成
7.执行如下命令安装yashan数据库(软件包名根据现实填写)
[yashan@localhost install]$./bin/yasboot package install -t hosts.toml -i yashandb-personal-23.2.1.100-linux-x86_64.tar.gz
出现如下界面证实数据库安装乐成
3.数据库摆设
1.执行如下命令摆设yashan数据库(软件包名根据现实填写)
[yashan@localhost install]$ ./bin/yasboot cluster deploy -t yashandb.toml
2.执行如下命令设置环境变量(具体文件路径大概略有差别,根据现实调解即可)
[yashan@localhost install]$ cd /home/yashan/yasdb_home/yashandb/23.2.1.100/conf
#如~/.bashrc中已存在YashanDB相干的环境变量,将其清除
[yashan@localhost conf]$ cat yashandb.bashrc >> ~/.bashrc
[yashan@localhost conf]$ source ~/.bashrc
3.执行如下命令设置YashanDB数据库中sys用户的密码(先备份原密码文件,再生成新的密码文件)
[yashan@localhost conf]$ cd /home/yashan/yasdb_data/db-1-1/instance/
[yashan@localhost instance]$ mv yasdb.pwd yasdb1.pwd
[yashan@localhost instance]$ yaspwd file=yasdb.pwd password=yasdb_123
4.执行如下命令查看YashanDB数据库状态
[yashan@localhost instance]$ yasboot cluster status -c yashandb
出现如上数据库信息,即为安装乐成
5.执行如下命令毗连数据库(yasdb_123为sys用户密码)
[yashan@localhost instance]$ yasql sys/yasdb_123
出现如上信息,即为毗连乐成
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复
使用道具
举报
0 个回复
倒序浏览
返回列表
快速回复
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
or
立即注册
本版积分规则
发表回复
回帖并转播
回帖后跳转到最后一页
发新帖
回复
北冰洋以北
论坛元老
这个人很懒什么都没写!
楼主热帖
一零零七、Docker快速入门
超融合,变了?
Linux基础篇(6)---》常用命令大全(网络 ...
鸿蒙最新功能及承载设备详解:HarmonyO ...
作为开发人员,您应该熟悉的 7 个 Java ...
代码审计(Java)——WebGoat_Authentica ...
Kubernetes-namespace
如何快速而优雅的解决问题(提问的智慧 ...
kubernetes之Ingress发布Dashboard(二) ...
零代码,让业务人员实现应用创造自由 ...
标签云
渠道
国产数据库
集成商
AI
运维
CIO
存储
服务器
快速回复
返回顶部
返回列表