constantine008 / nacos-gaussdb

Nacos support the database type: GaussDB and PostgreSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Star一下,是持续版本维护的动力

Nacos: Support the database type: GaussDB and PostgreSQL


Database Server Version

(openGauss 2.1.0 build 590b0f8e) compiled at 2021-09-30 14:29:04 commit 0 last mr on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 7.3.0, 64-bit

Package Build

mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U

Manufactured Product

nacos-2.2.0\distribution\target\nacos-server-2.2.0.tar
nacos-2.2.0\distribution\target\nacos-server-2.2.0.zip

SQL Schema

postgresql-schema.sql is in the config directory of the manufactured product

nacos-2.2.0\distribution\target\nacos-server-2.2.0.tar\conf\postgresql-schema.sql
nacos-2.2.0\distribution\target\nacos-server-2.2.0.zip\conf\postgresql-schema.sql

DB Connection Configuration

#*************** Config Module Related Configurations ***************#
### Config of DB:
db.num=1
nacos.plugin.datasource.log.enabled=true
 
### Connect URL of MYSQL:
# spring.sql.init.platform=mysql
# db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
# db.user.0=nacos
# db.password.0=nacos
 
### Connect URL of POSTGRESQL:
spring.sql.init.platform=postgresql
db.pool.config.driver-class-name=org.postgresql.Driver
db.url.0=jdbc:postgresql://127.0.0.1:5432/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
db.user.0=nacos
db.password.0=nacos

Start by the provided startup package

Step 1: Download the binary package

You can download the package from the latest stable release.

Take release nacos-server-2.2.0.zip for example:

unzip nacos-server-2.2.0.zip
cd nacos/bin 

Step 2: Start Server

On the Linux/Unix/Mac platform, run the following command to start server with standalone mode:

sh startup.sh -m standalone

On the Windows platform, run the following command to start server with standalone mode. Alternatively, you can also double-click the startup.cmd to run NacosServer.

startup.cmd -m standalone

About

Nacos support the database type: GaussDB and PostgreSQL

License:Apache License 2.0


Languages

Language:Java 98.9%Language:SCSS 0.9%Language:JavaScript 0.1%Language:Shell 0.1%Language:TypeScript 0.1%Language:Batchfile 0.0%Language:EJS 0.0%