目录
1、安装MySQL数据库
数据库连接地址10.10.10.168 用户root 密码123456
MySQL安装参考搭建DSS环境(六)之安装基础环境MySQL_linux安装dss_青春不流名的博客-CSDN博客
2、安装Redis集群
IP | Resid PORT | Sentinel PORT | PASSWORD | Cluster NAME |
10.10.10.110 | 6379 | 26379 | 123456 | mymaster |
10.10.10.168 | 6379 | 26379 | 123456 | mymaster |
10.10.10.150 | 6379 | 26379 | 123456 | mymaster |
3、初始化SQL
unzip polaris-server-release_v1.17.4.linux.amd64.zip
mv polaris-server-release_v1.17.4.linux.amd64 polaris-servercd polaris-server
mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 8.0.31 MySQL Community Server - GPL Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> source ^C mysql> use polaris_server; Database changed mysql> source store/mysql/polaris_server.sql Query OK, 0 rows affected (0.00 sec)
4、配置polaris-server.yaml
# server Start guidance configuration
bootstrap:
# Global log
logger:
# Log scope name
# Configuration center related logs
config:
# Log file location
rotateOutputPath: log/runtime/polaris-config.log
# Special records of error log files at ERROR level
errorRotateOutputPath: log/runtime/polaris-config-error.log
# The maximum size of a single log file, 100 default, the unit is MB
rotationMaxSize: 100
# How many log files are saved, default 30
rotationMaxBackups: 30
# The maximum preservation days of a single log file, default 7
rotationMaxAge: 7
# Log output level,debug/info/warn/error
outputLevel: info
# Open the log file compression
compress: true
# onlyContent just print log content, not print log timestamp
# onlyContent: false
# Resource Auth, User Management Log
auth:
rotateOutputPath: log/runtime/polaris-auth.log
errorRotateOutputPath: log/runtime/polaris-auth-error.log
rotationMaxSize: 100
rotationMaxBackups: 30
rotationMaxAge: 7
outputLevel: info
compress: true
# Storage layer log
store:
rotateOutputPath: log/runtime/polaris-store.log
errorRotateOutputPath: log/runtime/polaris-store-error.lo