如何使用phabricator

搭建

环境: centos

遵照教程安装组件

./bin/config set security.alternate-file-domain http://phabricator.huakai.me/

  • 再然后安装 php-fpm
1
yum install php-fpm

php的配置文件在 /etc/php.ini,

php-fpm配置文件在/etc/php-fpm.d/www.conf, 可以修改服务的端口 listen = 127.0.0.1:9010, 和nginx保持一致

  • 然后重启nginx, 启动php-fpm

service nginx restart

/usr/sbin/php-fpm

启动相关:

1
2
3
4
5
6
7
8
9
10
php 5.3.3 以后的php-fpm 不再支持 php-fpm 以前具有的 /usr/local/php/sbin/php-fpm (start|stop|reload)等命令,所以不要再看这种老掉牙的命令了,需要使用信号控制:

master进程可以理解以下信号

INT, TERM 立刻终止
QUIT 平滑终止
USR1 重新打开日志文件
USR2 平滑重载所有worker进程并重新载入配置和二进制模块

kill -USR2 42891
  • 然后更新数据库
    ``
    ./bin/config set mysql.host host
    ./bin/config set mysql.user username
    ./bin/config set mysql.pass password

    ./bin/storage upgrade



注意数据库只支持阿里云单机版本

- 后台运行

https://secure.phabricator.com/book/phabricator/article/managing_daemons/

- 最后

跑起来

# 使用

- 删除differential

bin/remove destroy D4

# 参考

https://www.cnblogs.com/sbhyc/p/11215358.html