Installation gitlab-ce
sudo apt-get update sudo apt-get install gitlab-ce
Perform configuration
sudo gitlab-ctl reconfigure
Start gitlab
sudo gitlab-ctl start
Browser access
http://电脑的IP地址
The first entry, you need to enter an administrator account password in order to facilitate the latter part of management.
After entering good, you can log on as an administrator, the account is root, password is the password you just entered.
So far, gitlab has been successfully installed, after use, and there is not much difference github, were not introduced.
Spread
Modify the port and address gitlab
Edit gitlab.rb
sudo gedit /etc/gitlab/gitlab.rb
The following data changes
external_url 'http://gitlab.example.com'
For example, change
external_url 'http://192.168.39.100:7800'
Which, 192.168.39.100 is the IP gitlab this computer is installed, a port on the line as long as no conflict
After the change, you need to perform the following code
sudo gitlab-ctl reconfigure
Finally, access gitlab in the browser, found to have been modified successfully, you need 192.168.39.100:7800
to access
other
gtilab part of the command
停止 sudo gitlab-ctl stop 开启 sudo gitlab-ctl start 确认配置(修改配置后,必须执行) sudo gitlab-ctl reconfigure 查看日志 sudo gitlab-ctl tail 查看 GitLab 版本号 cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
卸载gitlab
执行如下四步:
sudo gitlab-ctl uninstall sudo dpkg -r gitlab-ce sudo rpm -e gitlab-ce reboot(重启)
从一个仓库迁移到另一个仓库
转自:https://www.jianshu.com/p/74a3a181dc36