介绍
蝉鸣CRM 是一个全新的软件开发框架。
说明
Nacos官方文档
安装Nacos
- 创建目录
bash
cd /opt
sudo mkdir nacos
cd nacos- 下载Nacos
bash
wget https://github.com/alibaba/nacos/releases/download/3.0.1.1/nacos-server-3.0.1.1.tar.gz- 解压
bash
tar -zxvf nacos-server-3.0.1.1.tar.gz- 编辑配置文件
bash
cd conf
sudo vim application.properties- 使用mysql存储
bash
spring.sql.init.platform=mysql
db.num=1
db.url.0=jdbc:mysql://${mysql_host}:${mysql_port}/${nacos_database}?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=${mysql_user}
db.password=${mysql_password}- 3.0之后版本默认开启安全验证,增加一下配置可以屏蔽
bash
----------------------------------
`nacos.core.auth.plugin.nacos.token.secret.key` is missing, please set with Base64 string: ${your_input_token_secret_key}
nacos.core.auth.plugin.nacos.token.secret.key` Updated:
----------------------------------
`nacos.core.auth.server.identity.key` is missing, please set: ${your_input_server_identity_key}
`nacos.core.auth.server.identity.key` Updated:
----------------------------------
`nacos.core.auth.server.identity.value` is missing, please set: ${your_input_server_identity_key}
`nacos.core.auth.server.identity.value` Updated:
----------------------------------
#示例
nacos.core.auth.plugin.nacos.token.secret.key=test11111111
nacos.core.auth.server.identity.key=test1111111111
nacos.core.auth.server.identity.value=VGhpc0lzTXlDdXN0b21TZWNyZXRLZXkwMTIzNDU2Nzg=常用命令
bash
#单机模式启动
bash startup.sh -m standalone