GitLab 服务器无法启动 https://stackoverflow.com/questions/17690321/bitnami-gitlab-5-2-0-gitlab-sidekiq-not-running-and-could-not-be-started。原因很可能是因为gitlab.yml配置文件不正确。
用什么工具来检查yml语法是否正确?
我尝试过 Notepad++ 和 Sublime Text,但它们在不同的地方显示小标志:
Notepad doesn't like indent for 1 line.
SublimeText
GitLab 配置解析器中的缩进和空格真的会出现问题吗?
我使用的是以下内容之间的比较,这适用于任何编辑器:
gitlab.yml
gitlab.yml.example
我发育了一点bash 差异脚本 https://github.com/VonC/compileEverything/blob/master/sbin/check_all_diff这将寻找差异keys(不是价值观,因为你应该把自己的价值观放在那里)
## LDAP setting
ldap: (<--- it is a key)
enabled: true
^^^ ^^^
key value
我只是做了一个:
cd gitlab/config
check_all_diff .
这样,如果密钥、密钥顺序、新密钥或删除密钥方面有任何变化,我可以在升级 gitlab 时发现这些变化。
总而言之,您需要复制你的目录部分$PATH https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path:
- check_all_diff https://github.com/VonC/compileEverything/blob/master/sbin/check_all_diff
-
check_diff https://github.com/VonC/compileEverything/blob/master/sbin/check_diff(由
check_all_diff
)
不要忘记:
chmod 755 check_all_diff check_diff
- 不要引入不正确的 eol(行尾)字符。如果你这样做了,dos2unix会照顾那些 https://stackoverflow.com/a/64798/6309.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)