標籤:bsp net 虛擬 技術分享 http 瀏覽器 download http協議 repos
搭建環境:windo server 2012
方案:
伺服器端:gitblit。:http://www.gitblit.com/
用戶端:git for windows。:https://git-scm.com/downloads
具體步驟:
伺服器端:
1.下載jdk。:http://rj.baidu.com/soft/detail/17531.html?ald(也可以官網下,但速度太慢)
gitblit需要java運行環境,所以需要下載jdk。
2.安裝jdk,並設定環境變數。
參考教程:http://jingyan.baidu.com/article/f96699bb8b38e0894e3c1bef.html
3.下載gitblit並配置。
參考:http://www.codeceo.com/article/windows-git-server.html
官網說明:http://www.gitblit.com/setup_go.html
具體配置
配置(其中艱辛就不想說,都是淚):
1、安裝java虛擬機器(這個東西是因為gitblit是個java的產物,所以運行起來需要java環境的支援)
64位
32位
2、解壓後編輯data/gitblit.properties檔案
server.httpPort = 8000 http協議的連接埠
server.httpsPort = 8001 https 協議的連接埠
server.httpBindInterface = localhost http協議下伺服器端訪問的網址
server.httpsBindInterface = localhost https協議下伺服器端訪問的網址
git.repositoriesFolder = E:\GitServiceRoot 這個是存放Git庫的檔案夾
:
3、運行一級目錄下的gitblit.cmd 批次檔
運行開始時
4、配置完成後,在瀏覽器輸入http://localhost:8000或者https://localhost:8001後就可以看到登入成功了;
5、預設賬戶密碼都是admin
本菜鳥目前剛配置成功!!!!
明天繼續研究,後續會繼續將自己的心得記錄下來,以免自己失憶。如若幫到別人,也是極好的。
windows 安裝git