搭建
环境: centos
遵照教程安装组件
主要是先执行脚本, 安装基础环境依赖. 其中从github仓库下载代码部分可以删除掉, 然后手动下载
然后配置Nginx
nginx参考 https://secure.phabricator.com/book/phabricator/article/configuration_guide/ . 里面代理的端口和下文 /etc/php-fpm.d/www.conf 的端口保持一致
需要额外配置一个东西
./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 | php 5.3.3 以后的php-fpm 不再支持 php-fpm 以前具有的 /usr/local/php/sbin/php-fpm (start|stop|reload)等命令,所以不要再看这种老掉牙的命令了,需要使用信号控制: |
然后更新数据库
``
./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