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 这个进程

相关推荐
zhz521413 分钟前
Nginx + OpenSSL 自签名证书配置:优劣总结
运维·nginx
jsons119 分钟前
rocky8内网离线批量补丁(你之前搭建的架构,多台服务器首选,无订阅)
linux·运维·服务器
进击切图仔21 分钟前
SAM3 微调标注流水线和 Label Studio
java·服务器·前端
Bomangedd29 分钟前
NSK RA25BN 滚子直线导轨技术详解
运维·服务器·经验分享·规格说明书
阿拉斯攀登1 小时前
SPI 设备驱动开发
linux·驱动开发·嵌入式硬件·linux内核·嵌入式·linux驱动·spi
2301_780303901 小时前
DevSecOps建设之自动化集成与部署 Jenkins教程和使用案例
运维·自动化·jenkins
zhou135284822671 小时前
Windows 配置 WSL (Ubuntu) 环境完整指南
linux·windows·ubuntu
本尊是喵1 小时前
AutoDL--FileZilla--VS Code远程连接
运维·服务器
FREEDOM_X1 小时前
Linux 进程间通讯(IPC)——总结
linux·c语言·前端·嵌入式硬件·struts
天空'之城2 小时前
Linux 系统编程 17:零拷贝技术全解
linux·嵌入式·零拷贝技术全解