### 删除旧容器、镜像

```
sudo docker-compose stop storm-nacos

sudo docker-compose down storm-nacos

sudo docker image prune -a

docker images

sudo docker-compose build storm-nacos

sudo docker-compose up -d storm-nacos
```

### JWT密钥

输出 **32**

```
openssl rand -base64 32

echo -n "wczCOGn5ryZtpt+MdZxv+XxmrER3sYnhE4Mefto8lmc=" | base64 -d | wc -c
```



### 日志过滤

```
docker logs -f storm-nacos | \
grep -E 'ERROR|WARN|Caused by|auth|token|JwtTokenManager|nacos.core.auth|secret key|started successfully'


# 检查密钥是否被正确加载 
docker logs storm-nacos | grep 'Loading nacos auth secret key'

# 验证启动阶段鉴权初始化
docker logs storm-nacos | grep -E 'Init jwt token manager|AuthPluginManager'

# 确认最终启动状态
docker logs storm-nacos | grep 'started successfully'

docker logs storm-nacos | grep -A 50 -B 20 'JwtTokenManager'
```

### 验证码字体错误

```
yum install -y fontconfig freetype

yum install -y libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi xorg-x11-fonts-100dpi
```







### 其他

nacos版本前要加v，这不是装饰，例:v2.3.0，