In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
1. Switch git users
Su-git
2. To obtain gitolite, you cannot download tar or zip package from github. The .git directory is missing and the version cannot be obtained during installation.
Git clone https://github.com/sitaramc/gitolite
The following errors may occur
Unable to find remote helper for 'https'
/ usr/libexec/git-core configuration needs to be added to the environment variable
Switch root user
Vim / etc/profile
Modify the last line
Export PATH= "/ usr/local/git/bin:/usr/libexec/git-core:$PATH"
Execute the source command
Source / etc/profile
Switch back to git user
The following errors may also occur
The following libraries need to be updated
Yum update-y nss curl libcurl
3. Install gitolite
Mkdir $HOME/bingitolite/install-to $HOME/bincd bin/
You can follow the following
4. Configure the administrator
Ssh-keygen-t rsa
Go all the way back to the car.
5. Modify the public key name (named admin here, and then configure the admin with permission in gitolite, representing the local machine)
Cd $HOMEmv .ssh / id_rsa.pub admin.pub$HOME/bin/gitolite setup-competitive admin.pub
6. Generate the administrator repository (the subsequent configuration of permissions and projects can be configured in this repository. After configuration, push can be used)
Git clone git@127.0.0.1:gitolite-admincd gitolite-admin
7. Configure gitolite-admin
Vim gitolite-admin/conf/gitolite.conf
Create a new project project
Define two user groups: admin and user
User admin has (read-write delete) RW+ permission to
User group has (read and write) RW permission to project
8. Submit changes
Git add .git commit-am "add project"
The following error may occur. You need to set up email and name.
Git config-global user.email "xxxx@xxxx.com" git config-global user.name "xxxx"
Submit again
Git commit-am "add project" git push origin master
After the submission, you can see that there are more project directories.
9. Client access
Right-click on the directory to be downloaded by the client to open Git Bash and type
Ssh-keygen-t rsa
Enter all the way, and the id_rsa.pub public key will be generated in .ssh in the user directory. Upload the public key to the keydir directory of gitolite-admin, and change id_rsa.pub to test (modify it according to the actual situation)
Mv id_rsa.pub test
Modify gitolite.conf file to increase test user's access to project project
Vim gitolite-admin/conf/gitolite.conf
Submit to the version library
Git add .git commit-am "add auth to test for project" git push origin master
Enter the following command in windown's Git Bash to download the project project
Git clone git@xxx.xxx.xxx.xxx:/project.git
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.