189 8069 5689

CENTOS安装graylog4.39-创新互联

我们直接开始 

创新互联专业为企业提供芦溪网站建设、芦溪做网站、芦溪网站设计、芦溪网站制作等企业网站建设、网页设计与制作、芦溪企业网站模板建站服务,十余年芦溪做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。
  • 基础环境和java
sudo yum install epel-release 
并安装带有
sudo yum install pwgen

yum install java-1.8.0-openjdk-headless.x86_64
  • MONGODB 安装数据库
vi /etc/yum.repos.d/mongodb-org.repo

[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

执行安装

sudo yum install mongodb-org

启动

sudo systemctl daemon-reload
sudo systemctl enable mongod.service
sudo systemctl start mongod.service
sudo systemctl --type=service --state=active | grep mongod

  • 安装 ELASTICSEARCH
rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch


vi  /etc/yum.repos.d/elasticsearch.repo

[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/oss-7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

安装和启动

sudo yum install elasticsearch-oss

vi /etc/elasticsearch/elasticsearch.yml 
# 返注释最后一行action.auto_create_index: false

sudo tee -a /etc/elasticsearch/elasticsearch.yml >/dev/null<

sudo systemctl daemon-reload
sudo systemctl enable elasticsearch.service
sudo systemctl restart elasticsearch.service
sudo systemctl --type=service --state=active | grep elasticsearch

  • 安装GRAYLOG 
sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-4.3.8-repository_latest.rpm
sudo yum install -y graylog-server graylog-enterprise-plugins graylog-integrations-plugins graylog-enterprise-integrations-plugins
#安装完成后,首先生成password_secret密码
pwgen -N 1 -s 96
#要创建您的root_password_sha2 运行以下命令:
echo -n "Enter Password: " && head -1

生成的secret 和密码填入配置文件中205a1c3b9a3540e7a19247cbb1468523.png

注意时区 

root_timezone = Asia/Shanghai

以及ip

http_bind_address = 0.0.0.0:9000

最后启动

#启动graylog
sudo systemctl daemon-reload
sudo systemctl enable graylog-server.service
sudo systemctl start graylog-server.service
sudo systemctl --type=service --state=active | grep graylog

  • 注意关闭 SELinux

你是否还在寻找稳定的海外服务器提供商?创新互联www.cdcxhl.cn海外机房具备T级流量清洗系统配攻击溯源,准确流量调度确保服务器高可用性,企业级服务器适合批量采购,新人活动首月15元起,快前往官网查看详情吧


网站标题:CENTOS安装graylog4.39-创新互联
转载注明:http://jkwzsj.com/article/deodpj.html