![]() ![]()
This is the first time, so we can set the new password by ourselves. The successful login screen is as follows: The port of iptables needs to be changed to 80. Some people may be in external_ The URL does not write the port. Netstat -luntpa | grep 8888 #Check port 8888 again Sudo gitlab-ctl reconfigure #Restart various services Netstat -luntpa | grep 8888 #Port 8888 should be open at this time Sudo iptables -A INPUT -p tcp -m tcp -dport 8888 -j ACCEPT #Open port The solution is: vim gitlab.rb #Modify external_ The port number of the URL You must ensure that the external_ The URL is consistent with the open port of iptables. If there is an error in Gitlab 502 above, it indicates that the port may be opened incorrectly or occupied. If you are using aliyun, you need to log in to the open port 8888 of aliyun console, otherwise the server may not be accessible outside the local computer. The default account is root, and the login address is the server ip port number address, such as 192.1.9:8888. #-j: Specify the processing ACTION to be performed, such as ACTION, DROP drop, REJECT, ACCEPT, SNAT, source - specify the original address.Ħ start various services sudo gitlab-ctl reconfigureħ check that GitLab is installed and running correctly sudo gitlab-ctl status ![]() #-m: Specifies the filtering module used by the packet rule #-p: Specify the protocol for packet matching, such as TCP, UDP, ICMP, etc #-A: Add a rule to a rule chain, and the rule will become the last rule in the rule chain. Start sshd and postfix services sudo service sshd startĥ add firewall rules sudo iptables -A INPUT -p tcp -m tcp -dport 8888 -j ACCEPT The decompression interface is as follows:Ĥ. Specific usage can be determined by yourself. All distributions of Linux from "Debian" use dpkg, such as "Ubuntu.". How to install gitlab from source ubuntu 16.04 update#d/gitlab- ce.list The source of is changed to the following.ĭpkg, short for Debian package, is a suite management system specially developed for Debian operating system, which is used for software installation, update and removal. #Add VIM / etc / apt above/ sources.list. Method 2(Note that you need to update every time you change the source): I used method 1 just because I was slow Method 1 Note: if the above sudo apt get install gitlab CE is slow, you can use the following method. How to install gitlab from source ubuntu 16.04 download#Of course, if you have a good internet speed, the download will be faster sudo apt-get update #Note that you need to update every time you change the source Other HTTPS needs to be installed after configuration. ![]() Install GitLab that will automatically configure and start the URL. ' / 'is the URL of the GitLab instance you want to access, that is, the URL of the web. Use root to modify the configuration file. #And: if there is a ">" above, it means adding, and only one > represents covering.Ĭurl 2> /dev/null | sudo apt-key add - &>/dev/null &>, & > means that it will be redirected no matter right or wrong. 2>, 2 > means that only the wrong output is redirected. #Note: >, > means to redirect only the correct content. Configure the image (Tsinghua source is used here)įirst, trust GitLab's GPG public key. At this time, the following screen will appear, this is the mail configuration, select the Internet item (without Smarthost), and then press OK to continue.Ģ. Then install postfix to send a notification email. It's best to update the dependency package, otherwise errors may occur. ![]() Sudo apt-get install curl openssh-server ca-certificates postfix 1 install the necessary dependent packages sudo apt-get update ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |