看了所有的日志文件都没有发现报错,后来服务器重启数据库可能没有启动
我用的是mariadb,执行 systemctl start mariadb
再启动gerrit,成功~ 饶了一个大弯,其实问题很简单,哎~

./gerrit.sh start