官方安装文档 installation-requirement

Centos 选择Redhat系列

wget http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh
$ cd somewhere/ # pick some install directory
somewhere/ $ git clone git://github.com/facebook/libphutil.gitsomewhere/
$ git clone git://github.com/facebook/arcanist.gitsomewhere/
$ git clone git://github.com/facebook/phabricator.git

配置自己的web指定的服务器。

根据提示设置mysql用户名密码,导入数据

phabricator/ $ ./bin/storage upgrade 

通过http访问如果提示 [Exception] Failed to open process 说明proc_open有问题,检查是否开启了php.ini中disable_functions功能是否存在该函数,并且去掉。

安装pcntl.so扩展 可以下载源码包,然后指定只编译pcntl.so

$ wget http://br.php.net/get/php-5.3.15.tar.gz/from/this/mirror)
$ sudo su
$ tar -zxvf php-5.3.15.tar.gz
$ cd php-5.3.15/ext/pcntl/
$ phpize && ./configure && make install
$ echo "extension=pcntl.so" >> /etc/php.ini

查看是否模块已经加载

$ php -m | grep pcntl

Nginx 自动禁止爬虫IP采集

### 背景最近我们有一个公开服务提供给客户查询关键词的热度值,由于这个API做在官方网站上,自然没有用户登陆,也没有很高查询成本,所以设计上没有任何鉴权无法进行身份认定,于是就被一个爬虫开了超高并发请求,直接后端的AWS Tomcat CPU被用尽,导致无法响应。爬虫显然...… Continue reading

Redis原子性事务Lua应用

Published on June 28, 2020