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 检查 ![](https://i-blog.csdnimg.cn/direct/2881bf840a0f4d07b359224a699384ae.png) 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 这个进程

相关推荐
zhangfeng113315 小时前
部署到服务器上 宝塔系统 使用宝塔在线编辑器 FTP 批量上传 Git 部署 打包上传 codebudyy 编程程序开发
服务器·git·编辑器
WJ.Polar15 小时前
Scapy基本应用
linux·运维·网络·python
lljss202015 小时前
1. NameServer 域名服务器---NS
linux·服务器·前端
萧行之16 小时前
Ubuntu+Windows双系统:解决GRUB不显示Windows启动项、一闪而过问题
linux·windows·ubuntu
数智顾问17 小时前
(123页PPT)华为流程管理体系精髓提炼(附下载方式)
运维·华为
Yupureki17 小时前
《Linux网络编程》5.HTTPS协议
linux·网络·https
网络工程小王17 小时前
【LCEL 链式调用详解】调用篇-2
java·服务器·前端·数据库·人工智能
搬砖的小码农_Sky18 小时前
Linux操作系统:Ubuntu和Debian的区别
linux·ubuntu·debian
江湖有缘18 小时前
基于Ubuntu系统Docker部署Note Mark:从安装到配置全流程
linux·ubuntu·docker
xhbh66618 小时前
路由端口转发常见应用场景有哪些?有什么?
服务器·ip·端口转发·ip地址·流量转发·建站