nacos -- Deployment on Linux

background:

        I deployed nacos on window before, now I also deploy it on linux.

For downloading, please refer to nacos -- Download startup login_nacos login address_Xiaobai's blog on the road to coding bugs-CSDN blog

question:

        1: The first problem encountered after decompression and startup is cluster problem, change it to single point startup

        Reference command

sh startup.sh -m standalone

        2: mysql connection error

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grpcSdkServer': Invocation of init method failed; nested exception is java.io.IOException: Failed to bind

        Configuration file application.properties plus database connection configuration

spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://192.168.0.108:3306/ry-config-dev?characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
db.user.0=root
db.password.0=password

 

It is important to add &allowPublicKeyRetrieval=true after the database connection, otherwise it is easy to report an error

result:

        The startup is successful and the default configuration has been loaded from the data volume. 

 

Guess you like

Origin blog.csdn.net/DGH2430284817/article/details/130349579