TS安装

1.检查防火墙状态

root@localhost tongsearch-3.0.8.0# systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon

Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)

Active: inactive (dead)

Docs: man:firewalld(1)

用户计划使用firewall-cmd命令开放端口,则需要先启动firewalld;

2.启动防火墙

systemctl start firewalld

3.开放端口
firewall-cmd --permanent --zone=public --add-port=9200/tcp
firewall-cmd --permanent --zone=public --add-port=9300/tcp
firewall-cmd --reload
4.不支持root用户 创建新用户
useradd tongsearch
sudo mkdir -p /data/tongsearch
5.配置JDK
5.2 root用户
vim /etc/security/limits.conf
tongsearch hard nproc unlimited
tongsearch soft nproc unlimited
tongsearch - nofile 262144
tongsearch - memlock unlimited
6.配置完之后切换tongsearch用户
ulimit -a 检查

7.切换root用户
vim /etc/sysctl.conf
vm.max_map_count = 262144 保存并退出
分别执行以下命令 使配置生效并查看
sysctl -p
sysctl -a|grep vm.max_map_count
8.安装包解压后 移动到 /data/tongsearch/目录下
mv tongsearch-{n} /data/tongsearch/
chown -R tongsearch:tongsearch tongsearch-3.0.8.0
9.修改配置文件
用户需要在 "tongsearch.yml" 文件中,配置存储数据的日志的路径等。
path.data:/data/tongsearch/data
path.logs:/data/tongsearch/logs
注释配置文件上面已经有下面的内容cluster.name node.name****network.host http.port:
cluster.name: tongsearch-cluster
node.name: ts1
path.data: /data/tongsearch/data
path.logs: /data/tongsearch/logs
network.host: 192.168.22.169
http.port: 9200
discovery.seed_hosts: "192.168.22.169","192.168.22.13","192.168.22.2"
cluster.initial_master_nodes: "ts1","ts2","ts3"
cluster.name: tongsearch-cluster
node.name: ts2
path.data: /data/tongsearch/data
path.logs: /data/tongsearch/logs
network.host: 192.168.22.13
http.port: 9200
discovery.seed_hosts: "192.168.22.169","192.168.22.13","192.168.22.2"
cluster.initial_master_nodes: "ts1","ts2","ts3"
cluster.name: tongsearch-cluster
node.name: ts3
path.data: /data/tongsearch/data
path.logs: /data/tongsearch/logs
network.host: 192.168.22.2
http.port: 9200
discovery.seed_hosts: "192.168.22.169","192.168.22.13","192.168.22.2"
cluster.initial_master_nodes: "ts1","ts2","ts3"
curl http://10.10.83.95:9200/_cat/nodes
168.1.88.86 41 47 11 0.64 0.26 0.22 cdfhimrstw - ts3
10.10.83.95 2 62 0 0.00 0.05 0.48 cdfhimrstw - ts1
168.1.88.84 8 97 1 0.15 0.11 0.10 cdfhimrstw * ts2

kill 这个进程

相关推荐
宵时待雨13 小时前
linux笔记归纳24:多路转接select
linux·服务器·笔记·高并发
RISCV_Explorer13 小时前
技术指南:从总线协议到软件可见行为——RISC-V 多核缓存一致性的 Linux 实践
linux·缓存·risc-v
Dragon_qu·x13 小时前
MongoDB 高可用集群部署
运维·数据库·mongodb·k8s·helm
YOLO数据集集合14 小时前
风机叶片缺陷检测数据集 | 风机叶片 缺陷检测 风电运维 无人机巡检 细粒度分类9126期
运维·分类·无人机·风电叶片·风力·叶片缺陷
故乡dee云14 小时前
2026年华为云国际账号开通避坑:IP自动跳转中国站,选错地区只能重新注册
服务器·tcp/ip·华为云
爱签AI电子合同14 小时前
电子合同大批量怎么测?并发与批量处理维度专项测评
服务器·数据库·人工智能·企业微信·电子签名
土星云SaturnCloud14 小时前
HRNet-pose 算法全解析:从高分辨率网络原理到土星云 SE110S 边缘部署实战
服务器·人工智能·算法·ai·边缘计算
ShineWinsu14 小时前
对于Redis:Redis特性以及应用场景的解析
linux·c++·redis·缓存·高并发·分布式系统·key-value
亚川楼宇自控系统数据中心厂家14 小时前
3D 数字孪生赋能电气综合保护监控:看得见的电力安全防线
运维
北冥有鱼被烹14 小时前
NVIDIA DGX/HGX 服务器全景深度解析:从 H100 到 GB300,专业算力选型必读
运维·服务器·网络·python