磨刀不误砍柴工

合抱之木,生于毫末;九层之台,起于累土;千里之行,始于足下。

   ::  ::  ::  :: 管理
本文包含Phabircator的基本安装步骤以及如何运行和升级
1.安装依赖
Phabricator是一个 LAMP应用(Linux+Apache+Mysql+Perl/PHP/Python),因此你的电脑上需要安装好LAMP
Linux: 目前Phabricator可以运行在Mac OS X, Amazon Linux, Ubuntu, RHEL 和 CentOS。暂时不能在 Windows上运行。
Apache:需要的版本是 Apache 2.2.7或更新的版本
MySQL:
PHP:需要的版本是 PHP5.2或更新版本
2.安装依赖的组件
如果你要把Phabricator安装在Ubuntu或RedHat系列版本的Linux中,有两个现成的脚本可以帮助你完成大部分工作。
RedHat 系列: http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh
Ubuntu: http://www.phabricator.com/rsrc/install/install_ubuntu.sh
如果你正好是上面列出的两个脚本可以帮助到你,你可以直接跳过本章剩余的部分,直接转到《配置指南》了,上面列出的两个脚本也存在于应用的目录 scripts/install中。
3.更新Phabricator
由于Phabricator的开发比较活跃,你应当经常更新Phabricator。更新步骤:
停止web服务
在目录 libphutil/, arcanist/ 和 phabricator/中运行命令: git pull
运行命令:phabricator/bin/storage upgrade
重新启动web服务
提供了一个可用的自动更新脚本:http://www.phabricator.com/rsrc/install/update_phabricator.sh 

4.安装演示

will@will-ThinkPad-X201:~/dev/tools/Phabricator$ pwd
/home/will/dev/tools/Phabricator
will@will-ThinkPad-X201:~/dev/tools/Phabricator$ wget http://www.phabricator.com/rsrc/install/install_ubuntu.sh
--2013-08-10 23:24:34--  http://www.phabricator.com/rsrc/install/install_ubuntu.sh
正在解析主机 www.phabricator.com (www.phabricator.com)... 50.18.110.231
正在连接 www.phabricator.com (www.phabricator.com)|50.18.110.231|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 2025 (2.0K) [application/octet-stream]
正在保存至: “install_ubuntu.sh”
100%[====================================================================================================>] 2,025       --.-K/s   用时 0s    
2013-08-10 23:24:35 (191 MB/s) - 已保存 “install_ubuntu.sh” [2025/2025])
will@will-ThinkPad-X201:~/dev/tools/Phabricator$ ls
install_ubuntu.sh
will@will-ThinkPad-X201:~/dev/tools/Phabricator$ chmod +x install_ubuntu.sh 
will@will-ThinkPad-X201:~/dev/tools/Phabricator$ ./install_ubuntu.sh 
PHABRICATOR UBUNTU INSTALL SCRIPT
This script will install Phabricator and all of its core dependencies.
Run it from the directory you want to install into.
Phabricator will be installed to: /home/will/dev/tools/Phabricator.
Press RETURN to continue, or ^C to cancel.
Testing sudo...
[sudo] password for will: 
Installing dependencies: git, apache, mysql, php...
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
git 已经是最新的版本了。
php-apc 已经是最新的版本了。
apache2 已经是最新的版本了。
dpkg-dev 已经是最新的版本了。
mysql-server 已经是最新的版本了。
php5 已经是最新的版本了。
php5-cli 已经是最新的版本了。
php5-curl 已经是最新的版本了。
php5-dev 已经是最新的版本了。
php5-gd 已经是最新的版本了。
php5-mysql 已经是最新的版本了。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 90 个软件包未被升级。
Module rewrite already enabled
pcntl already installed
Cloning into 'libphutil'...
remote: Counting objects: 7136, done.
remote: Compressing objects: 100% (3727/3727), done.
ceiving objects:  69% (4924/7136), 2.24 MiB | 28 KiB/s   

......


其它知识点:
1.修改php.ini 后是否需要重新启动apache或者服务器?
在php是模块方式(需要)
cgi(不需要)

posted on 2013-08-10 23:33 liwei5891 阅读(451) 评论(0)  编辑  收藏 所属分类: Phabricator

只有注册用户登录后才能发表评论。


网站导航: