In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
After using SVN for a long time, I suddenly changed the project team, and the new project required to use GIT, and I was a little rusty, so I had to go back to my previous study notes. In the process of reviewing, I thought that I had been working for two years, and it was time to learn to sum up and think, so I gave birth to the idea of writing Weibo in a planned way. I wanted to share what I learned in work practice or in books and learning methods. Write well so that everyone has something to gain, and if you don't write well, it will be a pleasure for everyone.
This is my first Weibo post on 51CTO. Today, I mainly share: GIT server building and configuration.
I. installation environment
Operating system: CentOS 6.4
Second, check whether GIT has been installed
Git-version
Not installed-bash: git: command not found
Git version x.x.x is installed
III. Yum installation
Yum install git
IV. Unloading
Yum remove git
Add the git administrator user of the Linux system
Adduser gitpasswrd huijia$$
Disable git administrator user xshell login to the operating system
Create a git warehouse and set the ownership of the warehouse to the user added in the previous step
The mkdir / usr/local/gitreposcd / usr/local/gitrepos# initialization folder is git repository git init-- bare sample.gitsudo chown git:git / usr/local/gitrepos sudo chmod 760 / usr/local/gitrepos
8. Users of the warehouse that add git
Collect the public keys of all users who need to log in, that is, the id_rsa.pub file generated by the user on their own git client, and copy all the public keys to the / home/git/.ssh/authorized_keys file, one line at a time.
Key generation method:
Sign in git client git bash
Ssh-keygen-t rsa-C "xxxx@xxxx.com"
By default, just keep pressing enter.
IX. Link testing
Open the git client git bash
IP:/usr/local/gitrepos/sample.gitCloning into 'sample'...warning: You appear to have cloned an empty repository. The computer deployed by git clone git@git server.
The above information indicates that the git server has been built successfully.
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.