码迷,mamicode.com
首页 > 其他好文 > 详细

hg+rhodecode 安装配置教程

时间:2015-06-02 15:31:04      阅读:2823      评论:0      收藏:0      [点我收藏+]

标签:windows   下载地址   release   hg   rhodecode   

  Hg+Rhodecode安装配置教程


公司最近需要搭建hg+rhodecode,于是下来了解了下:

1

rhodecode官网

http://rhodecode.com/

rhodecode 官方文档:

https://docs.rhodecode.com/RhodeCode-Enterprise/

rhodecode介绍:

http://www.oschina.net/p/rhodecode

svn,git,hg比较:

http://www.cnblogs.com/likebeta/archive/2012/12/18/2822805.html

rhodecode下载地址:

http://rhodecode.com/download/   #下载的是二进制包,linuxwindows32/64

2

Hg就不多说了,我是直接下载rpm包装的,装rhodecode的时候指定仓库目录和hg的目录一样就行。

网上的rhodecode教程少之又少,所以就到官网看看咯:

测试环境:

[root@master src]# cat /etc/redhat-release 
 CentOS release 6.3 (Final)
[root@master src]#

(这里说下,点击下载的时候会叫你注册,用你的邮箱注册后就会发送下载地址到你的邮箱了)

 

  下载的是Linux64位的包,一共有三个(发到你邮箱里的是二进制包,也就是第一个,我们只需要安装二进制包,安装过程中会自动下载后两个(也可以用我给的包,做本地hosts快速下载~))。

链接: http://pan.baidu.com/s/1dDdGkm9 密码: 5frz

RhodeCode-installer-linux-391_b1a804c4d69b_d6c087d520e3  #二进制包 289 MB
RhodeCodeEnterprise-3.1.1+x86_64-linux_391_b1a804c4d69b_d6c087d520e3.tar.bz2  #201 MB
RhodeCodeVCSServer-1.1.1+x86_64-linux_391_b1a804c4d69b_d6c087d520e3.tar.bz2   #90.9 MB


2)开始安装

1.

[root@master src]# chmod +x  RhodeCode-installer-linux-448_93adfc5f6b1c_f62daca6673f
[root@master src]# ls -l RhodeCode-installer-linux-448_93adfc5f6b1c_f62daca6673f 
-rwxr-xr-x. 1 root root 303415719 5


2.    

[root@master src]# ./RhodeCode-installer-linux-448_93adfc5f6b1c_f62daca6673f 
Installing RhodeCode Control as root is not recommended.
Press any key to continue... [y/N]: y
Do you accept the RhodeCode Control license?
Press [Y] to accept license and [V] to view license text: Y

 100%  [ ############################################################################################## ]

Installation successful!


3.

  运行新安装的rhodecode,这是我们管理所有rhodecode产品的开发维护工具,检查是否有其他的rhodecode 实例在运行,如果这条命令不存在,请登出再重新登录一次你的终端来使她工作:
(翻译比较戳,我个人理解就是:我们装的是rhodecode control就是个管理工具,管理所有的东西。安装成功后,运行以下命令,如果命令不存在,先退出再重新进入系统再试试,不过一般安装成功了都有的,无非就是添加环境变量~)


4.这样就是成功了,因为没有实例,所以提示实例不存在~

[root@master .rccontrol]# rccontrol status
No instances exist.


5.安装rhodecode vcsserver:

[root@master .rccontrol]# rccontrol install VCSServer --start-at-boot
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007
                       ......(此处省略说明)

6.配置我都默认了,到时候可以改的:

Agree to the licence agreement? [y/N]: y 
IP to start the server on [127.0.0.1]: 
Port for the server to start [10000]: 
Creating new instance: vcsserver-1
Installing RhodeCode VCSServer
Configuring RhodeCode VCS Server ...
Supervisord state is: RUNNING
Removed process group: enterprise-1
Updated process group vcsserver-1


7.我们看看成功没有,可以看到已经在监听了:

[root@master .rccontrol]# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address  Foreign Address  State  PID/Program name  
tcp  0 0 127.0.0.1:10000  0.0.0.0:*      LISTEN      3457/python2.7


8.然后我们开始安装rhodecode enterprise 3:

又是一堆说明,我们输入y同意就是了,然后跟着走(使用默认就直接回车):

Username,password:网页登陆的账号密码
Email:你的邮箱
respositories location:你的仓库目录
IP to start the enterprise server on 127.0.0.1:这个和上一个一样,监听ip
Port for the enterprise server to use: 监听端口
database type:数据库选择,有sqlite,mysql,postresql,输入第一个字母就好了
然后输入数据库host,port,username,password,database name,数据库必须填准确,不然连不上,有些连上了会报“unknown database xxx”,我们在数据库里创建一个 xxx 就好了,然后开始下载安装:

Agree to the licence agreement? [y/N]: y
Username [admin]: admin
Password (min 6 chars): 
Repeat for confirmation: 
Email: 190100425@qq.com
Respositories location [/root/repos]: 
IP to start the Enterprise server on [127.0.0.1]: 
Port for the Enterprise server to use [10004]: 
Database type - [s]qlite, [m]ysql, [p]ostresql:
MySQL selected
Database host [127.0.0.1]: 
Database port [3306]: 
Database username: root
Database password: lengyu
Database name: rhodecode


9.看看成功没有(没有成功的话多看日志):

[root@master .rccontrol]# rccontrol status

 - NAME: enterprise-1
 - STATUS: RUNNING
 - TYPE: Enterprise
 - VERSION: 3.2.3
 - URL: http://0.0.0.0:10002

 - NAME: vcsserver-1
 - STATUS: RUNNING
 - TYPE: VCSServer
 - VERSION: 1.2.3
 - URL: http://127.0.0.1:10000


可以看到已经启动了,访问看看:

技术分享    

如果想要重启的话,执行命令:
rccontrol stop enterprise-1
rccontrol start enterprise-1
rccontrol stop vcsserver-1
rccontrol start vcsserver-1
实例配置文件:/root/.rccontrol/enterprise-1/rhodecode.ini

    

                                            qq:190100425

                                            欢迎一起交流~

本文出自 “冷雨” 博客,请务必保留此出处http://z190100425.blog.51cto.com/3622029/1657446

hg+rhodecode 安装配置教程

标签:windows   下载地址   release   hg   rhodecode   

原文地址:http://z190100425.blog.51cto.com/3622029/1657446

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!