In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces "how to build a git server under linux". In daily operation, I believe many people have doubts about how to build a git server under linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to set up a git server under linux". Next, please follow the editor to study!
1. Add git users
Useradd-m git
2. Modify the git user password (password is git)
Passwd git
3. Extract git-1.7.12.2.tar.gz and install git
Tar-xvf git-1.7.12.2.tar.gz
Cd git-1.7.12.2
Make
Make install
4. Initialize the git user in preparation for installing gitosis. To use git on any machine, you must initialize it for the first time:
Git config-global user.name "git"
Git config-global user.email "git@server.com"
5. Install setuptools-0.6c8.tar.gz to prepare for gitosis installation
Tar-xvf setuptools-0.6c8.tar.gz
Cd setuptools-0.6c8
Python setup.py build
Python setup.py install
6. Install gitosis.tar.gz
Tar-xvf gitosis.tar.gz
Cd gitosis
Python setup.py install
7. Use eclipse to produce a public key, or use the following command to generate it in linux
Ssh-keygen-t rsa
The key is generated in the / home/git/.ssh directory
8. Use git users to log in to initialize the warehouse
Su-git
Gitosis-init
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.