概述
gitlab是完全私有的git项目,github是公共的git项目。
服务器环境
centos6
部署命令
yum install curl policycoreutils-python openssh-server
yum -y install postfix
systemctl start postfix
systemctl enable postfix
systemctl status postfix
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
firewall-cmd --permanent --add-service=80/tcp
firewall-cmd --permanent --add-service=443/tcp
systemctl reload firewalld
重新配置
gitlab-ctl reconfigure
启动和关闭
gitlab-ctl start
gitlab-ctl stop
gitlab-ctl restart
gitlab-ctl show-config
常用日志
tailf /var/log/gitlab/gitlab-rails/production.log
报错分析
问题:Can't verify CSRF token authenticity
解决:无法通过Nginx+gitlab方式转发,涉及跨域问题。解决方案,直接用tcp端口转发(Nginx或者iptables都可以),放弃http转发
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。