In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to build a Git server on NAS". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build a Git server on NAS.
There are many Git environments, so this paper chooses Gitblt Go.
Gitblit is an open source, pure Java application stack. It can manage, view Git warehouse, and provide Git warehouse services to the outside world. Its main users are the development teams that want to manage the central Git warehouse themselves.
Gitblit GO is an integrated, single-stack scheme based on Jetty. Users do not need to prepare another Apache server, Perl,Git or Gitweb. If you want to use the above features while using Git, Gitblit can coexist amicably with them.
Install Ubuntu for Docker
First, log in to the management page of TS-231P, launch ContainerStation, and select "create".
Select Ubuntu (DOCKER)
Press the create button.
Enter the name and select [Advanced Settings].
The advantage of choosing [Host] in network mode is that the host port can be used directly, but the disadvantage is that you need to pay attention to avoid conflicts with the host port.
The settings for the shared folder are optional, and if the Git warehouse is large, you may want to place it in a different location.
Press the create button. When you create it for the first time, you need to download the image file, which takes a long time.
Prepare the installation environment
Go to the overview page, take a glance from Container and select ubuntu.
To the west is the Ubuntu console screen, and most of the next operations will be carried out here.
Install updates
Sudo apt-get update
Install JRE
Apt-get install default-jre
Install wget
Apt-get install wget
Install Gitblit GO
Enter the installation directory
Cd / opt/
Download GitBlit
Wget http://dl.bintray.com/gitblit/releases/gitblit-1.8.0.tar.gz
The latest version is available from http://www.gitblit.com/setup_go.html
Decompress
Tar-zxvf gitblit-1.8.0.tar.gz
Modify directory name
Mv gitblit-1.8.0 gitblt
Modify gitblit.properties
Go to the\ opt\ gitblit\ data directory and add the following two lines to gitblit.properties:
Server.httpPort = 10101
Git.repositoriesFolder = / git/repositories
One of these two lines is to specify the port when the web page is accessed, and the other is to specify the location of the Git repository.
Start gitblit manually
In the / opt/gitblit directory, execute:
Sh. / gitblit.sh
After the startup information is expressed, the entire installation process is over.
Use Gitblit
Open the browser and enter the URL managed by Git. The port number uses the 10101 specified above. If you see the following picture, you will succeed.
Enter the user name (admin) and password (admin) to enter the Gitblit the first thing is to change the administrator password. Then you can start the journey of GitBlit happily!
Linux Command referenc
Execute shell file
Sh?? .sh
Move Fil
Mv src des
Delete directory
Rm-rf directory name
Find the program location
Whereis oracle
At this point, I believe you have a deeper understanding of "how to build a Git server on NAS". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.