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

做网站排名网络推广协议合同范本

做网站排名,网络推广协议合同范本,互动网站欣赏,丫个网站建设一、环境准备 1、准备一台系统为CentOS7的服务器 [rootlocalhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) 2、创建新用户,用于elasticsearch服务 # elastic不允许使用root账号启动服务 [rootlocalhost ~]# useradd elastic [rootlo…

一、环境准备

1、准备一台系统为CentOS7的服务器
[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
2、创建新用户,用于elasticsearch服务
# elastic不允许使用root账号启动服务
[root@localhost ~]# useradd elastic
[root@localhost ~]# passwd elastic 
Changing password for user elastic.
New password: 
BAD PASSWORD: The password is shorter than 8 characters
Retype new password: 
passwd: all authentication tokens updated successfully.
3、设置ulimit
[root@localhost ~]# vi /etc/security/limits.conf
# 在文本最后添加如下几行
## 可以打开的最大文件数(软限制)
elastic soft nofile 65536
## 可以打开的最大文件数(硬限制)
elastic hard nofile 65536
## 可以创建的最大进程数(软限制)
elastic soft nproc 65535
## 可以创建的最大进程数(硬限制)
elastic hard nproc 65535[root@localhost ~]# vi /etc/sysctl.conf
# 在文本最后添加下面行
## 设置单个进程可以拥有的最大内存映射区域数量
vm.max_map_count=262144# 重启服务器,使其生效
4、查看ulimit值是否生效
[root@localhost ~]# su - elastic 
[elastic@localhost ~]$ ulimit -S -n
65536
[elastic@localhost ~]$ ulimit -H -n
65536
[elastic@localhost ~]$ cat /proc/sys/vm/max_map_count 
262144

二、安装elastic search

1、下载安装包
[root@localhost ~]# wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.13.4-linux-x86_64.tar.gz
2、解压缩
# 解压缩
[root@localhost ~]# tar -zxvf elasticsearch-8.13.4-linux-x86_64.tar.gz
# 移动目录到/opt/下
[root@localhost ~]# mv elasticsearch-8.13.4 /opt/es/
3、设置目录权限
[root@localhost ~]# cd /opt
[root@localhost opt]# chown -R elastic: es
4、修改配置文件
[root@localhost es]# vi /opt/es/config/elasticsearch.yml
# 修改如下内容
## elastic节点名字
node.name: node-1
## 数据存放目录
path.data: /opt/es/data
## 日志存放目录
path.logs: /opt/es/logs
## 对所有IP开放,可以跟据需求修改
network.host: 0.0.0.0
5、设置启动脚本
vi /etc/systemd/system/elasticsearch.service[Unit]
Description=ElasticSearch
After=network.target[Service]
Type=simple
User=elastic
Group=elastic
ExecStart=/opt/es/bin/elasticsearch -d -p /opt/es/elasticsearch.pid
ExecStop=/opt/es/bin/elasticsearch-sysctl stop
PIDFile=/opt/es/elasticsearch.pid
# 修改线程数限制
LimitNPROC=65535
# 修改文件描述符限制
LimitNOFILE=65535[Install]
WantedBy=multi-user.target
6、启动服务
# 重新加载服务
[root@localhost es]# systemctl daemon-reload 
# 启动服务
[root@localhost es]# systemctl start elasticsearch.service
# 设置开机自启动
[root@localhost es]# systemctl enable elasticsearch.service
7、查看服务是否启动成功
# 查看9200,9300端口是否启动
[root@localhost es]# netstat -ntpl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name           
tcp6       0      0 :::9200                 :::*                    LISTEN      1605/java           
tcp6       0      0 :::9300                 :::*                    LISTEN      1605/java 
8、设置密码
[root@localhost es]# /opt/es/bin/elasticsearch-setup-passwords interactive
******************************************************************************
Note: The 'elasticsearch-setup-passwords' tool has been deprecated. This       command will be removed in a future release.
******************************************************************************Initiating the setup of passwords for reserved users elastic,apm_system,kibana,kibana_system,logstash_system,beats_system,remote_monitoring_user.
You will be prompted to enter passwords as the process progresses.
Please confirm that you would like to continue [y/N]yEnter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [apm_system]: 
Reenter password for [apm_system]: 
Enter password for [kibana_system]: 
Reenter password for [kibana_system]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]: 
Enter password for [remote_monitoring_user]: 
Reenter password for [remote_monitoring_user]: 
Changed password for user [apm_system]
Changed password for user [kibana_system]
Changed password for user [kibana]
Changed password for user [logstash_system]
Changed password for user [beats_system]
Changed password for user [remote_monitoring_user]
Changed password for user [elastic]
9、修改密码

如果忘记密码,可以通过以下方式修改密码

[root@localhost es]# elasticsearch-reset-password -u elastic -i

三、测试

1、浏览器访问测试

浏览器中输入URL:https://IP:9200

输入账号密码

http://www.shuangfujiaoyu.com/news/48727.html

相关文章:

  • 政府网站开发招标文件扬州百度关键词优化
  • 云畅网站建设后台企业网站建设原则是
  • 霍山做网站今日刚刚发生的重大新闻
  • 专门做鞋子的网站做关键词优化
  • 瑞安营销网站建设怎样在百度打广告
  • 做公众号排版的网站提高工作效率心得体会
  • 申请一个网站空间关键词搜索优化
  • 网站与规划设计思路武汉网站seo推广公司
  • html网页设计免费模板手机优化软件
  • 做中东市场哪个网站合适网站如何进行seo
  • 凡客客服电话江苏搜索引擎优化
  • 网站模板 css线上营销策略有哪些
  • 南昌seo网站建设磁力
  • 长宁区网站建设设计哈尔滨优化网站公司
  • 视频网站的嵌入代码是什么站长工具无忧
  • 英迈思做网站怎么样搜索引擎营销的主要模式有哪些
  • 专业网站建设定制千万不要学网络营销
  • 镇政府网站模板站长工具是什么意思
  • 铁岭市网站建设营销推广活动策划
  • 长治个人做网站信息推广
  • 跑腿个人网站怎么做seo网站推广企业
  • 南通企业建站程序关键词排名点击工具
  • 网上商城html模板湖南seo博客seo交流
  • 沧州手机网站建设互联网营销师培训费用是多少
  • 网站编辑怎么做的培训机构如何招生营销
  • 猪八戒网站找做微信小程序的友情链接查询工具
  • 深圳做微信商城网站情感式软文广告
  • 中介专门做别墅的网站网络营销外包网络推广
  • ppt模板免费下载 素材软件网络seo推广培训
  • 免费的简历制作网站在线网站seo诊断