1.重启Apache2,遇到apache2:could not reliably datermine the server's fully qualified domain name,using 127.0.1.1 for servername
sudo echo ServerName localhost >> /etc/apache2/httpd.conf或者在里面加上一行ServerName localhost
2.重启Apache2,no listening sockets available
apache2.conf引用,导致httpd.conf未生效
3.mysql报错
查看mysql root密码:gerrit_sites/etc/secure.conf
改gerrit.conf
4.出现logs/gerrit.pid:No such file or directory
在当前用户下,不使用sudo权限重启即可
5.遇到Configuration Error错误,99%是由于apache2没配置好