bigops-6.0.4版本安装部署

bigops-6.0.4版本安装部署

首页枪战射击gz穿越火线单机版手游更新时间:2024-06-16

官方文档:http://docs.bigops.com/doc/658768786.0.558768787703

测试机配置:12G内存,centos 7 x86 64位

文件 http://dl.bigops.com/bigops/bigops-6.0.4-install.tar.gz

一: 环境初始化

1.优化下载源

yum install wget -y mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repobak wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo sed -i 's#mirrors.cloud.aliyuncs.com#mirrors.aliyun.com#g' /etc/yum.repos.d/CentOS-Base.repo

2.下载并运行优化脚本

tar zxvf bigops-init.tgz

cd bigops-init

sh init.sh

3.优化ssh

/etc/ssh/sshd_config

末尾添加:

ClientAliveInterval 60

ClientAliveCountMax 86400

/etc/ssh/ssh_config

StrictHostKeyChecking no

4.安装OpenJDK

yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel.x86_64 -y

配置JAVA环境,编辑/etc/profile文件末尾添加

export JAVA_HOME=/etc/alternativES/java_sdk_1.8.0_openjdk export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin

5.关闭IPv6

修改/etc/default/GRUB文件,找到GRUB_CMDLINE_LINUX所在的行,添加红色部分

GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"

运行命令

grub2-mkconfig -o /boot/grub2/grub.cfg

重启服务器

reboot

二: 安装mysql

1.下载mysql文件

mkdir /root/mysql-5.7 cd /root/mysql-5.7/ wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/MySQL-community-libs-5.7.38-1.el7.x86_64.rpm wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-compat-5.7.38-1.el7.x86_64.rpm wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-server-5.7.38-1.el7.x86_64.rpm wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-client-5.7.38-1.el7.x86_64.rpm wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-common-5.7.38-1.el7.x86_64.rpm wget -c https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-devel-5.7.38-1.el7.x86_64.rpm

2.安装

cd /root/mysql-5.7 rm -f my.cnf install.sh wget http://dl.bigops.com/mysql-5.7/install.sh wget http://dl.bigops.com/mysql-5.7/my.cnf yum remove mariadb-server -y sh install.sh

3.查看运行状态

systemctl status mysqld -l

4.创建远程用户

使用用户root@localhost登录MySQL,默认空密码

mysql -h localhost -u root -p

添加root@%远程用户,bigops123改成你的密码

use mysql;

grant all privileges on *.* to 'root'@'%' identified by 'bigops123';

flush privileges;

#修改mysql密码

#mysql -u root -p

#use mysql;

#set password for 'root'@'%' = PASSWORD('newpassword');

#flush privileges;

#修改了root密码后,需要在 bigops-6.0.4-install/config/bigops.properties 修改密码

5.轮询日志

/opt/log-rotate.sh

#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin alias mv='mv' alias rm='rm' alias cp='cp' create_time=`date -d"1 day ago" %Y%m%d` del_time=`date -d"3 day ago" %Y%m%d` #处理slow log cp -f /var/lib/mysql/slow.log /var/lib/mysql/slow.log.${create_time} >/var/lib/mysql/slow.log chmod 777 /var/lib/mysql/slow.log rm -f /var/lib/mysql/slow.log.${del_time} #处理error log cp -f /var/lib/mysql/error.log /var/lib/mysql/error.log.${create_time} >/var/lib/mysql/error.log chmod 777 /var/lib/mysql/error.log rm -f /var/lib/mysql/error.log.${del_time}

6.运行crontab -e,添加一个0点运行的任务

0 0 * * * /bin/bash /opt/log-rotate.sh >/dev/null 2>&1

三: 安装ELK

1.单机安装 ElasticSearch、Kibana、Logstash、Cerebro

cd ~ rm -f elk.tar.gz wget http://dl.bigops.com/elk.tar.gz tar zxvf elk.tar.gz cd elk wget -c https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.8-linux-x86_64.tar.gz wget -c https://artifacts.elastic.co/downloads/kibana/kibana-7.17.8-linux-x86_64.tar.gz wget -c https://artifacts.elastic.co/downloads/logstash/logstash-7.17.8-linux-x86_64.tar.gz source /etc/profile sh node.sh sh kibana_cerebro_logstash.sh zip -q -d /opt/logstash/logstash-core/lib/jars/log4j-core-2.13.3.jar org/apache/logging/log4j/core/lookup/JndiLookup.class

2.修改ElasticSearch和Logstash的JVM配置

编辑/opt/es/config/jvm.options和/opt/logstash/config/jvm.options,根据主机可用内存大小合理分配

-Xms4g -Xmx4g 或者 -Xms8g -Xmx8g

四: 安装bigops

1.配置DNS系统域名

用途

域名例如

SSO站点

sso.xxx.com

WORK站点

work.xxx.com

#本地测试可以在 /etc/hosts 配置指向

2.安装依赖包

cp bigops-x.x.x-install/soft/yum.repos.d/*.repo /etc/yum.repos.d/ yum -y install gcc make yum -y install dos2unix freetype freetype-devel fping iproute ipmitool jq libseccomp libselinux-devel yum -y install tofrodos supervisor net-tools net-snmp-utils fping nmap traceroute rsync yum -y install OpenIPMI OpenIPMI-devel openldap-clients kde-l10n-Chinese glibc glibc-common libaio libaio-devel yum -y install sshpass pcre-devel python3 python3-devel python3-libs python3-pip python3-setuptools python36-paramiko yum -y install perl-DBI perl-DBD-MySQL perl-Time-HiRes perl-IO-Socket-SSL perl-Digest-MD5 perl-TermReadKey yum -y install unzip which perl perl-Data-Dumper yum -y install mysql-community-client Nginx systemctl enable nginx

3.安装BigOps

tar zxvf bigops-6.0.4-install.tar.gz

cd bigops-6.0.4-install/

chmod x install.sh

sh install.sh

根据安装提示输入对应信息

输入Nginx域名绑定IP: 输入SSO域名: 输入WORK域名: 需要先在数据库创建一个远程用户,然后按提示输入。 输入数据库主机: 输入数据库端口: 输入数据库名称: 输入数据库用户: 输入数据库密码:

安装目录说明

目录

说明

/opt/bigops/workfe/

WORK前端

/opt/bigops/workbe/

WORK后端

/opt/bigops/sso/

SSO统一认证

/opt/bigops/config/

BigOps配置文件目录

/etc/nginx/conf.d/

Nginx配置文件目录

4.重启及检查服务

重启服务

systemctl restart workbe

systemctl restart sso

1分钟后检查SSO服务

curl -q 127.0.0.1:30001/signin/login 2>/dev/null |grep sso

如果返回值包括「sso系统正常」,说明运行正常,如果没有返回值说明有问题,需要详细检查数据库配置。

1分钟后检查WORK服务

curl 127.0.0.1:30003/api/common/ssourl/

如果返回「message」为ok就是正常

1分钟后检查Nginx服务

curl http://work.xxx.com

5)登录系统

保证笔记本可以ping通work.xxx.com和sso.xxx.com,并且域名返回IP正确

访问域名:http://work.xxx.com

默认账号:admin

默认密码:bigops (登陆后请尽快修改密码)

6)设置ES连接

首次登陆系统,页面顶部会提示设置ES连接,请点击桌面/日志/ES设置,把ES连接设置正确,如果索引都放在一个ES集群,信息填写一样即可

查看全文
大家还看了
也许喜欢
更多游戏

Copyright © 2024 妖气游戏网 www.17u1u.com All Rights Reserved