JavaShuo
栏目
标签
Apache Trac SVN Mercurial 安装笔记 (Ubuntu Server 8.04)
时间 2020-08-20
标签
apache
trac
svn
mercurial
安装
笔记
ubuntu
server
8.04
栏目
Apache
繁體版
原文
原文链接
本文记录了做者在Ubuntu Server 8.04系统上安装与配置Apache+Trac+SVN+Mercurial的过程。若有问题,请与我联系
leemoncc@gmail.com
。
一、安装并配置Ubuntu Server 8.04
⑴ 安装Ubuntu Server 8.04系统。
在虚拟机上安装时,需使用桥接网络,以便其它主机访问。
(具体安装过程略)
⑵ 设置静态IP。
设置IP地址、网关。
sudo vim /etc/network/interfaces
在文件最后添加:
iface eth0 inet static
address 192.168.1.89
netmask 255.255.255.0
gateway 192.168.1.1
auto eth0
设置DNS。
sudo nano /etc/resolv.conf
添加:
nameserver 218.30.19.50
nameserver 61.134.1.4
修改完毕,重启网络:
sudo /etc/init.d/networking restart
⑶ 更新系统。
sudo aptitude update
⑷ 使用openssh。
首先在服务器上安装OpenSSH Server:
sudo apt-get install openssh-server
而后,在客户机上使用客户端软件登陆服务器。
推荐使用PuTTY,使用方法可参考
http://www.ascc.sinica.edu.tw/putty
。
⑸ 创建编译环境。
sudo apt-get install build-essential
二、安装相关程序
⑴ 安装Apache、SVN等。
sudo apt-get install apache2 libapache2-mod-python libapache2-svn python-setuptools subversion python-subversion
Apache安装完成后,在客户机的浏览器中输入服务器的IP,如
http://192.168.1.89/
,应能看到以下界面:
⑵ 安装Trac。
sudo easy_install Trac
安装的Trac版本为0.11.4。
⑶ 安装Mercurial。
sudo apt-get install python-all-dev
sudo easy_install –U mercurial
安装的Mercurial版本为1.2.1。
三、SVN
⑴ 创建SVN库。
sudo mkdir /var/lib/svn
sudo svnadmin create /var/lib/svn/limeng
sudo chown –R www-data:www-data /var/lib/svn
⑵ 向SVN库提交代码。
sudo svn import /home/gowell/code/generate/ file:///var/lib/svn/limeng -m “First Import”
⑶ 配置Apache。
sudo vim /etc/apache2/mods-available/dav_svn.conf
编辑此文件,将如下内容所在行的注释符去掉:
<Location /svn>
DAV svn
SVNPath /var/lib/svn/limeng
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/apache2/dav_svn.passwd
Require valid-user
</Location>
添加用户
sudo htpasswd –c /etc/apache2/dav_svn.passwd gowell
输入并确认密码后,就添加了用户gowell。
重启Apache
sudo /etc/init.d/apache2 reload
打开
http://192.168.1.89/svn
,输入用户名和密码,可看到以下界面:
⑷ SVN的检出、提交。
将SVN库检出到指定目录:
sudo svn checkout http://192.168.1.89/svn /home/gowell/code/svntest
对检出的文件作过修改后,提交到SVN库:
sudo svn commit -m http://192.168.1.89/svn
当SVN库的版本发生变化时,Apache也能够看到:
SVN的详细用法,可参考
http://abbeyworkshop.com/howto/misc/svn01/
。
四、Mercurial
⑴ hg的基本操做。
克隆一个hg库
sudo mkdir /var/lib/hg
cd /var/lib/hg
sudo hg clone http://www.selenic.com/repo/hello limeng
编辑hgrc文件
cd limeng/.hg
sudo vim hgrc
添加如下内容
[web]
allow_push = *
push_ssl = false
启用hg自带的server
sudo hg serve -p 8002
在客户机上克隆hg库
hg clone http://192.168.1.89:8002/limeng limeng
对其中的文件进行编辑后,提交给服务器的hg库
hg ci –m “comment”
hg push
更新hg库
cd /var/lib/hg/limeng
hg update
(未完待续)
相关文章
1.
apache+svn+trac安装及配置1
2.
apache+svn+trac安装及配置2
3.
Trac 手记(一) : Windows 下安装 Trac
4.
在VirtualBox中安装Ubuntu 8.04 Server(2)
5.
Ubuntu14.04安装配置SVN及Trac
6.
Ubuntu 8.04安装VMware tools
7.
在VMworkStation 10 安装 Ubuntu 8.04
8.
【Server】Ubuntu 安装 MySQL 笔记
9.
Ubuntu中安装 mercurial – TortoiseHG
10.
VisualSVN Server+Trac集成安装(图文版)
更多相关文章...
•
Docker 安装 Apache
-
Docker教程
•
Docker 安装 Ubuntu
-
Docker教程
•
Tomcat学习笔记(史上最全tomcat学习笔记)
•
Composer 安装与使用
相关标签/搜索
apache+svn+trac
server+trac
8.04
mercurial
笔记1 - 安装
trac
安装简记
svn+apache
apache+svn
apache+mercurial+ldap
SVN
Python
Ubuntu
Apache
SVN 教程
MyBatis教程
Hibernate教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
[最佳实践]了解 Eolinker 如何助力远程办公
2.
katalon studio 安装教程
3.
精通hibernate(harness hibernate oreilly)中的一个”错误“
4.
ECharts立体圆柱型
5.
零拷贝总结
6.
6 传输层
7.
Github协作图想
8.
Cannot load 32-bit SWT libraries on 64-bit JVM
9.
IntelliJ IDEA 找其历史版本
10.
Unity3D(二)游戏对象及组件
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
apache+svn+trac安装及配置1
2.
apache+svn+trac安装及配置2
3.
Trac 手记(一) : Windows 下安装 Trac
4.
在VirtualBox中安装Ubuntu 8.04 Server(2)
5.
Ubuntu14.04安装配置SVN及Trac
6.
Ubuntu 8.04安装VMware tools
7.
在VMworkStation 10 安装 Ubuntu 8.04
8.
【Server】Ubuntu 安装 MySQL 笔记
9.
Ubuntu中安装 mercurial – TortoiseHG
10.
VisualSVN Server+Trac集成安装(图文版)
>>更多相关文章<<