Ali cloud build git server

Ali cloud server environment:

CentOS7.0

jdk1.8.0

jre1.8.0

RAM:1G

SWAP:3G

Mem: 40g

apache-tomcat 8.0

 

1. Download gitlab-ce 11.0 to local

2, uploaded to the cloud server via DMS

3, cp gitlabxx.rpm specified folder

4、rpm -ivh gitlab-eexxx.rpm

5, after the installation is complete, the configuration is not supplied, the hostIP, arranged in file /etc/gitlab/gitlab.rb

6, after configuration using gitlab-ctl reconfigure

7、gitlab-ctl restart

 

** Ali cloud server default swap is zero, it needs its own set

 

After configuration, log in your browser

Initial account : root password: 5iveL fe!

 

note:

1, because of financial constraints, only the above hardware configuration, if it is more than collaborative development, to at least 4G of RAM, gitlab occupied memory is still very high, small memory under linux, can not log

2, if it is out of memory, you can get a physical machine, do not use Ali cloud: cloud server memory and bandwidth is very expensive;

3, neither the funds, had wanted to build a cloud Ali gitlab, then in accordance with the following method, 1G RAM + 3G SWAP

I actually allocated directly to 4G swap

>>mkdir /usr/local/swap

>>cd swap

>> dd if = / dev / zero of = swapfile bs = 1024 count = 4048000 # size 4G

>>mkswap swapfile

>> vim /etc/fstab

The swap restart remain valid:

In the addition of the following / etc / fstab file a line: / usr / swap / swapfile swap swap defaults 0 0

>>swapon swapfile

 

 

Delete method: # swapoff / user / swap / swapfile stopped swap # rm -rf / user / swap / swapfile delete

If not stopped, indicating the contents of the buffer, we need another operation to kill after kill -9 xxxx process

 

Guess you like

Origin www.cnblogs.com/chenadong/p/11298340.html