Just post the shell command,
The landlord with CentOS release 6.5 (Final) 64-bit as an example:
Configure the system firewall to open the HTTP and SSH ports. sudo yum Install Curl openssh-server postfix croniesudo service postfix startsudo chkconfig POSTF IX Onsudo lokkit-s http-s SSHDownload RPM installation package sudo Curl-oHttpsDownloads-packages.s3.amazonaws.com/centos-6.6/gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpmsudo RPM-IVH Gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm //This step can also be installed by means of piping: //sudo Curl http://packages.gitlab.cc/install/ gitlab-ce/script.rpm.sh | sudo bash//sudo yum install Gitlab-cesudo rpm-ivh gitlab-ce- 7.10.0~omnibus.2-1.x86_64.rpm Span class= "hljs-comment" >//Modify your own nginx configuration, and email alert configuration vim /var/opt /gitlab/nginx/conf/gitlab-http.confvim /etc/gitlab/gitlab.rb//save configuration sudo gitlab-ctl Reconfigure//start run, and view status sudo gitlab-ctl start //stopsudo gitlab-ctl status
How, 10 minutes should be done, the next landlord to open the nonsense mode, you can choose to continue to see or continue to see ...
Most of the year did not write essays, the days of chatter, today incredibly do not work, bored, produce an article ~
Git,svn,github,gitlab the difference here will not unfold, interested students can browse the following articles:
- About SVN (subversion)
- About Git
- Five big differences between Git and SVN
- What are the alternative products from GitHub?
- GitHub GitLab Differences
Landlord Yue (read Yue):
SVN is a perfect centralized version control system ;
GIT is distributed more quickly and securely;
GitHub is a Web site that provides users with a git service, and he provides solutions (code socializing) for collaboration, communication, and other work of programmers.
GitLab is a GIT project management tool (privatization), as well as GitHub's similar features
Installation mode Bitnami one-touch
BitNami solution with one-click installation package Whether you're Linux,windows,mac OSX system point This download fits your installation package
Digression: It is said that GitLab Controliphone version is also very fun. Compile and install high-force lattice
The compilation and installation process is cumbersome, but also to download a variety of dependency packages, and even some are wall; Of course, his advantage is to be free to match the service environment, arbitrary choice of databases, arbitrary changes in various configurations ...
If you are familiar with ROR environment of course recommend this, landlord is also engaged in web development, but mainly to (nodejs|php) + (linux|macosx|windows) + (Mongodb|mysql) + (Nginx|apache) environment-based, So just give up this way to install, if you still want this, it is recommended to look at this scenario: one-click Shell command Installation
RPM Package installation saves time and effort
such as the beginning, the landlord adopts this method, although simple, but repeatedly installed a lot of dependencies, such as Nginx, mail transceiver system, such as the landlord used the server is also installed Redmine,rap,tomcat,javamail,node ...
Here again I use the RPM package address:
https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-ce-7.10.0~omnibus.2-1.x86_64.rpm
If the download does not come down can try: Tsinghua University mirror or FQ try
Modify Configuration Nginx
This rpm comes with Nginx, if you can't find the location, you can search under the name
/var/opt/gitlab/nginx/conf/gitlab-http.conf
server_name is important, please check if the port is occupied before setting the listening port netstat -anpt | grep 8181
and then change
server { listen *:8181; ##这里注意 server_name gitlab.mycloudedu.net; ##这里注意 server_tokens off; ## Don‘t show the nginx version number, a security best practice root /opt/gitlab/embedded/service/gitlab-rails/public; ## Increase this if you want to upload large attachments ## Or if you want to accept large git objects over http client_max_body_size 250m;……
Email
To mention the unicorn.rb
file here, the file will affect the GITLAB-CTL directive, and if you change it you will need to rerun the configuration, instructions:
sudo gitlab-ctl reconfigure
You can cat /var/opt/gitlab/gitlab-rails/etc/unicorn.rb
view the file by command,
The next step is to modify the messaging configuration:
/etc/gitlab/gitlab.rb
SMTP settings are important.
#################################### GitLab CI Email server Settings # # # # ################################## # See https://gitlab.com/gitlab-org/omnibus-gitlab/tree/629def0a7a26e7c2326566f0758d4a27857b52a3/doc/settings/ Smtp.md#smtp-settings# #以下注意gitlab_ci [ ' smtp_enable '] = truegitlab_ci[ Smtp_address '] = "smtp.exmail.qq.com" Gitlab_ci[ ' smtp_port '] = 465gitlab_ci[ ' smtp_user_name '] = " [email protected] "Gitlab_ci[ ' smtp_password '] = " xxx " Gitlab_ci[ ' smtp_domain '] = "qq.com" Gitlab_ci[ ' smtp_authentication '] = " login "Gitlab_ci[ SMTP _enable_starttls_auto '] = true# gitlab_ci[' smtp_tls '] = False # gitlab_ci[' smtp_openssl_verify_mode '] = False
and change external_url
the URLs that are displayed externally.
## Url on which GitLab will be reachable.## For more details on configuring external_url see:## https://gitlab.com/gitlab-org/omnibus-gitlab/blob/629def0a7a26e7c2326566f0758d4a27857b52a3/README.md#configuring-the-external-url-for-gitlabexternal_url ‘http://gitlab.mycloudedu.net:8181‘
Remember to run after the changesudo gitlab-ctl reconfigure
Hosts
Because the landlord does not resolve the company domain permissions, if you happen to do so, change the hosts
121.43.226.85 gitlab.mycloudedu.net
Managing GitLab Common directives
This, I want to vomit trough, originally Linux is very convenient to have man
instructions to view a tool's instructions, the result is entered man gitlab-ctl
, the hint unexpectedly cannot find the description file 0.0
//启动sudo gitlab-ctl start//查看运行状态sudo gitlab-ctl status//停止sudo gitlab-ctl stop//查看错误信息sudo gitlab-ctl tail//保存配置sudo gitlab-ctl reconfigure
Finally, if the default administrator account password to compile the installation is: [email protected]|5iveL!fe
, if the RPM package is installed then the Administrator account password is root|5iveL!fe
logged in will remind you to reset the password;
There is the port number and other software needs to be modified with the Nginx configuration, then, then set it, click this access.
Finally, remember to close the registration OH
Finish http://www.cnblogs.com/highsea90/p/5191340.html
GitLab Linux 10 minutes Quick Install (turn)