## 常见问题：
0. 更多常见问题请看： https://www.kancloud.cn/zuihou/zuihou-admin-cloud/1284774

## 以下是一些小技巧：
### IDEA debug jar 

java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 zuihou-authority-server.jar

### 查看磁盘空间占用
df -h
### 查看当前目录的磁盘占用
du -ah --max-depth=1

### 免密

- 在jenkins服务器，用ssh-keygen -t rsa产生密钥对
    ssh-keygen -t rsa -P ''
        
- 在jenkins服务器，将私钥复制到 应用服务器
    ssh-copy-id -i ~/.ssh/id_rsa.pub -p 53535 zuihou@192.168.30.1
    ssh-copy-id -i ~/.ssh/id_rsa.pub -p 53535 root@server027
    

### 删除.git里的大文件.  但gitee 不生效. github生效
git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -15 | awk '{print$1}')"

docs/image/启动配置/验证seata启动成功.png
docs/image/新建项目/构建镜像.png
docs/image/启动配置/IDEA项目加载完成.png
doc/sql/zuihou_authority_dev_data.sql
third-party/seata/lib/druid-1.1.12.jar
third-party/seata/lib/guava-27.0.1-jre.jar

third-party/seata/lib/h2-1.4.181.jar
third-party/seata/lib/netty-all-4.1.24.Final.jar
third-party/nacos/target/nacos-server.jar
third-party/nacos/target/nacos-server.jar
doc/sql/zuihou_authority_dev.sql
zuihou-backend/zuihou-gateway/zuihou-gateway-server/src/main/resources/META-INF/resources/webjars/springfox-swagger-ui/swagger-ui.js
zuihou-frontend/zuihou-manage-center/src/main/resources/static/fonts/fzltxh.ttf
zuihou-frontend/zuihou-manage-center/src/main/resources/static/libs/eonasdan-bootstrap-datetimepicker/src/nuget/NuGet.exe

git filter-branch -f --tree-filter 'rm -f docs/image/启动配置/IDEA项目加载完成.png' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f docs/image/新建项目/*' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f docs/image/启动配置/*' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f doc/**' --tag-name-filter cat -- --all

git filter-branch -f --tree-filter 'rm -f zuihou-backend/zuihou-gateway/zuihou-gateway-server/src/main/resources/META-INF/**' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f zuihou-backend/zuihou-gateway/zuihou-zuul-server/src/main/resources/META-INF/**' --tag-name-filter cat -- --all

git filter-branch -f --tree-filter 'rm -f third-party/seata/lib/*.jar' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f third-party/nacos/**' --tag-name-filter cat -- --all

git filter-branch -f --tree-filter 'rm -f zuihou-frontend/**' --tag-name-filter cat -- --all

git filter-branch -f --tree-filter 'rm -f docs/*' --tag-name-filter cat -- --all
git filter-branch -f --tree-filter 'rm -f third-party/*' --tag-name-filter cat -- --all

git push origin --tags --force
git push origin --all --force


## docker
FROM anapsix/alpine-java:8_server-jre_unlimited

